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

opencode-bridge-mcp

v0.1.0

Published

Local MCP bridge that lets coordinator agents (Claude Code, Codex, etc.) delegate low-cost text and long-running shell tasks to the OpenCode CLI.

Readme

opencode-bridge-mcp

Local MCP bridge that lets coordinator agents (Claude Code, Codex, etc.) delegate low-cost text work and long-running shell tasks to the OpenCode CLI.

Requirements

  • Node.js 20+
  • OpenCode CLI installed and authenticated (opencode auth login)

Use without installing

npx opencode-bridge-mcp

The bundled bridge-worker opencode agent is loaded automatically via OPENCODE_CONFIG, so the bridge works from any cwd.

Install globally

npm install -g opencode-bridge-mcp
opencode-bridge-mcp

Coordinator integration

Claude Code

Add to .mcp.json (project) or ~/.claude.json:

{
  "mcpServers": {
    "opencode-bridge": {
      "command": "npx",
      "args": ["-y", "opencode-bridge-mcp"]
    }
  }
}

Tools appear as mcp__opencode-bridge__opencode_summarize etc.

Codex CLI

codex mcp add opencode-bridge -- npx -y opencode-bridge-mcp

Tools appear as opencode-bridge/opencode_summarize etc. Verify with codex mcp list.

Tools

  • opencode_summarize — synchronous text summarization
  • opencode_read_and_analyze — read files in a workdir and return lightweight analysis
  • opencode_run_long_task — kick off long shell-oriented work, returns a task_id
  • opencode_get_task_status — poll background task status
  • opencode_get_task_result — fetch reduced final result (summary, key findings, log tail)

Long-running tasks store metadata, logs, and reduced results under ./data/tasks/<task_id>/ in the cwd of the bridge process (override with OPENCODE_MCP_BRIDGE_TASKS_DIR).

Environment variables

  • OPENCODE_BIN — path to the OpenCode binary (default: opencode)
  • OPENCODE_AGENT — agent name (default: bridge-worker, bundled with the package)
  • OPENCODE_ATTACH_URL — URL of a running opencode serve instance (avoids cold start)
  • OPENCODE_MODELprovider/model override for OpenCode runs
  • OPENCODE_CONFIG — full path to an opencode config file. Defaults to the bundled config; override only if you want to inject a different agent definition.
  • OPENCODE_MCP_BRIDGE_TASKS_DIR — task storage directory (default: ./data/tasks)
  • OPENCODE_MCP_BRIDGE_LOG_TAIL_LINES — log lines returned in reduced task results (default: 20)
  • OPENCODE_MCP_BRIDGE_PACKAGE_ROOT — override the package root used to locate the bundled opencode.json and prompts/. Rarely needed.

Warm OpenCode backend

Reduce cold starts by running OpenCode in serve mode:

opencode serve
export OPENCODE_ATTACH_URL=http://localhost:4096

Development

pnpm install
pnpm check    # build + tests
pnpm dev      # run from source