pagent

io.github.aihumin由 GitHub 账号 aihumin 发布v1.0.1更新于 Oct 30, 2026

A/B testing MCP server for pagent: create, run and review A/B tests on your live website.

已验证Streamable HTTP可网页运行数据与分析商业与电商

概览

AI 生成的概览

托管式 pagent MCP 服务器,让助手读取、创建并控制线上网站的 A/B 测试。

可以做什么
  • 列出进行中和已完成的测试并读取其贝叶斯结果
  • 对比测试并查看每个变体在页面上改动了什么
  • 读取页面、受众、转化目标、人物画像与准则
  • 记录假设并将其转化为测试
  • 启动、暂停、恢复、排队、停止、演进或回滚测试
  • 创建页面与转化目标,管理受众
适用场景
适合团队通过 pagent 在线上网站做 A/B 测试,并希望在常用聊天客户端里询问哪个测试领先、对比历史测试,或直接启动和暂停实验,而不必打开 pagent 后台。
运行要求
远程 Streamable HTTP 端点 app.pagent.ai,使用 OAuth 2.0 登录(或使用个人令牌)。需要拥有该组织所有者或管理员权限的 pagent 账号、为该组织启用 MCP,并在网站上安装 pagent 脚本。可选的 CLI 配置通过 npx 运行,需要 Node.js。
安装前请注意
写权限允许助手创建页面与目标、管理受众,并启动、暂停、停止、演进或回滚线上测试;除非确需改动,建议只授予只读权限。访问范围限于登录时选择的组织,可在 pagent 设置中随时撤销。测试运行在线上网站,变体会影响真实访客。

安装

在 SourceWeft 中

  1. 打开 控制台中的 pagent,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.aihumin%2Fpagent/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "pagent": {
      "type": "http",
      "url": "https://app.pagent.ai/api/mcp"
    }
  }
}

README

pagent: the A/B testing MCP server for coding agents

@pagent/mcp connects Claude, ChatGPT, Claude Code, Codex, Cursor and any other MCP client to pagent, so your agent can run A/B tests on your live website. Set it up in one command:

bash
npx @pagent/mcp init

This finds the MCP clients on your machine and points them at pagent's hosted MCP server. Nothing else to copy, no config format to choose.

What pagent is

pagent is an AI A/B testing agent, an AI Experiment Engineer for your website. It reads your pages, writes the hypothesis, builds the variation as real code on your design system, runs the test on your live site with Bayesian statistics, and learns what to try next. Your team reviews each variation before it goes live. pagent adds to your testing stack; it does not replace it.

With this MCP server your agent joins that loop: it reads results, captures the next hypothesis, and starts the next test from the chat you already use.

Can Claude or ChatGPT run A/B tests on my live website?

Yes, once they are connected to an experimentation platform through MCP. A language model on its own cannot serve variations to your visitors or measure conversions. With the pagent MCP server, Claude, ChatGPT or your coding agent can start, pause and stop tests on your live site and read their results, while pagent builds the variations, splits the traffic and runs the statistics.

Things you can ask once connected:

  • "Which of our running A/B tests is winning, and how sure are we?"
  • "Compare last month's pricing page tests and tell me what changed on the page."
  • "Capture a hypothesis: a shorter signup form will raise trial starts. Turn it into a test."
  • "Pause the checkout test and roll it back."

What your agent can do

With read access:

  • List running and completed tests and read their Bayesian results
  • Compare tests and inspect what each variation changes on the page
  • Read pages, audiences, conversion goals, personas and guidelines

With write access:

  • Capture a hypothesis and turn it into a test
  • Start, pause, resume, queue, stop, evolve or roll back a test
  • Create pages and conversion goals, manage audiences

You choose read or write, and which organisations the client may see, during sign-in. You can revoke a connection at any time in your pagent settings.

Usage

bash
npx @pagent/mcp init                 # detect your clients and connect themnpx @pagent/mcp init --client cursor # connect one clientnpx @pagent/mcp init --local         # write a project config, not a user onenpx @pagent/mcp init --dry-run       # show what would change, write nothingnpx @pagent/mcp print                # print the config without writingnpx @pagent/mcp list                 # list supported clients

Supported clients

ClientHow it is configured
Claude Codeclaude mcp add
Codexcodex mcp add
Cursor~/.cursor/mcp.json or .cursor/mcp.json
VS Code.vscode/mcp.json
Windsurf~/.codeium/windsurf/mcp_config.json
Zed~/.config/zed/settings.json
Claude (web and desktop)Settings, Connectors, add a custom connector
ChatGPTDeveloper mode, Plugins, add a custom connector

Claude and ChatGPT are configured in their own interface, so this CLI prints the steps rather than editing anything. Run npx @pagent/mcp print --client chatgpt.

Existing servers in your config are left alone. If a config file cannot be parsed, for example because it has comments, the CLI prints the entry for you to paste instead of rewriting the file.

Connecting by hand

Any MCP client can use the hosted server directly:

  • Endpoint: https://app.pagent.ai/api/mcp
  • Transport: Streamable HTTP
  • Authentication: OAuth 2.0, or a personal token from AI client access

Before you connect

You need a pagent account with owner or administrator access to the organisation, MCP enabled for it, and a website with the pagent script installed so there are tests and visitor data to read.

Links

License

MIT. pagent itself is a commercial product; this CLI only writes local configuration files.

来源:README.md,提交 cbb5f32

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

2
  1. v1.0.1最新Oct 23, 2026
  2. v1.0.0Sep 16, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分