Skip to main content

Module mcp

Module mcp 

Source
Expand description

Minimal MCP stdio server exposing rgx’s search to AI agents.

Speaks JSON-RPC 2.0 over stdio (newline-delimited), implementing the handshake plus three tools: content_search, file_search, and status. Results come back as ripgrep-style text (the shape models already know), per docs/mcp.md. Parsing uses serde_json so UTF-8, escapes, and key order are handled correctly.

Functions§

run
Run the MCP server rooted at root until stdin closes.