Back to Home
MagicTurtle-s icon

claude-code-mcp-bridge

Verified Safe

by MagicTurtle-s

Overview

Bridge Claude Desktop to Claude Code CLI for enhanced orchestration and domain-specific MCP tool delegation.

Installation

Run Command
node build/index.js

Environment Variables

  • DEBUG
  • CLAUDE_CODE_PATH
  • HUBSPOT_PROJECT_PATH
  • SHAREPOINT_PROJECT_PATH
  • ASANA_PROJECT_PATH
  • HUBSPOT_MCP_URL
  • SHAREPOINT_MCP_URL
  • ASANA_MCP_URL

Security Notes

The server spawns subprocesses (`child_process.spawn`, `child_process.exec`) based on user prompts, which can be a risk if not properly sanctioned. The `dangerouslySkipPermissions` flag is used, bypassing critical security checks for subprocesses, which could allow arbitrary file access or tool execution if the prompt is not carefully constrained by the upstream AI or user. The `mcp-session-manager.ts` handles sensitive session files (like `.claude-mcp-sessions.json`) in user profile directories, which are protected by OS permissions, but not encrypted by default on all platforms (e.g., Windows DPAPI not used). Hardcoded paths like `C:\Users\jonat\hubspot-mcp-railway\.mcp-config.json` pose a risk if the orchestrator prompt were to guide the AI to arbitrary paths. However, the system is designed to delegate authentication to the Claude Code CLI and not handle tokens directly, which is a good security practice. The use of `axios` for external API calls is standard but relies on the security of the target MCP servers. Overall, the system's security depends heavily on the robustness of the Claude Code CLI's sandboxing and the trustworthiness of the prompts it's given, especially when `dangerouslySkipPermissions` is enabled. The `spawn_code_subprocess_direct` tool is introduced to specifically avoid stdio deadlock, highlighting the architectural complexity which often comes with security challenges.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassLow
Avg Tokens25000
Stars0
Forks0
Last Update2025-11-23

Tags

MCP BridgeClaude Code CLIOrchestrationAI AgentDelegation