PubFi MCP

ai.pubfi由 pubfi.ai 發布官方發布者v0.3.3更新於 Oct 29, 2026

Use MCP 2026-07-28 discovery or 2025-11-25 initialize to list and execute PubFi routes.

已驗證Streamable HTTP可網頁執行雲端與基礎設施開發者工具

概覽

AI 產生的概覽

PubFi MCP 提供固定的四個工具,讓助理列出 PubFi 能力目錄、讀取介面契約,並依精確的 GET 或 POST 路徑執行路由。

可以做什麼
  • 以精簡分頁摘要列出已安裝的 Registry v2 能力目錄
  • 依精確的能力 id 讀取完整的請求、回應、計量與就緒狀態契約
  • 透過已驗證的 PubFi 帳戶通道執行一條精確的 GET 或 POST 路徑,與 HTTP 閘道使用相同的比對器與執行器
  • 以預期的程式碼酬載雜湊驗證一筆已審核的 Substrate 執行環境升級外部交易
適用情境
適合需要探索並呼叫 PubFi 已發布 API 路由、而非自行拼裝一組供應商工具的助理,也適合在套用 Substrate 執行環境升級前先行驗證。伺服器不排序也不推測意圖,須由用戶端代理自行選定能力。
執行需求
使用託管於 PubFi 的遠端 Streamable HTTP 端點,不需在本機安裝套件。目錄列表與詳情讀取為公開。執行路由需要 PubFi API 金鑰或 OAuth 存取權杖,以 Authorization Bearer 標頭傳送,或改用獨立的無帳戶 x402 端點。選用的 stdio 橋接範例需要 Node.js 24.19.0 或更新版本。
安裝前請注意
在帳戶通道執行會消耗 PubFi Credits,x402 通道涉及付款物件。API 金鑰不要寫進受版本控管的設定檔,測試與正式環境應使用不同金鑰。執行路由會呼叫第三方供應商,並可能依路由變更資料。x402 流程中不得攜帶 API 金鑰、私鑰或付款簽章標頭。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 PubFi MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/ai.pubfi%2Fmcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "pubfi": {
      "type": "http",
      "url": "https://mcp.pubfi.ai/"
    }
  }
}

README

PubFi MCP Stdio Bridge Smoke Fixture

This public example is a local, dependency-free MCP-compatible stdio bridge and smoke fixture for the PubFi hosted MCP endpoint. Run it with Node.js 24.19.0 or a later Node.js 24 release.

The bridge forwards modern server/discover, list, and tools/call requests to the Rust MCP endpoint instead of synthesizing a second handshake, running a retired TypeScript route-tool implementation, or creating one public tool per provider. Every request carries complete MCP 2026-07-28 metadata and the bridge mirrors the standard HTTP routing headers. PubFi does not create protocol sessions. The bridge itself accepts only modern input; clients that need MCP 2025-11-25 initialize-era compatibility connect directly to the same hosted endpoint.

For hosted authenticated use, configure an MCP client for PubFi's Streamable HTTP endpoint at https://mcp.pubfi.ai. The hosted authenticated service uses four fixed Registry v2 tools. Catalog list/detail reads are public. Exact execution on this root requires a PubFi API key or OAuth access token. Eligible accountless x402 execution uses https://mcp.pubfi.ai/x402 without a Bearer credential. Upstream provider credentials stay server-side.

Tools

  • pubfi.capabilities.list
  • pubfi.capabilities.get
  • pubfi.route.execute
  • pubfi.substrate.runtime_upgrade.verify

pubfi.capabilities.list enumerates compact summaries with an opaque generation-bound cursor. pubfi.capabilities.get returns the full typed contract for one exact capability id. The client agent selects the capability; PubFi does not rank candidates or infer intent. Executable paths, methods, matchers, schemas, method-specific PubFi pricing, and readiness come only from the installed signed Registry generation.

Run In Staging

From the repository root:

sh
export STG_PUBFI_API_KEY='<Staging PubFi API key>'export PUBFI_MCP_ENDPOINT='https://mcp-stg.pubfi.ai'node examples/agents/pubfi-route-tools-mcp/server.ts

Example MCP client config:

json
{  "mcpServers": {    "pubfi-route-tools": {      "command": "node",      "args": ["examples/agents/pubfi-route-tools-mcp/server.ts"]    }  }}

Start the client from an environment that supplies these variables, or use its secret-store integration. Do not put the key in a tracked configuration file.

Move To Production

Create a separate Production key and use the exact Production endpoint:

sh
export PROD_PUBFI_API_KEY='<Production PubFi API key>'export PUBFI_MCP_ENDPOINT='https://mcp.pubfi.ai'node examples/agents/pubfi-route-tools-mcp/server.ts

The client configuration above uses the same local command. Do not send a Staging key to the Production endpoint.

Smoke

sh
node examples/agents/pubfi-route-tools-mcp/smoke_pubfi_route_tools_mcp.tsnode --test examples/agents/pubfi-route-tools-mcp/bridge-response.test.ts \  examples/agents/pubfi-route-tools-mcp/endpoint-policy.test.ts

For an authenticated Staging smoke:

sh
export STG_PUBFI_API_KEY='<Staging PubFi API key>'export PUBFI_MCP_ENDPOINT='https://mcp-stg.pubfi.ai'node examples/agents/pubfi-route-tools-mcp/smoke_pubfi_route_tools_mcp.ts

Without the endpoint-selected caller key, the smoke verifies modern discovery, the fixed tool list, complete catalog pagination, exact capability detail, and the execution credential gate. With STG_PUBFI_API_KEY for staging MCP endpoints or PROD_PUBFI_API_KEY for production MCP endpoints, the same catalog reads remain public. For a deliberate live request, set PUBFI_MCP_EXECUTE_LIVE=1, PUBFI_MCP_SMOKE_RAW_PATH, and PUBFI_MCP_SMOKE_METHOD from the current catalog. Optional PUBFI_MCP_SMOKE_QUERY and PUBFI_MCP_SMOKE_BODY supply the exact route input. PUBFI_MCP_SMOKE_BODY is the exact compact ASCII request body (for example, {"limit":10}), not a nested MCP JSON value. The smoke never invents a provider route or capability id.

See the Staging guide for login, key creation, HTTP checks, the Base Sepolia test boundary, and the Production transition.

For accountless payment, use an official x402 MCP client. An unsigned eligible pubfi.route.execute call on https://mcp-stg.pubfi.ai/x402 or https://mcp.pubfi.ai/x402 returns PaymentRequired in the MCP tool result. The retry carries the x402 V2 payment object at params._meta["x402/payment"]; the settled result carries result._meta["x402/payment-response"]. Do not pass a PubFi API key, private key, or PAYMENT-SIGNATURE HTTP header in this flow.

The stdio bridge accepts only the exact production and staging roots (https://mcp.pubfi.ai and https://mcp-stg.pubfi.ai). It rejects userinfo, ports, alternate paths, query strings, fragments, lookalike hosts, and redirects before forwarding a scoped caller key. PUBFI_MCP_ORIGIN is not a supported alias.

The hosted deploy-equivalent smoke is included in:

sh
npm run smoke:mcp-e2e --workspace apps/web -- --jsonnpm run smoke:mcp-e2e --workspace apps/web -- --execute-live --json

Execution Boundary

pubfi.route.execute accepts an exact raw_path and method selected after list/detail catalog reads. The Rust Data Plane resolves that pair through the installed Registry v2 matcher and uses the same typed executor, credential authority, Credit accounting, generation, and fail-closed readiness state as the HTTP gateway. A blocked or absent current-catalog route remains non-executable. This bridge does not add provider branches, capability ranking, compatibility route ids, supplier procurement, automatic payment, or a second catalog authority.

來源:examples/agents/pubfi-route-tools-mcp/README.md,提交 13e8e5c

工具

4

pubfi.capabilities.list

Enumerate the complete installed Registry v2 catalog as deterministic compact pages. The server does not rank, infer intent, or choose a capability.

輸入參數limitcursormethodprovider_key

pubfi.capabilities.get

Return the full typed request, response, metering, and readiness contract for one exact capability id from the installed Registry generation.

輸入參數capability_id必填

pubfi.route.execute

Execute one exact GET or POST path through the authenticated PubFi account lane and the same Registry v2 matcher and typed executor as the HTTP gateway. Append :free only when the capability catalog publishes that exact account-scoped free variant.

輸入參數bodyquerymethod必填raw_path必填request_ididempotency_key

pubfi.substrate.runtime_upgrade.verify

Verify one reviewed Substrate System.apply_authorized_upgrade extrinsic through the authenticated account lane. Supply the expected Blake2b-256 hash of the FRAME System AuthorizedUpgrade code payload, not the active :code hash at the apply block. The server streams and discards provider runtime code, persists only a compact proof, and returns independent comparison evidence.

輸入參數network必填request_idextrinsic_hashextrinsic_indexidempotency_keyexpected_authorized_code_hash必填

版本歷史

29
  1. v0.3.3最新Oct 29, 2026
  2. v0.2.85Oct 26, 2026
  3. v0.2.84Oct 12, 2026
  4. v0.2.83Oct 10, 2026
  5. v0.2.82Oct 9, 2026
  6. v0.2.81Oct 7, 2026
  7. v0.2.80Oct 4, 2026
  8. v0.2.79Oct 2, 2026
  9. v0.2.78Oct 1, 2026
  10. v0.2.77Oct 1, 2026
  11. v0.2.75Sep 29, 2026
  12. v0.2.73Sep 29, 2026
  13. v0.2.72Sep 29, 2026
  14. v0.2.69Sep 28, 2026
  15. v0.2.66Sep 27, 2026
  16. v0.2.65Sep 27, 2026
  17. v0.2.63Sep 23, 2026
  18. v0.2.60Sep 23, 2026
  19. v0.2.58Sep 22, 2026
  20. v0.2.55Sep 21, 2026
  21. v0.2.54Sep 21, 2026
  22. v0.2.51Sep 21, 2026
  23. v0.2.49Sep 20, 2026
  24. v0.2.48Sep 19, 2026
  25. v0.2.47Sep 18, 2026
  26. v0.2.46Sep 18, 2026
  27. v0.2.43Sep 17, 2026
  28. v0.2.41Sep 17, 2026
  29. v0.2.38Sep 16, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。