mix ragex.serve (Ragex v0.18.2)

View Source

Starts the Ragex REST API server on the specified port.

Usage

mix ragex.serve              # default port 4321
mix ragex.serve --port 8080  # custom port

The server exposes all MCP tools over HTTP:

  • GET /api/health -- health check
  • GET /api/tools -- list tools
  • GET /api/openapi.json -- OpenAPI spec
  • POST /api/tools/:tool_name -- invoke a tool

Set RAGEX_API_KEY to require authentication.