npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@pagent/mcp

v0.1.0

Published

Connect pagent to Claude, ChatGPT, Codex, Cursor and other MCP clients. Run A/B tests from your coding agent.

Downloads

28

Readme

@pagent/mcp

Connect pagent to your coding agent in one command.

npx @pagent/mcp init

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

What pagent is

pagent is an AI A/B testing agent. 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.

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

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

npx @pagent/mcp init                 # detect your clients and connect them
npx @pagent/mcp init --client cursor # connect one client
npx @pagent/mcp init --local         # write a project config, not a user one
npx @pagent/mcp init --dry-run       # show what would change, write nothing
npx @pagent/mcp print                # print the config without writing
npx @pagent/mcp list                 # list supported clients

Supported clients

| Client | How it is configured | | ------------------------ | ----------------------------------------------- | | Claude Code | claude mcp add | | Codex | codex 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 | | ChatGPT | Developer 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.