Skip to content

refactor(mono-driver): remove MCP dependency from Driver#217

Merged
deepracticexs merged 2 commits intomainfrom
refactor/remove-mcp-from-driver
Mar 8, 2026
Merged

refactor(mono-driver): remove MCP dependency from Driver#217
deepracticexs merged 2 commits intomainfrom
refactor/remove-mcp-from-driver

Conversation

@deepracticexs
Copy link
Member

Summary

  • Remove @ai-sdk/mcp dependency and MCP client lifecycle from MonoDriver
  • MCP tool discovery should be a Platform concern (like BashProvider), not managed inside the Driver
  • Makes MonoDriver compatible with environments like Cloudflare Workers that lack child_process

Changes

  • Removed MCP imports, initialization, disposal, and tool merging from MonoDriver.ts
  • Removed @ai-sdk/mcp from package.json dependencies
  • Renamed mergeTools() to getTools() — tools now exclusively come from DriverConfig.tools

Migration

  • MCP tools were previously discovered by the Driver during initialize()
  • Going forward, MCP tools should be provided by the Platform layer and injected via DriverConfig.tools, following the same pattern as BashProvidercreateBashTool()

🤖 Generated with Claude Code

deepracticexs and others added 2 commits March 8, 2026 14:04
MCP tool discovery should be a Platform concern (like BashProvider),
not managed inside the Driver. This removes the @ai-sdk/mcp dependency
and MCP client lifecycle from MonoDriver, making it platform-agnostic
and compatible with environments like Cloudflare Workers.

Tools are now exclusively injected via DriverConfig.tools from Platform.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@deepracticexs deepracticexs merged commit d63ad17 into main Mar 8, 2026
5 checks passed
@deepracticexs deepracticexs deleted the refactor/remove-mcp-from-driver branch March 8, 2026 06:05
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