mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
A client MCP connection (/api/experimental/client-mcp) can pass an optional sessionID query parameter. Its tools then appear only in that session's tool snapshot and Code Mode catalog, so only that session gets the add/remove catalog notes, and calls from any other session fail with a clear error. The server checks that the session exists and belongs to the connection's location before upgrading (404 SessionNotFoundError otherwise). Without sessionID nothing changes. connectClientMcp accepts sessionID; openapi.json regenerated. Verified: typecheck for core, server, client, protocol; core codemode/mcp/ session-runner/tool suites, server client-mcp, client mcp and tui client-mcp tests pass. |
||
|---|---|---|
| .. | ||
| clock.ts | ||
| effect.ts | ||
| environment-conformance.ts | ||
| eventually.ts | ||
| image.ts | ||
| instructions.ts | ||
| permission.ts | ||
| project.ts | ||
| session-message.ts | ||
| tool.ts | ||
| websearch.ts | ||
| websocket-server.ts | ||