opencode/packages/server/test
Dan Smolsky c5754d37fc feat(mcp): scope a client MCP connection to one session
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.
2026-11-10 18:08:47 -05:00
..
fixture fix(server): stop waiting for plugins in request handlers (#62796) 2026-11-08 22:04:17 -06:00
artifact.test.ts fix(server): stop waiting for plugins in request handlers (#62796) 2026-11-08 22:04:17 -06:00
auth.test.ts
client-mcp.test.ts feat(mcp): scope a client MCP connection to one session 2026-11-10 18:08:47 -05:00
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 fix(server): stop waiting for plugins in request handlers (#62796) 2026-11-08 22:04:17 -06:00
job.test.ts
media.test.ts
message.test.ts
model.test.ts fix(server): stop waiting for plugins in request handlers (#62796) 2026-11-08 22:04:17 -06:00
options.test.ts
permission-saved.test.ts
persistent-pty.test.ts feat(core): speak opencode-pty protocol v8 (#62976) 2026-11-10 14:15:25 -05:00
process.test.ts
provider.test.ts ignore: wait for plugins again where managed policy applies (#63040) 2026-11-09 23:45:37 -06:00
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 fix(server): stop waiting for plugins in request handlers (#62796) 2026-11-08 22:04:17 -06:00
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 feat(core): return usage from session generate (#62835) 2026-11-09 09:38:13 -06:00
session-update.test.ts
skill.test.ts fix(server): stop waiting for plugins in request handlers (#62796) 2026-11-08 22:04:17 -06:00
sse-failure.test.ts
usage.test.ts
vcs.test.ts fix(server): stop waiting for plugins in request handlers (#62796) 2026-11-08 22:04:17 -06:00
voice.test.ts
workerd.test.ts
worktree.test.ts