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. |
||
|---|---|---|
| .. | ||
| perf | ||
| script | ||
| src | ||
| test | ||
| bunfig.toml | ||
| drizzle.config.ts | ||
| package.json | ||
| README.md | ||
| schema.json | ||
| sst-env.d.ts | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| tsconfig.tests.json | ||
@opencode/core
Core runtime services for OpenCode.