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. |
||
|---|---|---|
| .. | ||
| fixture | ||
| artifact.test.ts | ||
| auth.test.ts | ||
| client-mcp.test.ts | ||
| config.test.ts | ||
| cors.test.ts | ||
| event-feed.test.ts | ||
| fetch-option.test.ts | ||
| fetch.test.ts | ||
| flag-channel.test.ts | ||
| fs.test.ts | ||
| generate.test.ts | ||
| handler-policy.test.ts | ||
| heap-dump.test.ts | ||
| integration-policy.test.ts | ||
| job.test.ts | ||
| media.test.ts | ||
| message.test.ts | ||
| model.test.ts | ||
| options.test.ts | ||
| permission-saved.test.ts | ||
| persistent-pty.test.ts | ||
| process.test.ts | ||
| provider.test.ts | ||
| pty-socket.property.test.ts | ||
| pty-socket.test.ts | ||
| pty-transport.test.ts | ||
| request-site.test.ts | ||
| request-tracing.test.ts | ||
| rpc-handler-errors.test.ts | ||
| schedule.test.ts | ||
| schema-error.test.ts | ||
| service-status.test.ts | ||
| session-admit-location.test.ts | ||
| session-create.test.ts | ||
| session-diff.test.ts | ||
| session-form.test.ts | ||
| session-import.test.ts | ||
| session-instances.test.ts | ||
| session-update.test.ts | ||
| skill.test.ts | ||
| sse-failure.test.ts | ||
| usage.test.ts | ||
| vcs.test.ts | ||
| voice.test.ts | ||
| workerd.test.ts | ||
| worktree.test.ts | ||