An MCP stdio to HTTP SSE transport gateway with example server and MCP client
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add gateway-server-and-client -- npx mcp-server-and-gw http://localhost:8808/~/.codex/config.toml
[mcp_servers.gateway-server-and-client]
command = "npx"
args = ["mcp-server-and-gw", "http://localhost:8808/"]
# codex mcp add gateway-server-and-client -- npx mcp-server-and-gw http://localhost:8808/~/.cursor/mcp.json
{
"mcpServers": {
"gateway-server-and-client": {
"command": "npx",
"args": [
"mcp-server-and-gw",
"http://localhost:8808/"
]
}
}
}.vscode/mcp.json
{
"servers": {
"gateway-server-and-client": {
"type": "stdio",
"command": "npx",
"args": [
"mcp-server-and-gw",
"http://localhost:8808/"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"gateway-server-and-client": {
"command": "npx",
"args": [
"mcp-server-and-gw",
"http://localhost:8808/"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"gateway-server-and-client": {
"command": "npx",
"args": [
"mcp-server-and-gw",
"http://localhost:8808/"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"gateway-server-and-client": {
"command": "npx",
"args": [
"mcp-server-and-gw",
"http://localhost:8808/"
]
}
}
}