Skip to main content

Crate phrona_mcp

Crate phrona_mcp 

Source
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. shutdown fires 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”).