Skip to content

Conversation

@goneri
Copy link
Contributor

@goneri goneri commented Nov 10, 2025

Remove to exception rules and enforce better type check


Note

Strengthens ESLint TypeScript rules and replaces any with precise/unknown types across extraction, server, logging, and views, adding explicit interfaces and return types.

  • ESLint:
    • Enforce @typescript-eslint/explicit-function-return-type and disallow @typescript-eslint/no-explicit-any (tests exempt).
  • TypeScript typing:
    • Replace any with concrete/safer types (unknown, Record<string, unknown>, specific interfaces) across src/.
    • Add explicit interfaces (UserInfo, UserApiResponse, ExtendedTransport) and strict return types for handlers.
  • OpenAPI tool extraction (src/extract-tools.ts):
    • Stronger typings for operation ctor, boolean normalization, x-mcp access, and schema mapping (typed properties/items, JSONSchema handling).
  • Server/runtime (src/index.ts):
    • Type transports with ExtendedTransport; annotate MCP handlers (Promise<void>), request parsing, and tool execution result as unknown.
  • Logging/UI:
    • src/logger.ts: typed payload/response and tool index signature.
    • Views (logs.ts, tool-details.ts): add return types, type payload/response, safer schema formatting.

Written by Cursor Bugbot for commit f62fe8a. This will update automatically on new commits. Configure here.

Remove to exception rules and enforce better type check
@goneri goneri enabled auto-merge (squash) November 10, 2025 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant