[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ABHZEXCT83G900YXRJV0EY":3,"skill-same:01M7ABHZEXCT83G900YXRJV0EY":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M7ABHZEXCT83G900YXRJV0EY","mcp-test",null,"Test: MCP SDK v2 server\u002Fclient behavior with transport-matched harnesses, inspector probes, and error assertions; reproduced runtime protocol or SDK failures dispatch mcp-debugger.","j0hanz\u002Fj0hanz-marketplace","j0hanz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F159924955?v=4","01M7ABFK415CKHXYV9GZRJ16T7","Linus Johansson","01M7ABFK52FCPP2PNBH1YR7ZPA",0,"MIT","https:\u002F\u002Fgithub.com\u002Fj0hanz\u002Fj0hanz-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fmcp-hub\u002Fskills\u002Fmcp-test\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: mcp-test\ndescription: 'Test: MCP SDK v2 server\u002Fclient behavior with transport-matched harnesses, inspector probes, and error assertions; reproduced runtime protocol or SDK failures dispatch mcp-debugger.'\nuser-invocable: false\nmetadata:\n  category: technique\n---\n\n# MCP SDK v2 Testing\n\nCovers `2.0.0` test workflows (plus error-code reference `mcp-debugger` use) for `@modelcontextprotocol\u002Fserver` and `@modelcontextprotocol\u002Fclient`. Reference: https:\u002F\u002Fts.sdk.modelcontextprotocol.io\u002Fv2\u002F\n\nTest loop: `match transport → supply security context → probe behavior → assert its error channel`.\n\nUse [mcp-migration](..\u002Fmcp-migration\u002FSKILL.md) for SDK-version changes, [mcp-server](..\u002Fmcp-server\u002FSKILL.md) for server config, [mcp-client](..\u002Fmcp-client\u002FSKILL.md) for connection implementation.\n\n## Steps\n\n1. **Pick Harness** — match transport under test; in-process default; real ports\u002Fsubprocesses only for stdio coverage.\n\n   - **HTTP server**, in-process via `createMcpHandler`'s `handler.fetch` — exercises HTTP-specific behavior (headers, auth middleware, Host\u002FOrigin checks):\n\n     ```ts\n     const handler = createMcpHandler(createServer); \u002F\u002F server factory\n     const transport = new StreamableHTTPClientTransport(new URL('http:\u002F\u002Ftest.local\u002Fmcp'), {\n       fetch: (url, init) => handler.fetch(new Request(url, init)), \u002F\u002F real in-process serving: handler.fetch serves every request, the transport never dials http:\u002F\u002Ftest.local\u002Fmcp\n     });\n     const client = new Client(\n       { name: 'test-harness', version: '1.0.0' },\n       { versionNegotiation: { mode: 'auto' } },\n     );\n     await client.connect(transport);\n\n     const failed = await client.callTool({\n       name: 'apply-discount',\n       arguments: { price: -5, percent: 25 },\n     });\n     assert.equal(failed.isError, true); \u002F\u002F tool error -> isError: true, never a thrown exception\n\n     \u002F\u002F afterEach:\n     await client.close();\n     await handler.close();\n     ```\n\n   - **Direct server\u002Fclient pairing, no HTTP concerns** — `InMemoryTransport.createLinkedPair()` is SDK's own zero-mocking pattern, pairing `Client` and `McpServer` direct:\n\n     ```ts\n     const [clientTransport, serverTransport] = InMemoryTransport.createLinkedPair();\n     const server = new McpServer({ name: 'test-server', version: '1.0.0' });\n     const client = new Client({ name: 'test-harness', version: '1.0.0' });\n     await Promise.all([client.connect(clientTransport), server.connect(serverTransport)]);\n     \u002F\u002F ... assert, then client.close()\n     ```\n\n     > `InMemoryTransport` lives in `@modelcontextprotocol\u002Fclient`, not `core` (Zod schemas only). 2025-era in-process pattern — for 2026-07-28 server coverage prefer `handler.fetch` harness above. `close()` aborts in-flight handlers via `ctx.mcpReq.signal`.\n\n   - **stdio server** — spawn real process with `StdioClientTransport`; stdio got no in-process shortcut.\n\n   - [ ] Every HTTP test uses in-process `handler.fetch`, every direct pairing uses `InMemoryTransport.createLinkedPair()`, every stdio test uses `StdioClientTransport`.\n   - [ ] Standard unit-test run opens no real network port.\n\n2. **Supply Security Context**: Auth-protected endpoint tests pass mock `authInfo` payloads following [mcp-auth](..\u002Fmcp-auth\u002FSKILL.md) policies, cover `401`\u002F`403` controls.\n\n   - [ ] Every auth-protected endpoint has allowed, unauthenticated, insufficient-scope test cases.\n\n3. **Execute Probe**: Exercise shipping transport manual. For stdio servers, launch MCP inspector:\n\n   ```sh\n   npx @modelcontextprotocol\u002Finspector npx tsx src\u002Findex.ts\n   ```\n\n   For HTTP servers, POST raw JSON-RPC requests direct:\n\n   ```sh\n   curl -X POST http:\u002F\u002F127.0.0.1:3000\u002Fmcp \\\n     -H 'Content-Type: application\u002Fjson' \\\n     -H 'Accept: application\u002Fjson, text\u002Fevent-stream' \\\n     -d '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools\u002Flist\"}'\n   ```\n\n   - [ ] Every shipping server transport completes representative probe, no protocol framing errors.\n\n4. **Assert error channel**: Tool business failures return `isError: true`; unknown\u002Fdisabled tool names reject `ProtocolError(InvalidParams)`. Assert rejection via `try`\u002F`catch` and `error.code`; `instanceof` and `.isInstance()` both read the SDK brand, so both match across separately bundled copies on brand-aware releases; fall back to `.code`\u002F`data` for pre-brand copies, mixed-version rollouts, or errors crossing worker\u002F`structuredClone` boundary. Error-channel model: [mcp-server](..\u002Fmcp-server\u002FSKILL.md) \"Handle Errors\". Code lookups: Error Code Reference below.\n\n   - [ ] Every error assertion uses matching `ProtocolError`, `SdkError`, or `SdkHttpError` entry below.\n   - [ ] Tool business failures assert `isError: true`; unknown\u002Fdisabled names assert `ProtocolError(InvalidParams)` via `try`\u002F`catch` plus `.code`.\n   - [ ] Test teardown closes every client and handler, no hanging tasks or connections left.\n\n## Error Code Reference\n\n### Error classes\n\n| Class                                 | Package       | Meaning                                                                                                                                                               |\n| ------------------------------------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `ProtocolError(code, message, data?)` | server\u002Fclient | JSON-RPC error on wire; subclasses: `ResourceNotFoundError`, `UrlElicitationRequiredError`, `UnsupportedProtocolVersionError`, `MissingRequiredClientCapabilityError` |\n| `SdkError(code, message)`             | server\u002Fclient | Local SDK failure — never wire error                                                                                                                                  |\n| `SdkHttpError`                        | server\u002Fclient | HTTP-level failure; HTTP status on `.status`\u002F`.statusText`, **not** `.code` (`.code` is `SdkErrorCode` string)                                                        |\n\nOAuth-flow classes (`UnauthorizedError`, `IssuerMismatchError`, `AuthorizationServerMismatchError`, `OAuthError`, `InsufficientScopeError`, `InsecureTokenEndpointError`) not re-described here — see [mcp-client](..\u002Fmcp-client\u002FSKILL.md) \"Authenticate the client\" and [mcp-auth](..\u002Fmcp-auth\u002FSKILL.md) \"Error Reference\".\n\n### ProtocolErrorCode (wire codes)\n\n| Member                            | Code   | Meaning                                                                         |\n| :-------------------------------- | :----- | :------------------------------------------------------------------------------ |\n| `ParseError`                      | −32700 | Not valid JSON                                                                  |\n| `InvalidRequest`                  | −32600 | Not valid JSON-RPC request                                                      |\n| `MethodNotFound`                  | −32601 | No handler for method                                                           |\n| `InvalidParams`                   | −32602 | Bad params — also `resources\u002Fread` miss                                         |\n| `InternalError`                   | −32603 | Handler threw non-`ProtocolError`                                               |\n| `ResourceNotFound`                | −32002 | Receive-tolerated only; SDK always emits −32602 — throw `ResourceNotFoundError` |\n| `MissingRequiredClientCapability` | −32021 | Request needs undeclared client capability _(new 2026-07-28)_                   |\n| `UnsupportedProtocolVersion`      | −32022 | Requested version unknown\u002Funsupported; `data.supported` lists options _(new)_   |\n| `UrlElicitationRequired`          | −32042 | Tool needs user visit URL first                                                 |\n\n### SdkErrorCode (local codes)\n\n| Code                                                                                                                                                                                    | When                                                                                      |\n| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------- |\n| `NotConnected` \u002F `AlreadyConnected` \u002F `NotInitialized`                                                                                                                                  | Transport\u002Fprotocol lifecycle misuse                                                       |\n| `CapabilityNotSupported`                                                                                                                                                                | Required capability unsupported                                                           |\n| `RequestTimeout`                                                                                                                                                                        | Request timed out                                                                         |\n| `ConnectionClosed`                                                                                                                                                                      | Connection closed with requests in flight                                                 |\n| `SendFailed`                                                                                                                                                                            | Failed to send message                                                                    |\n| `InvalidResult`                                                                                                                                                                         | Response failed local schema validation                                                   |\n| `UnsupportedResultType`                                                                                                                                                                 | 2026-era response carried unknown `resultType`                                            |\n| `InputRequiredRoundsExceeded`                                                                                                                                                           | Auto-fulfilment hit `maxRounds`                                                           |\n| `ListPaginationExceeded`                                                                                                                                                                | No-arg `list*()` aggregate walk hit `listMaxPages` (explicit-`cursor` calls never capped) |\n| `MethodNotSupportedByProtocolVersion`                                                                                                                                                   | Outbound method doesn't exist on negotiated revision                                      |\n| `EraNegotiationFailed`                                                                                                                                                                  | `connect()` found no shared era (pin unmet \u002F no overlap)                                  |\n| `ClientHttpNotImplemented` \u002F `ClientHttpAuthentication` \u002F `ClientHttpForbidden` \u002F `ClientHttpUnexpectedContent` \u002F `ClientHttpFailedToOpenStream` \u002F `ClientHttpFailedToTerminateSession` | HTTP client-transport failures                                                            |\n\n### Common Error Symptoms and Fixes\n\n| Error                                                                                   | Fix                                                                                                                                                                                                                                                 |\n| :-------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `SyntaxError: ... is not valid JSON`                                                    | Something wrote stdout on stdio server. Log via `console.error`, never `console.log`.                                                                                                                                                               |\n| `TS2589: Type instantiation is excessively deep`                                        | Multiple Zod versions in tree. Dedupe to single `zod ^4.2.0` — see [mcp-server](..\u002Fmcp-server\u002FSKILL.md) \"Register Capabilities\" gotcha.                                                                                                             |\n| `ReferenceError: crypto is not defined`                                                 | Node \u003C 20. Upgrade, or polyfill: `globalThis.crypto = webcrypto`.                                                                                                                                                                                   |\n| `SdkError: ERA_NEGOTIATION_FAILED`                                                      | Client and server share no protocol era. Two shapes: (1) `pin` server doesn't offer — widen pin or use `mode: 'auto'`; (2) `mode: 'auto'` with `supportedProtocolVersions` list lacking pre-2026 entry — add legacy revision so fallback available. |\n| `SdkError: METHOD_NOT_SUPPORTED_BY_PROTOCOL_VERSION`                                    | Calling method negotiated era lacks — error names replacement.                                                                                                                                                                                      |\n| `No exported member 'SSEServerTransport'`                                               | HTTP serving now uses `createMcpHandler()` from `@modelcontextprotocol\u002Fserver`. Server must stay on SSE → import frozen v1 copy: `import { SSEServerTransport } from '@modelcontextprotocol\u002Fserver-legacy\u002Fsse'`.                                    |\n| `ListPaginationExceeded` \u002F no-arg list returns everything                               | v2 auto-aggregates pages; pass `{ cursor }` for one page, or drop to `client.request({ method: 'tools\u002Flist' })` (cap `listMaxPages` default 64).                                                                                                    |\n| Empty `tools\u002Flist` returns `[]` not `-32601`; capability advertised `listChanged: true` | `McpServer` eager-installs handlers for declared capabilities; set `listChanged: false` to opt out.                                                                                                                                                 |\n| Duck-typed `.code === 401` silently misses `SdkHttpError`                               | Read `.status` on `SdkHttpError`; `SseError` still uses numeric `.code`.                                                                                                                                                                            |\n\n## See Also\n\n- Handling errors on server: [mcp-server](..\u002Fmcp-server\u002FSKILL.md) \"Handle Errors\"\n- Mocking auth in tests: [mcp-auth](..\u002Fmcp-auth\u002FSKILL.md)\n- Diagnosing live failure instead of writing new tests: dispatch `mcp-debugger` agent\n","# MCP SDK v2 Testing\n\nCovers `2.0.0` test workflows (plus error-code reference `mcp-debugger` use) for `@modelcontextprotocol\u002Fserver` and `@modelcontextprotocol\u002Fclient`. Reference: https:\u002F\u002Fts.sdk.modelcontextprotocol.io\u002Fv2\u002F\n\nTest loop: `match transport → supply security context → probe behavior → assert its error channel`.\n\nUse [mcp-migration](..\u002Fmcp-migration\u002FSKILL.md) for SDK-version changes, [mcp-server](..\u002Fmcp-server\u002FSKILL.md) for server config, [mcp-client](..\u002Fmcp-client\u002FSKILL.md) for connection implementation.\n\n## Steps\n\n1. **Pick Harness** — match transport under test; in-process default; real ports\u002Fsubprocesses only for stdio coverage.\n\n   - **HTTP server**, in-process via `createMcpHandler`'s `handler.fetch` — exercises HTTP-specific behavior (headers, auth middleware, Host\u002FOrigin checks):\n\n     ```ts\n     const handler = createMcpHandler(createServer); \u002F\u002F server factory\n     const transport = new StreamableHTTPClientTransport(new URL('http:\u002F\u002Ftest.local\u002Fmcp'), {\n       fetch: (url, init) => handler.fetch(new Request(url, init)), \u002F\u002F real in-process serving: handler.fetch serves every request, the transport never dials http:\u002F\u002Ftest.local\u002Fmcp\n     });\n     const client = new Client(\n       { name: 'test-harness', version: '1.0.0' },\n       { versionNegotiation: { mode: 'auto' } },\n     );\n     await client.connect(transport);\n\n     const failed = await client.callTool({\n       name: 'apply-discount',\n       arguments: { price: -5, percent: 25 },\n     });\n     assert.equal(failed.isError, true); \u002F\u002F tool error -> isError: true, never a thrown exception\n\n     \u002F\u002F afterEach:\n     await client.close();\n     await handler.close();\n     ```\n\n   - **Direct server\u002Fclient pairing, no HTTP concerns** — `InMemoryTransport.createLinkedPair()` is SDK's own zero-mocking pattern, pairing `Client` and `McpServer` direct:\n\n     ```ts\n     const [clientTransport, serverTransport] = InMemoryTransport.createLinkedPair();\n     const server = new McpServer({ name: 'test-server', version: '1.0.0' });\n     const client = new Client({ name: 'test-harness', version: '1.0.0' });\n     await Promise.all([client.connect(clientTransport), server.connect(serverTransport)]);\n     \u002F\u002F ... assert, then client.close()\n     ```\n\n     > `InMemoryTransport` lives in `@modelcontextprotocol\u002Fclient`, not `core` (Zod schemas only). 2025-era in-process pattern — for 2026-07-28 server coverage prefer `handler.fetch` harness above. `close()` aborts in-flight handlers via `ctx.mcpReq.signal`.\n\n   - **stdio server** — spawn real process with `StdioClientTransport`; stdio got no in-process shortcut.\n\n   - [ ] Every HTTP test uses in-process `handler.fetch`, every direct pairing uses `InMemoryTransport.createLinkedPair()`, every stdio test uses `StdioClientTransport`.\n   - [ ] Standard unit-test run opens no real network port.\n\n2. **Supply Security Context**: Auth-protected endpoint tests pass mock `authInfo` payloads following [mcp-auth](..\u002Fmcp-auth\u002FSKILL.md) policies, cover `401`\u002F`403` controls.\n\n   - [ ] Every auth-protected endpoint has allowed, unauthenticated, insufficient-scope test cases.\n\n3. **Execute Probe**: Exercise shipping transport manual. For stdio servers, launch MCP inspector:\n\n   ```sh\n   npx @modelcontextprotocol\u002Finspector npx tsx src\u002Findex.ts\n   ```\n\n   For HTTP servers, POST raw JSON-RPC requests direct:\n\n   ```sh\n   curl -X POST http:\u002F\u002F127.0.0.1:3000\u002Fmcp \\\n     -H 'Content-Type: application\u002Fjson' \\\n     -H 'Accept: application\u002Fjson, text\u002Fevent-stream' \\\n     -d '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools\u002Flist\"}'\n   ```\n\n   - [ ] Every shipping server transport completes representative probe, no protocol framing errors.\n\n4. **Assert error channel**: Tool business failures return `isError: true`; unknown\u002Fdisabled tool names reject `ProtocolError(InvalidParams)`. Assert rejection via `try`\u002F`catch` and `error.code`; `instanceof` and `.isInstance()` both read the SDK brand, so both match across separately bundled copies on brand-aware releases; fall back to `.code`\u002F`data` for pre-brand copies, mixed-version rollouts, or errors crossing worker\u002F`structuredClone` boundary. Error-channel model: [mcp-server](..\u002Fmcp-server\u002FSKILL.md) \"Handle Errors\". Code lookups: Error Code Reference below.\n\n   - [ ] Every error assertion uses matching `ProtocolError`, `SdkError`, or `SdkHttpError` entry below.\n   - [ ] Tool business failures assert `isError: true`; unknown\u002Fdisabled names assert `ProtocolError(InvalidParams)` via `try`\u002F`catch` plus `.code`.\n   - [ ] Test teardown closes every client and handler, no hanging tasks or connections left.\n\n## Error Code Reference\n\n### Error classes\n\n| Class                                 | Package       | Meaning                                                                                                                                                               |\n| ------------------------------------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `ProtocolError(code, message, data?)` | server\u002Fclient | JSON-RPC error on wire; subclasses: `ResourceNotFoundError`, `UrlElicitationRequiredError`, `UnsupportedProtocolVersionError`, `MissingRequiredClientCapabilityError` |\n| `SdkError(code, message)`             | server\u002Fclient | Local SDK failure — never wire error                                                                                                                                  |\n| `SdkHttpError`                        | server\u002Fclient | HTTP-level failure; HTTP status on `.status`\u002F`.statusText`, **not** `.code` (`.code` is `SdkErrorCode` string)                                                        |\n\nOAuth-flow classes (`UnauthorizedError`, `IssuerMismatchError`, `AuthorizationServerMismatchError`, `OAuthError`, `InsufficientScopeError`, `InsecureTokenEndpointError`) not re-described here — see [mcp-client](..\u002Fmcp-client\u002FSKILL.md) \"Authenticate the client\" and [mcp-auth](..\u002Fmcp-auth\u002FSKILL.md) \"Error Reference\".\n\n### ProtocolErrorCode (wire codes)\n\n| Member                            | Code   | Meaning                                                                         |\n| :-------------------------------- | :----- | :------------------------------------------------------------------------------ |\n| `ParseError`                      | −32700 | Not valid JSON                                                                  |\n| `InvalidRequest`                  | −32600 | Not valid JSON-RPC request                                                      |\n| `MethodNotFound`                  | −32601 | No handler for method                                                           |\n| `InvalidParams`                   | −32602 | Bad params — also `resources\u002Fread` miss                                         |\n| `InternalError`                   | −32603 | Handler threw non-`ProtocolError`                                               |\n| `ResourceNotFound`                | −32002 | Receive-tolerated only; SDK always emits −32602 — throw `ResourceNotFoundError` |\n| `MissingRequiredClientCapability` | −32021 | Request needs undeclared client capability _(new 2026-07-28)_                   |\n| `UnsupportedProtocolVersion`      | −32022 | Requested version unknown\u002Funsupported; `data.supported` lists options _(new)_   |\n| `UrlElicitationRequired`          | −32042 | Tool needs user visit URL first                                                 |\n\n### SdkErrorCode (local codes)\n\n| Code                                                                                                                                                                                    | When                                                                                      |\n| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------- |\n| `NotConnected` \u002F `AlreadyConnected` \u002F `NotInitialized`                                                                                                                                  | Transport\u002Fprotocol lifecycle misuse                                                       |\n| `CapabilityNotSupported`                                                                                                                                                                | Required capability unsupported                                                           |\n| `RequestTimeout`                                                                                                                                                                        | Request timed out                                                                         |\n| `ConnectionClosed`                                                                                                                                                                      | Connection closed with requests in flight                                                 |\n| `SendFailed`                                                                                                                                                                            | Failed to send message                                                                    |\n| `InvalidResult`                                                                                                                                                                         | Response failed local schema validation                                                   |\n| `UnsupportedResultType`                                                                                                                                                                 | 2026-era response carried unknown `resultType`                                            |\n| `InputRequiredRoundsExceeded`                                                                                                                                                           | Auto-fulfilment hit `maxRounds`                                                           |\n| `ListPaginationExceeded`                                                                                                                                                                | No-arg `list*()` aggregate walk hit `listMaxPages` (explicit-`cursor` calls never capped) |\n| `MethodNotSupportedByProtocolVersion`                                                                                                                                                   | Outbound method doesn't exist on negotiated revision                                      |\n| `EraNegotiationFailed`                                                                                                                                                                  | `connect()` found no shared era (pin unmet \u002F no overlap)                                  |\n| `ClientHttpNotImplemented` \u002F `ClientHttpAuthentication` \u002F `ClientHttpForbidden` \u002F `ClientHttpUnexpectedContent` \u002F `ClientHttpFailedToOpenStream` \u002F `ClientHttpFailedToTerminateSession` | HTTP client-transport failures                                                            |\n\n### Common Error Symptoms and Fixes\n\n| Error                                                                                   | Fix                                                                                                                                                                                                                                                 |\n| :-------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `SyntaxError: ... is not valid JSON`                                                    | Something wrote stdout on stdio server. Log via `console.error`, never `console.log`.                                                                                                                                                               |\n| `TS2589: Type instantiation is excessively deep`                                        | Multiple Zod versions in tree. Dedupe to single `zod ^4.2.0` — see [mcp-server](..\u002Fmcp-server\u002FSKILL.md) \"Register Capabilities\" gotcha.                                                                                                             |\n| `ReferenceError: crypto is not defined`                                                 | Node \u003C 20. Upgrade, or polyfill: `globalThis.crypto = webcrypto`.                                                                                                                                                                                   |\n| `SdkError: ERA_NEGOTIATION_FAILED`                                                      | Client and server share no protocol era. Two shapes: (1) `pin` server doesn't offer — widen pin or use `mode: 'auto'`; (2) `mode: 'auto'` with `supportedProtocolVersions` list lacking pre-2026 entry — add legacy revision so fallback available. |\n| `SdkError: METHOD_NOT_SUPPORTED_BY_PROTOCOL_VERSION`                                    | Calling method negotiated era lacks — error names replacement.                                                                                                                                                                                      |\n| `No exported member 'SSEServerTransport'`                                               | HTTP serving now uses `createMcpHandler()` from `@modelcontextprotocol\u002Fserver`. Server must stay on SSE → import frozen v1 copy: `import { SSEServerTransport } from '@modelcontextprotocol\u002Fserver-legacy\u002Fsse'`.                                    |\n| `ListPaginationExceeded` \u002F no-arg list returns everything                               | v2 auto-aggregates pages; pass `{ cursor }` for one page, or drop to `client.request({ method: 'tools\u002Flist' })` (cap `listMaxPages` default 64).                                                                                                    |\n| Empty `tools\u002Flist` returns `[]` not `-32601`; capability advertised `listChanged: true` | `McpServer` eager-installs handlers for declared capabilities; set `listChanged: false` to opt out.                                                                                                                                                 |\n| Duck-typed `.code === 401` silently misses `SdkHttpError`                               | Read `.status` on `SdkHttpError`; `SseError` still uses numeric `.code`.                                                                                                                                                                            |\n\n## See Also\n\n- Handling errors on server: [mcp-server](..\u002Fmcp-server\u002FSKILL.md) \"Handle Errors\"\n- Mocking auth in tests: [mcp-auth](..\u002Fmcp-auth\u002FSKILL.md)\n- Diagnosing live failure instead of writing new tests: dispatch `mcp-debugger` agent\n",{"name":5,"metadata":24,"description":7,"user-invocable":20},{"category":25},"technique","main","534498267dccbe415f22f31fceac9da6771c195f","plugins\u002Fmcp-hub\u002Fskills\u002Fmcp-test","https:\u002F\u002Fgithub.com\u002Fj0hanz\u002Fj0hanz-marketplace","https:\u002F\u002Fj0hanz-marketplace.vercel.app","https:\u002F\u002Fgithub.com\u002Fj0hanz","linus-johansson-cv-d308be9b73e1.herokuapp.com","2026-11-15 02:42:07",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add j0hanz\u002Fj0hanz-marketplace --skill mcp-test",{"tool":40,"command":41},"bunx","bunx skills add j0hanz\u002Fj0hanz-marketplace --skill mcp-test",{"tool":43,"command":44},"pnpm","pnpm dlx skills add j0hanz\u002Fj0hanz-marketplace --skill mcp-test","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fj0hanz\u002Fj0hanz-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fmcp-hub\u002Fskills\u002Fmcp-test\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7ABP78JFYBMCXJ9GMETCYZM","unslop","Use when writing or editing prose a person will read, or when text sounds AI-generated.","https:\u002F\u002Fgithub.com\u002Fj0hanz\u002Fj0hanz-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fwriteup\u002Fskills\u002Funslop\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7ABP52BNV7NRPNBR6PCNZWC","show-me","Use when asked to show, diagram, or walk through how code fits together or what a change does, or before explaining a multi-file flow in prose.","https:\u002F\u002Fgithub.com\u002Fj0hanz\u002Fj0hanz-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fwriteup\u002Fskills\u002Fshow-me\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7ABP3EPN4KFB4HPJNMY31NR","pr","Use when writing or updating a pull request description, or before running `gh pr create`.","https:\u002F\u002Fgithub.com\u002Fj0hanz\u002Fj0hanz-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fwriteup\u002Fskills\u002Fpr\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7ABP08MXTHPZYTG4HKEP7WQ","commit","Use when writing a commit message, or before running `git commit`.","https:\u002F\u002Fgithub.com\u002Fj0hanz\u002Fj0hanz-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fwriteup\u002Fskills\u002Fcommit\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7ABNV9J7DN1AFRBGDBHVBY2","write-specs","Spec a feature's observable behavior. Use when asked for requirements, when a request says what the system should do but not how, or to capture what a built system already guarantees. Not for how to build it (write-plan).","https:\u002F\u002Fgithub.com\u002Fj0hanz\u002Fj0hanz-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fworkbench\u002Fskills\u002Fwrite-specs\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7ABNPK2GVG8EB3SSEAMK4FZ","write-skills","Write, fix, or audit a skill's frontmatter, trigger description, and body. Use when a skill is asked for, never fires, or fires at the wrong moment. Not for a hook (write-hooks) or the plugin manifest and catalog.","https:\u002F\u002Fgithub.com\u002Fj0hanz\u002Fj0hanz-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fworkbench\u002Fskills\u002Fwrite-skills\u002FSKILL.md",[],[]]