Expand description
Phrona MCP server.
Exposes the phrona library to AI agents over stdio (JSON-RPC). Tools are compartmentalized per capability: per-category search, suggestions, page extraction and grounded search for RAG.
Functions§
- run_
stdio - Serve the MCP server over stdio (JSON-RPC 2.0, newline-delimited). Blocks until the client disconnects.
- serve_
tcp - Serve the MCP server over a TCP listener (newline-delimited JSON-RPC,
the same framing as stdio). Each connection is served in its own task.
shutdownfires on SIGTERM/Ctrl+C: the accept loop stops and in-flight connections get a short grace window to drain before the process exits. Blocks until the listener is closed or shutdown fires. - tcp_
listener - Build a TCP listener from an addr string (e.g. “127.0.0.1:8081”).