Corex.MCP (Corex MCP v0.2.0)

Copy Markdown View Source

Dev-only Plug that mounts the Corex Model Context Protocol HTTP endpoint for AI tooling.

Ships as the Hex package corex_mcp. Add it to your app with only: [:dev, :test], then mount after Plug.Static and before the code reloader:

if Mix.env() in [:dev, :test] do
  plug Corex.MCP
end

The endpoint is at /corex/mcp. Never enable this plug in :prod (initialization raises unless you pass force: true).

See the MCP guide for tools, security, Cursor/Claude config, and Tableau Bandit wiring.

Summary

Functions

root()