opencode/packages/core
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
..
perf feat(server): let embedders supply the fetch for OpenCode's HTTP and MCP requests (#61582) 2026-11-04 04:13:45 -06:00
script refactor: run every benchmark with strobe (#60880) 2026-11-03 20:05:16 -06:00
src feat(mcp): scope a client MCP connection to one session 2026-11-10 18:08:47 -05:00
test feat(mcp): scope a client MCP connection to one session 2026-11-10 18:08:47 -05:00
bunfig.toml refactor(core): simplify integration test fixtures (#33292) 2026-06-22 04:15:34 +00:00
drizzle.config.ts refactor(core): move database schema ownership (#29068) 2026-05-30 21:08:38 -04:00
package.json feat(core): speak opencode-pty protocol v8 (#62976) 2026-11-10 14:15:25 -05:00
README.md refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
schema.json refactor(core): store background job markers in a SQLite job table (#60491) 2026-10-30 07:50:16 -07:00
sst-env.d.ts refactor: rename shared package to core (#24309) 2026-04-25 10:59:17 -04:00
tsconfig.build.json feat(core): configure package publishing 2026-08-12 09:30:34 -04:00
tsconfig.json chore: upgrade typecheck to TypeScript 7.0.2 (#56300) 2026-10-17 13:26:46 -07:00
tsconfig.tests.json refactor: run every benchmark with strobe (#60880) 2026-11-03 20:05:16 -06:00

@opencode/core

Core runtime services for OpenCode.