You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`ctx.notification.log(level, data, logger?)`| Send log notification (respects client's level filter) |`server.sendLoggingMessage(...)` from within handler |
384
+
|`ctx.mcpReq.log(level, data, logger?)`| Send log notification (respects client's level filter) |`server.sendLoggingMessage(...)` from within handler |
385
385
|`ctx.mcpReq.elicitInput(params, options?)`| Elicit user input (form or URL) |`server.elicitInput(...)` from within handler |
386
386
|`ctx.mcpReq.requestSampling(params, options?)`| Request LLM sampling from client |`server.createMessage(...)` from within handler |
387
387
388
388
## 11. Client Behavioral Changes
389
389
390
390
`Client.listPrompts()`, `listResources()`, `listResourceTemplates()`, `listTools()` now return empty results when the server lacks the corresponding capability (instead of sending the request). Set `enforceStrictCapabilities: true` in `ClientOptions` to throw an error instead.
2. Replace all imports from `@modelcontextprotocol/sdk/...` using the import mapping tables (sections 3-4), including `StreamableHTTPServerTransport` → `NodeStreamableHTTPServerTransport`
-**`notification`** — outbound notifications: `send()`, plus server-only `log()`
397
396
398
397
`BaseContext` is the common base type shared by both `ServerContext` and `ClientContext`. `ServerContext` extends each group with server-specific additions via type intersection.
399
398
@@ -402,7 +401,7 @@ Context fields are organized into 4 groups:
0 commit comments