Real-time cross-machine MCP relay for Claude Code agents
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add claude-bridge --env CLAUDE_BRIDGE_AUTH_TOKEN='<CLAUDE_BRIDGE_AUTH_TOKEN>' -- uvx claude-code-bridge~/.codex/config.toml
[mcp_servers.claude-bridge]
command = "uvx"
args = ["claude-code-bridge"]
env = { CLAUDE_BRIDGE_AUTH_TOKEN = "<CLAUDE_BRIDGE_AUTH_TOKEN>" }
# codex mcp add claude-bridge --env CLAUDE_BRIDGE_AUTH_TOKEN='<CLAUDE_BRIDGE_AUTH_TOKEN>' -- uvx claude-code-bridge~/.cursor/mcp.json
{
"mcpServers": {
"claude-bridge": {
"command": "uvx",
"args": [
"claude-code-bridge"
],
"env": {
"CLAUDE_BRIDGE_AUTH_TOKEN": "<CLAUDE_BRIDGE_AUTH_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"claude-bridge": {
"type": "stdio",
"command": "uvx",
"args": [
"claude-code-bridge"
],
"env": {
"CLAUDE_BRIDGE_AUTH_TOKEN": "<CLAUDE_BRIDGE_AUTH_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"claude-bridge": {
"command": "uvx",
"args": [
"claude-code-bridge"
],
"env": {
"CLAUDE_BRIDGE_AUTH_TOKEN": "<CLAUDE_BRIDGE_AUTH_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"claude-bridge": {
"command": "uvx",
"args": [
"claude-code-bridge"
],
"env": {
"CLAUDE_BRIDGE_AUTH_TOKEN": "<CLAUDE_BRIDGE_AUTH_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"claude-bridge": {
"command": "uvx",
"args": [
"claude-code-bridge"
],
"env": {
"CLAUDE_BRIDGE_AUTH_TOKEN": "<CLAUDE_BRIDGE_AUTH_TOKEN>"
}
}
}
}需要的环境变量
CLAUDE_BRIDGE_AUTH_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。