Ash FrameworkAF
Ash Framework8mo ago
9 replies
Terris

Ash-AI MCP and Cursor

My MCP config in Cursor:
{
  "mcpServers": {
    "tidewave": {
      "command": "/Users/foo/mcp-proxy",
      "args": [
        "http://localhost:4000/tidewave/mcp"
      ]
    },
    "ash": {
      "command": "/Users/foo/mcp-proxy",
      "args": [
        "http://localhost:4000/mcp/ash_ai"
      ]
    }
  }
}


When I enable the MCP server in Cursor, the output from my Ash app run via mix phx.server outputs the following endlessly:

```
[info] POST /mcp/ash_ai
[debug] Processing with AshAi.Mcp.Router
Parameters: %{"id" => "init", "jsonrpc" => "2.0", "method" => "initialize", "params" => %{"capabilities" => %{}, "clientInfo" => %{"name" => "test", "version" => "0.1.0"}, "protocolVersion" => "2025-03-26"}}
Pipelines: [:mcp]
[info] Sent 401 in 580µs
[debug] Phoenix.Router halted in :mcp/2
Solution
 "ash_dev": {
      "command": "npx",
      "args": ["mcp-remote@0.1.5", "http://localhost:4000/mcp/ash"]
  }
Was this page helpful?