GustWeb.MCPRouter (gust_web v0.1.31)

Router macro that mounts the Gust MCP server routes inside a chosen scope.

Import this module into your Phoenix router and call gust_mcp_server/0 inside an API scope. The host router owns the prefix, so you can mount these routes anywhere that fits your app:

import GustWeb.MCPRouter

scope "/mcp", MyAppWeb do
  pipe_through :api
  gust_mcp_server()
end

scope "/gust/mcp", MyAppWeb do
  pipe_through :api
  gust_mcp_server()
end

Summary

Functions

gust_mcp_server()

(macro)