AttestoMCP.Server.PhoenixParser (attesto_mcp_server v0.14.0)

Copy Markdown View Source

MCP-route parser bypass for Phoenix endpoints.

Phoenix endpoints commonly run Plug.Parsers before the router. This adapter keeps that parser unchanged for every request except the configured MCP route, which must reach the MCP Plug with its body still unread so that authentication can run first. Matching uses decoded path_info, covering route-equivalent trailing or repeated slashes that Phoenix also routes to the configured forward.