3 ms·
> 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
by 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"]}}}`