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 集成