MCP Client Setup
PubFi exposes generic route and capability tools over MCP. The hosted endpoint is:Tools
pubfi.capabilities.searchpubfi.route.planpubfi.route.executepubfi.route.explainpubfi.schema.getpubfi.pricing.quote
Auth
Hosted MCP POST requests require a PubFi API key:Local Stdio Bridge
The current public-safe local example lives in the source repository at:https://mcp.pubfi.ai. The local file is not a second MCP backend
and it does not run provider logic locally. It is a dependency-free stdio bridge for MCP clients
that launch tools as local commands. The bridge reads JSON-RPC frames from the client, forwards
them to the hosted Rust MCP endpoint, and writes the hosted response back to stdio.
Recommended Agent Flow
- Call
pubfi.capabilities.search. - Call
pubfi.route.plan. - Call
pubfi.route.explainwhen the plan needs a reason readback. - Call
pubfi.schema.getbefore constructing execution input. - Call
pubfi.pricing.quotefor paid-capable flows. - Call
pubfi.route.executeonly for supported callable capability route ids with planning evidence.