eru-ai-mcp-bridge
v1.0.1
Published
MCP bridge for eru-ai WebSocket server - connects to remote eru-ai server via WebSocket and exposes stdio interface for MCP clients
Downloads
7
Maintainers
Readme
eru-ai MCP Bridge
A bridge that connects MCP clients (Claude Desktop, Cursor) to the eru-ai WebSocket server via stdio interface.
Installation
Global Installation
npm install -g @eru-tech/eru-ai-mcp-bridgeUsing npx (Recommended)
npx @eru-tech/eru-ai-mcp-bridgeUsage
With Default Settings
npx @eru-tech/eru-ai-mcp-bridgeThis connects to ws://localhost:8088/mcp/websocket by default.
With Custom Server URL
npx @eru-tech/eru-ai-mcp-bridge --server ws://your-server:8088/mcp/websocketWith Verbose Logging
npx @eru-tech/eru-ai-mcp-bridge --verboseConfiguration for MCP Clients
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"eru-ai": {
"command": "npx",
"args": ["@eru-tech/eru-ai-mcp-bridge", "--server", "ws://your-server:8088/mcp/websocket"],
"env": {}
}
}
}Cursor IDE
Add to your .cursor/mcp.json or global MCP configuration:
{
"mcpServers": {
"eru-ai": {
"command": "npx",
"args": ["@eru-tech/eru-ai-mcp-bridge", "--server", "ws://your-server:8088/mcp/websocket"]
}
}
}Features
- ✅ WebSocket to stdio bridge: Converts WebSocket MCP protocol to stdio interface
- ✅ Remote server support: Connect to any eru-ai server over the network
- ✅ Zero configuration: Works out of the box with default eru-ai server
- ✅ Custom server URLs: Support for different server endpoints
- ✅ Error handling: Graceful error handling and connection management
- ✅ npx support: Can be run directly with npx without installation
How It Works
- MCP Client (Claude Desktop/Cursor) launches the bridge via stdio
- Bridge connects to eru-ai WebSocket server
- Messages are translated between stdio (JSON-RPC) and WebSocket protocols
- Tools from eru-ai server are available in your MCP client
eru-ai Server Requirements
Your eru-ai server must:
- Be running on the specified port (default: 8088)
- Have MCP WebSocket endpoint enabled at
/mcp/websocket - Be accessible from where the bridge is running
Troubleshooting
Connection Refused
npx @eru-tech/eru-ai-mcp-bridge --verboseCheck that:
- eru-ai server is running
- Port 8088 is accessible
- WebSocket endpoint
/mcp/websocketis available
MCP Client Not Finding Tools
Verify the server URL and check eru-ai server logs:
curl http://localhost:8088/mcp/health
curl http://localhost:8088/mcp/statsDevelopment
git clone <repo>
cd eru-ai-mcp-bridge
npm install
node index.js --verboseLicense
MIT - See LICENSE file for details.
