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 MCPtools/call requests require a PubFi API key. Public handshake and introspection
methods, such as initialize, ping, tools/list, resources/list, resources/templates/list,
prompts/list, and notifications/initialized, can be called without a 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 handles initialize and ping locally, forwards
tools/list and authenticated tools/call requests to the hosted Rust MCP endpoint, and writes
the response back to stdio. Other hosted public introspection methods remain available on
https://mcp.pubfi.ai; the local bridge keeps its stdio surface intentionally small.
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.
Tool Inputs
The hostedtools/list method publishes the current JSON Schema for each tool. The current public
input fields are:
| Tool | Input fields |
|---|---|
pubfi.capabilities.search | query, required_capabilities, categories |
pubfi.route.plan | intent, objective, chains, categories, required_capabilities, dry_run |
pubfi.route.execute | route_id, route_plan, arguments, idempotency_key, request_id |
pubfi.route.explain | intent, objective, chains, categories, required_capabilities, dry_run |
pubfi.schema.get | tool |
pubfi.pricing.quote | route_id, capability_id, intent |