Skip to content

Add built-in MCP foundation - #158

Merged
Juliusolsson05 merged 1 commit into
mainfrom
feat/mcp-groundwork
May 16, 2026
Merged

Juliusolsson05 merged 1 commit into
mainfrom
feat/mcp-groundwork

Conversation

@Juliusolsson05

Copy link
Copy Markdown
Owner

Summary

  • Adds the built-in MCP foundation under src/mcp with a main-hosted loopback Streamable HTTP MCP host.
  • Threads scoped built-in MCP domains through renderer session metadata, preload IPC, main session spawning, and Claude/Codex launch config.
  • Adds a minimal agent_code_ping MCP tool and a command palette action to reload a focused agent with the ping domain enabled.

Design Notes

This uses a main-hosted loopback HTTP MCP host rather than spawning a per-agent stdio child. Claude Code and Codex both support HTTP MCP configuration, and hosting in main avoids packaging a separate Node executable while keeping future built-in MCP domains close to app services.

Each provider process receives per-session MCP config material. Main owns the bearer token and endpoint, while renderer metadata stores only stable domain names.

Validation

  • npm run build:app
  • npm run test:review-fixes
  • MCP host smoke test with @modelcontextprotocol/sdk client: listed agent_code_ping and called it successfully.
  • codex -c 'mcp_servers.agent_code.url="http://127.0.0.1:1/mcp"' -c 'mcp_servers.agent_code.http_headers.Authorization="Bearer test"' mcp list confirmed Codex accepts the dotted MCP config override shape.

Known unrelated validation gap:

  • npx tsc -b tsconfig.node.json tsconfig.web.json still fails on existing repo-wide issues: missing pidusage declarations and an existing renderer feed type narrowing error.

Closes #155.

@Juliusolsson05
Juliusolsson05 merged commit 388cf73 into main May 16, 2026
@Juliusolsson05
Juliusolsson05 deleted the feat/mcp-groundwork branch May 16, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build built-in MCP groundwork and on-demand server injection bridge

1 participant