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

mcp-agents

v0.5.2

Published

MCP server that wraps AI CLI tools (Claude Code, Gemini CLI, Codex CLI) for use by any MCP client

Readme

mcp-agents

MCP server that wraps AI CLI tools — Claude Code, Gemini CLI, and Codex CLI — so any MCP client can call them as tools.

Prerequisites

  • Node.js >= 18
  • At least one of the following CLIs installed and on your $PATH:

| CLI | Install | |-----|---------| | claude | Claude Code docs | | gemini | npm install -g @anthropic-ai/gemini-cli | | codex | npm install -g @openai/codex |

Only the CLI you select with --provider needs to be present.

Quick test

# Default provider (codex)
npx mcp-agents

# Specific provider
npx mcp-agents --provider claude
npx mcp-agents --provider gemini
npx mcp-agents --provider gemini --sandbox false

The server speaks JSON-RPC over stdio. It prints [mcp-agents] ready (provider: <name>) to stderr when it's listening.

Providers & Tools

Each --provider flag maps to a single exposed tool:

| Provider | Tool name | CLI command | |----------|-----------|-------------| | claude | claude_code | claude -p <prompt> | | gemini | gemini | gemini [-s] -p <prompt> | | codex | (pass-through) | codex mcp-server |

claude_code parameters

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | prompt | string | yes | The prompt to send to Claude Code | | timeout_ms | integer | no | Timeout in ms (default: 120 000) |

gemini parameters

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | prompt | string | yes | The prompt to send to Gemini CLI | | sandbox | boolean | no | Run in sandbox mode (-s flag, default: false) | | timeout_ms | integer | no | Timeout in ms (default: 120 000) |

codex (pass-through)

The codex provider passes through to Codex's native MCP server (codex mcp-server) with configurable flags:

| CLI Flag | Default | Codex flag | |----------|---------|------------| | --model | gpt-5.3-codex | -m <model> | | --model_reasoning_effort | high | -c model_reasoning_effort=<value> |

Hardcoded defaults: -s read-only -a never (safe for MCP server mode).

Integration with Claude Code

Add entries to your project's .mcp.json:

{
  "mcpServers": {
    "codex": {
      "command": "npx",
      "args": ["-y", "mcp-agents@latest", "--provider", "codex"]
    },
    "gemini": {
      "command": "npx",
      "args": ["-y", "mcp-agents@latest", "--provider", "gemini", "--sandbox", "false"]
    }
  }
}

Override codex defaults:

{
  "mcpServers": {
    "codex": {
      "command": "npx",
      "args": ["-y", "mcp-agents@latest", "--provider", "codex", "--model", "o3-pro", "--model_reasoning_effort", "medium"]
    }
  }
}

Integration with OpenAI Codex

Add two entries to ~/.codex/config.toml — one per provider you want available:

[mcp_servers.claude-code]
command = "npx"
args = ["-y", "mcp-agents", "--provider", "claude"]

[mcp_servers.gemini]
command = "npx"
args = ["-y", "mcp-agents", "--provider", "gemini", "--sandbox", "false"]

Then in a Codex session you can call the claude_code or gemini tools, which shell out to the respective CLIs.

How it works

  1. An MCP client connects over stdio
  2. The server reads --provider <name> from its argv (defaults to codex)
  3. It registers a single tool matching that provider's CLI
  4. Client calls tools/call with the tool name and a prompt
  5. The server runs the CLI as a child process and returns stdout (or stderr) as the tool result

The server includes a keepalive timer to prevent Node.js from exiting prematurely when stdin reaches EOF before the async subprocess registers an active handle.

License

MIT