Ragex. API. Router
(Ragex v0.17.1)
View Source
HTTP router for the Ragex REST API bridge.
Exposes MCP tools over HTTP for non-MCP integrations (CI pipelines, dashboards, scripts, custom tooling).
Endpoints
GET /api/health-- server health checkGET /api/tools-- list all available MCP toolsGET /api/openapi.json-- OpenAPI 3.0 specificationPOST /api/tools/:tool_name-- invoke an MCP tool with JSON body
Authentication
When RAGEX_API_KEY is set, all requests require
Authorization: Bearer <key>. Unset = open access.
Usage
Started via mix ragex.serve or programmatically:
Ragex.API.Server.start_link(port: 4321)
Summary
Functions
Callback implementation for Plug.call/2.
Callback implementation for Plug.init/1.