Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

Add source flag to MCP server operations

4 months ago

1598bfb
Authored
mweinbach6/8/2026, 5:23:54 AM
Introduce an explicit `source` parameter ("workspace" | "user") for MCP server upsert/delete operations, defaulting to "workspace". Update store action signatures and types, pass `source` through JSON-RPC requests, and extend generated websocket JSON-RPC schemas/types to include the new field. Adjust the settings UI to only list user-scoped servers and to pass "user" when performing user-targeted edits/deletes. Update tests to reflect the new `source` semantics and include related server/registry/session changes to support targeting global (user) MCP config.

Parent3defffc

17 files changed
  • apps/desktop/src/app/store.actions/mcp.ts+4−2
  • apps/desktop/src/app/store.helpers.ts+6−1
  • apps/desktop/src/ui/settings/pages/McpServersPage.tsx+5−4
  • apps/desktop/test/mcp-servers-page.test.tsx+24−21
  • apps/desktop/test/workspace-mcp-editor.test.ts+15−9
  • docs/generated/websocket-jsonrpc.d.ts+2−2
  • docs/generated/websocket-jsonrpc.schema.json+1−1
  • src/mcp/configRegistry.ts+3
−0
  • src/mcp/configRegistry/editor.ts+48−8
  • src/mcp/configRegistry/layers.ts+1−1
  • src/server/jsonrpc/routes/mcp.ts+8−2
  • src/server/session/AgentSession.ts+9−5
  • src/server/session/McpManager.ts+9−4
  • src/server/session/SessionRuntime.ts+9−4
  • src/server/session/mcp/McpRegistryFlow.ts+19−4
  • src/shared/jsonrpcControlSchemas.ts+4−0
  • test/mcp.config-registry.test.ts+54−1