opencode/packages/client/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 chore(ci): speed up and stabilize the test workflow (#55866) 2026-10-16 00:35:49 +02:00
api.types.ts refactor(client): group experimental SDK methods under client.experimental (#59072) 2026-10-28 15:18:38 -07:00
contract-identity.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
deprecated-aliases.test.ts refactor(client): group experimental SDK methods under client.experimental (#59072) 2026-10-28 15:18:38 -07:00
effect.test.ts refactor(client): group experimental SDK methods under client.experimental (#59072) 2026-10-28 15:18:38 -07:00
import-boundaries.test.ts feat(client): add connectClientMcp helper for client-hosted MCP tools (#57504) 2026-10-22 15:37:57 -04:00
mcp.test.ts feat(mcp): scope a client MCP connection to one session 2026-11-10 18:08:47 -05:00
media.test.ts feat(tui): load stored images by reference, like desktop (#60116) 2026-10-29 20:04:23 +00:00
promise-service.test.ts chore(ci): speed up and stabilize the test workflow (#55866) 2026-10-16 00:35:49 +02:00
promise.test.ts feat(core): return usage from session generate (#62835) 2026-11-09 09:38:13 -06:00
service-contender-pool.test.ts refactor(client): share startup attempt bookkeeping between clients (#53240) 2026-10-05 08:18:09 -07:00
service-decision.test.ts refactor(client): share the registered service decision between clients (#53241) 2026-10-05 21:35:29 -07:00
service-reconnect.test.ts chore(ci): speed up and stabilize the test workflow (#55866) 2026-10-16 00:35:49 +02:00
service.test.ts chore(ci): speed up and stabilize the test workflow (#55866) 2026-10-16 00:35:49 +02:00
session-parent-create.test.ts feat(plugin): support parent session creation (#52359) 2026-09-30 22:50:09 -05:00
shared-events.test.ts feat(plugin): filter event subscriptions by type (#58864) 2026-10-26 10:47:48 -05:00
solid-compaction.test.ts refactor: v2.1 minor breaking changes (#57260) 2026-10-20 00:42:13 -05:00
solid-connection.test.ts refactor(app): move GUI features into built-in extensions (#52369) 2026-10-01 15:17:55 +10:00
solid-data.test.ts feat(core): record when a session's latest execution started (#59910) 2026-10-29 07:45:09 +00:00
solid-eviction.test.ts refactor(protocol): normalize session resources 2026-09-14 17:51:48 -04:00
solid-inbox-race.test.ts fix(client): clear pending prompts the transcript shows were delivered (#61679) 2026-11-04 11:36:03 -06:00
solid-pending-status.test.ts fix(session-ui): render user message attachments above text and admit inline files (#54650) 2026-10-13 16:28:42 -07:00
solid-pty-protocol.test.ts refactor(client): share the persistent pty protocol (#60323) 2026-10-29 18:23:04 -04:00
solid-pty.test.ts feat(app): move the desktop terminal to persistent PTYs (#60346) 2026-10-30 10:57:16 -04:00
solid-refresh.test.ts fix(client): evict missing sessions on 404 instead of retrying or toasting (#60459) 2026-10-30 14:35:52 +10:00
solid-usage.test.ts refactor: v2.1 minor breaking changes (#57260) 2026-10-20 00:42:13 -05:00
worktree.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00