diff --git a/package.json b/package.json index 6195e90e0..8c756f032 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "prepack:all": "pnpm -r prepack", "lint:all": "pnpm sync:snippets --check && pnpm -r lint", "lint:fix:all": "pnpm sync:snippets && pnpm -r lint:fix", - "check:all": "pnpm -r typecheck && pnpm -r lint", + "check:all": "pnpm -r typecheck && pnpm -r lint && pnpm run docs:check", "test:all": "pnpm -r test", "test:conformance:client": "pnpm --filter @modelcontextprotocol/test-conformance run test:conformance:client", "test:conformance:client:all": "pnpm --filter @modelcontextprotocol/test-conformance run test:conformance:client:all", diff --git a/packages/client/package.json b/packages/client/package.json index 3ced4ba20..3f606227c 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -55,7 +55,7 @@ "prepack": "npm run build", "lint": "eslint src/ && prettier --ignore-path ../../.prettierignore --check .", "lint:fix": "eslint src/ --fix && prettier --ignore-path ../../.prettierignore --write .", - "check": "npm run typecheck && npm run lint && pnpm exec -- typedoc --emit none", + "check": "npm run typecheck && npm run lint", "test": "vitest run", "test:watch": "vitest", "start": "npm run server", diff --git a/packages/client/src/client/auth.ts b/packages/client/src/client/auth.ts index 92c76695e..93bab723e 100644 --- a/packages/client/src/client/auth.ts +++ b/packages/client/src/client/auth.ts @@ -193,7 +193,7 @@ export class UnauthorizedError extends Error { } } -type ClientAuthMethod = 'client_secret_basic' | 'client_secret_post' | 'none'; +export type ClientAuthMethod = 'client_secret_basic' | 'client_secret_post' | 'none'; function isClientAuthMethod(method: string): method is ClientAuthMethod { return ['client_secret_basic', 'client_secret_post', 'none'].includes(method); diff --git a/packages/client/src/experimental/tasks/client.ts b/packages/client/src/experimental/tasks/client.ts index fe797017b..4f2bb7543 100644 --- a/packages/client/src/experimental/tasks/client.ts +++ b/packages/client/src/experimental/tasks/client.ts @@ -82,7 +82,6 @@ export class ExperimentalClientTasks { * ``` * * @param params - Tool call parameters (name and arguments) - * @param resultSchema - Zod schema for validating the result (defaults to {@linkcode CallToolResultSchema}) * @param options - Optional request options (timeout, signal, task creation params, etc.) * @returns AsyncGenerator that yields {@linkcode ResponseMessage} objects * diff --git a/packages/server/package.json b/packages/server/package.json index 882e5f283..9cebe8aed 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -55,7 +55,7 @@ "prepack": "npm run build", "lint": "eslint src/ && prettier --ignore-path ../../.prettierignore --check .", "lint:fix": "eslint src/ --fix && prettier --ignore-path ../../.prettierignore --write .", - "check": "npm run typecheck && npm run lint && pnpm exec -- typedoc --emit none", + "check": "npm run typecheck && npm run lint", "test": "vitest run", "test:watch": "vitest", "start": "npm run server", diff --git a/packages/server/src/server/mcp.ts b/packages/server/src/server/mcp.ts index e35871096..244586e56 100644 --- a/packages/server/src/server/mcp.ts +++ b/packages/server/src/server/mcp.ts @@ -1008,7 +1008,7 @@ export type RegisteredTool = { execution?: ToolExecution; _meta?: Record; handler: AnyToolHandler; - /** @internal */ + /** @hidden */ executor: ToolExecutor; enabled: boolean; enable(): void; @@ -1147,7 +1147,7 @@ export type RegisteredPrompt = { title?: string; description?: string; argsSchema?: AnySchema; - /** @internal */ + /** @hidden */ handler: PromptHandler; enabled: boolean; enable(): void; diff --git a/typedoc.config.mjs b/typedoc.config.mjs index 2fa7289ba..365619844 100644 --- a/typedoc.config.mjs +++ b/typedoc.config.mjs @@ -39,5 +39,6 @@ export default { headings: { readme: false }, + treatWarningsAsErrors: true, out: 'tmp/docs/', };