MCP bridge that auto-discovers VS Code-family (VS Code, Cursor, Windsurf, Antigravity) and JetBrains IDE MCP servers and proxies Claude Desktop's tool calls to them, reconnecting as ports change.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add x-hub-universal-bridge-for-your-ide --env IDE_TYPE='<IDE_TYPE>' -- npx -y @bugstan/mcpxhub~/.codex/config.toml
[mcp_servers.x-hub-universal-bridge-for-your-ide]
command = "npx"
args = ["-y", "@bugstan/mcpxhub"]
env = { IDE_TYPE = "<IDE_TYPE>" }
# codex mcp add x-hub-universal-bridge-for-your-ide --env IDE_TYPE='<IDE_TYPE>' -- npx -y @bugstan/mcpxhub~/.cursor/mcp.json
{
"mcpServers": {
"x-hub-universal-bridge-for-your-ide": {
"command": "npx",
"args": [
"-y",
"@bugstan/mcpxhub"
],
"env": {
"IDE_TYPE": "<IDE_TYPE>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"x-hub-universal-bridge-for-your-ide": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@bugstan/mcpxhub"
],
"env": {
"IDE_TYPE": "<IDE_TYPE>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"x-hub-universal-bridge-for-your-ide": {
"command": "npx",
"args": [
"-y",
"@bugstan/mcpxhub"
],
"env": {
"IDE_TYPE": "<IDE_TYPE>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"x-hub-universal-bridge-for-your-ide": {
"command": "npx",
"args": [
"-y",
"@bugstan/mcpxhub"
],
"env": {
"IDE_TYPE": "<IDE_TYPE>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"x-hub-universal-bridge-for-your-ide": {
"command": "npx",
"args": [
"-y",
"@bugstan/mcpxhub"
],
"env": {
"IDE_TYPE": "<IDE_TYPE>"
}
}
}
}需要的环境变量
IDE_TYPE
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。