Perforce Agentic Gateway

io.github.perforce由 GitHub 帳號 perforce 發布v2026.6更新於 Oct 24, 2026

Local MCP gateway that proxies AI clients to many MCP servers with a token-efficient code mode

發布方自己的服務:agentic.no

已驗證STDIO僅桌面效率與工作流開發者工具

概覽

AI 產生的概覽

本機 MCP 閘道:AI 用戶端只需連線一次,即可透過節省 token 的程式碼模式代理多個 MCP 伺服器。

可以做什麼
從已設定的登錄檔探索並搜尋可安裝的 MCP 伺服器(含 Perforce 原廠伺服器),並依專案技術訊號提出建議,啟用前一定先詢問。啟用目錄中的伺服器,或新增自訂伺服器(本機指令、容器或遠端 HTTP 端點);閘道會寫入設定並啟動它們,程序崩潰時自動重新啟動。透過沙箱化的執行工具執行 JavaScript 呼叫下游工具,讓跨伺服器的迴圈與扇出只需一次往返。可在命令列瀏覽目錄,並為已連線的伺服器建立或分享瀏覽器儀表板。將伺服器憑證存入作業系統鑰匙圈,並透過儀表板連結輸入密鑰。
適用情境
當你連接多個 MCP 伺服器、希望只設定一個用戶端,而不必把所有伺服器的工具都載入上下文時適用。也適合統一採用 Perforce 產品伺服器,或需要依專案推薦伺服器的團隊。
執行需求
以 stdio MCP 伺服器在本機執行,透過 uvx 啟動;uv 是唯一硬性需求。只有容器類伺服器需要 Docker 或 Podman,每個被代理的伺服器還需自身相依套件(例如 npx 伺服器需要 Node,API 伺服器需要帳號)。僅限桌面端。
安裝前請注意
閘道會在你的電腦上啟動並管理其他 MCP 伺服器程序,並寫入其設定。多數 Perforce 伺服器需要伺服器 URL 與存取權杖等憑證,這些憑證存入作業系統鑰匙圈,並透過儀表板連結輸入而非聊天。執行工具會執行呼叫下游工具的 JavaScript,請確認其允許的操作範圍。啟用伺服器前應先確認。

安裝

在 SourceWeft 中

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

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[PAG — Perforce Agentic Gateway]

PAG — Perforce Agentic Gateway

Perforce Agentic Gateway (PAG) is a local MCP gateway providing a token efficient code mode. AI clients are configured once, to connect to PAG and all other MCP servers are instead configured through PAG. Instead of being set up with and loading the tools of each MCP separately, PAG manages the running MCP server processes, restarts them when they crash, and stores their necessary credentials in your OS Keychain.

Prerequisites

  • uv — the only hard requirement.
  • Docker or Podman — only for servers that run as containers.
  • Each server's own dependencies — PAG proxies servers, it doesn't bundle them (e.g. Node for npx servers, an account for API servers).

Quickstart

1. Connect your AI client

PAG runs as a stdio MCP server, launched via uvx.

With Claude Code:

sh
claude mcp add pag -- uvx perforce-agentic-gateway@latest

For any client that uses .mcp.json (Cursor, and others):

json
{  "mcpServers": {    "pag": {      "command": "uvx",      "args": ["perforce-agentic-gateway@latest"]    }  }}

@latest keeps PAG current on each launch. Add --working-directory <dir> to pin a project. Other clients (Codex, VS Code, ...): see Connecting AI clients. Restart the client; pag__* tools should appear.

Prefer to install once instead of fetching on demand? uv tool install perforce-agentic-gateway puts a perforce-agentic-gateway command on your PATH that you run in place of uvx perforce-agentic-gateway — see Installing PAG as a tool.

2. See what's available

Ask your assistant:

"What MCP servers are in the PAG registry?"

Lists everything installable from configured registries — including Perforce's first-party servers, e.g. P4, BlazeMeter, Perfecto, Delphix, IPLM.

3. Enable a server from the catalog

Perforce product support MCP servers are available straight from the catalog. Ask your assistant to recommend servers for what you're working on:

"What MCP servers would help with this project?"

PAG scans your project for technology signals and suggests catalog servers, always asking before it enables anything. Or name one directly:

"Enable the P4 server."

PAG records it in your config and starts it. Most Perforce servers need credentials (typically a server URL and an access token); when so, the assistant hands you a dashboard link to enter them — secrets never travel through the chat. See Perforce servers and Secrets.

Browse the full catalog any time with uvx perforce-agentic-gateway view. See Using PAG.

4. Or add a custom server

Anything not in a registry — a local command, a container, or a remote HTTP endpoint — you add directly. The MCP fetch server runs via uvx and needs no credentials, so it's a handy zero-setup server to run end to end and see the flow:

"Add a custom server named fetch that runs uvx mcp-server-fetch."

PAG writes it to your config and starts it.

5. Run a real command

"Fetch https://modelcontextprotocol.io and tell me what MCP is."

The assistant calls fetch__fetch through PAG and answers from the live page.

Why it stays fast

text
AI client --one stdio connection--> PAG --> server A (command)                                     | --> server B (remote HTTP)                                     +-> server C (container)

PAG doesn't forward every downstream tool to your client (20 servers can mean a thousand tools). It exposes a small, fixed pag__* set and keeps the full catalog inside the gateway:

  • pag__explore searches the catalog; only the slice the assistant asks for enters its context.
  • pag__execute runs JavaScript that calls downstream tools, so loops and fan-out across servers take one round trip instead of many.

Full mechanics (the sandbox, qualified tool names, prompts and resources) are in Tools and the sandbox.

Going deeper

  • Connecting AI clients — Claude Code, Codex, VS Code, Cursor.
  • Using PAG — managing servers, the dashboard, the catalog and registries, Perforce servers, the tools/sandbox model.
  • Dashboards — build browser dashboards over your servers with the UI Builder.
  • Sharing dashboards — export a dashboard to another project, and import one.
  • Secrets — entering, storing, and looking up credentials.
  • Configuration — the complete config.toml reference.
  • Troubleshooting — logging and common fixes.
  • Reference — command line, uninstalling, glossary.

Feedback

Bug reports and feature requests go through GitHub issues. For setup and runtime problems, check Troubleshooting first — it covers the common cases.

License

Use of PAG is governed by the Perforce Agentic Gateway Terms of Use.

來源:README.md,提交 21b65af

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v2026.6最新Sep 22, 2026
  2. v2026.5Sep 16, 2026

評分

已滿足適用檢查項的 40%

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

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

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

其他 Agentic 整合