Skip to content

feat(core): wire execute tool for v2 mcp#35232

Open
rekram1-node wants to merge 7 commits into
v2from
execute-core-v2
Open

feat(core): wire execute tool for v2 mcp#35232
rekram1-node wants to merge 7 commits into
v2from
execute-core-v2

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a V2 core execute tool backed by CodeMode over MCP tools
  • make execute the default MCP exposure path in V2
  • keep direct MCP tools behind OPENCODE_CODE_MODE=false
  • preserve child call metadata for the V2 TUI and authorize MCP child calls before execution

Testing

  • cd packages/core && bun typecheck
  • cd packages/core && bun test test/tool-execute.test.ts test/tool-mcp.test.ts test/mcp.test.ts test/session-runner-tool-registry.test.ts
  • bun run lint:effect-patterns
  • bunx oxlint packages/core/src/mcp/guidance.ts packages/core/src/tool/execute.ts packages/core/src/tool/mcp.ts packages/core/test/tool-execute.test.ts packages/core/test/tool-mcp.test.ts

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.

1 participant