4 ms·
No. Any file that runs MCP Server is fine anywhere. I am intending a workspace separate from the rails app. The MCP server should be run in a separate process f
by moekiorg 2y ago
No. Any file that runs MCP Server is fine anywhere. I am intending a workspace separate from the rails app. The MCP server should be run in a separate process from the rails app. At least until the streamable http transport is ready.
https://github.com/modelcontextprotocol/specification/pull/206 https://github.com/modelcontextprotocol/specification/pull/2...
https://spec.modelcontextprotocol.io/specification/2025-03-26/basic/transports/#streamable-http https://spec.modelcontextprotocol.io/specification/2025-03-2...
- rco8786 2y ago> The MCP server should be run in a separate process from the rails app. Sorry super confused here. How can I do that while also booting up all the Rails stuff like the autoloader, db connections, etc?
- moekiorg 2y agoSorry for the misunderstanding, Active MCP requires two processes. 1. mount the Engine and then `$ rails s` 2. `server.rb` to start the MCP server. `$ ruby path/to/server.rb` `server = ActiveMcp::Server.new(name: "ActiveMcp DEMO", uri: 'https://your-app.example.com/mcp https://your-app.example.com/mcp' );server.start` Then, with an MCP client such as Claude Desktop, configure the following. `{"mcpServers": {"active-mcp-demo": {"command": "/path/to/ruby", "args": ["/path/to/server.rb"]}}}`