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

@codewright/mcp

v0.2.1

Published

Readme

@codewright/mcp

A Model Context Protocol server that exposes Codewright's public, read-only API v1 to any MCP-compatible agent host (Claude Desktop, Claude Code, etc). It never talks to the database directly and never executes any command locally — see "Safety" below.

Configuration

| Env var | Default | Purpose | | --- | --- | --- | | CODEWRIGHT_API_BASE_URL | https://codewright.tools/api/v1 | Base URL of the Codewright public API v1. |

Running

Once published, run it directly with npx:

npx @codewright/mcp

Or add it to a Claude Desktop / Claude Code MCP configuration:

{
  "mcpServers": {
    "codewright": {
      "command": "npx",
      "args": ["-y", "@codewright/mcp"],
      "env": {
        "CODEWRIGHT_API_BASE_URL": "https://codewright.tools/api/v1"
      }
    }
  }
}

During local development in this monorepo, run it from source instead:

pnpm --filter @codewright/mcp build
node packages/mcp-server/dist/cli.js

Tools

  • search_recipes{ query: string, limit?: number } → full-text search over the recipe library (GET /api/v1/recipes/search). Returns recipe summaries (id, title, risk, platforms, tags, etc).
  • get_recipe{ id: string } → the full recipe document (GET /api/v1/recipes/{id}), including parameters, per-platform steps, verification, and undo.
  • render_recipe{ id: string, platform: "macos" | "linux" | "windows", params?: Record<string, string | number | boolean> } → concrete, parameter-substituted commands for the given platform (POST /api/v1/recipes/{id}/render).
  • search_workflows{ query: string, category?: string } → full-text search over the workflow library (GET /api/v1/workflows/search). Returns workflow summaries (id, title, description, category, tags). The underlying search endpoint doesn't take a category filter itself, so when category is given this tool applies it client-side over the search results.
  • get_workflow{ id: string } → the full workflow document (GET /api/v1/workflows/{id}), including the entry node id and the entire nodes map, so a caller can walk branches itself (matching its own tool-call output against each node's branches) without a round trip per node.

Safety

render_recipe (and this package as a whole) never executes any command. It only relays the JSON returned by the Codewright API verbatim — including risk and requires_confirmation — so the calling agent/host is responsible for deciding whether and how to run the returned commands, and for honoring requires_confirmation: true on destructive recipes by asking the user first (see docs/ARCHITECTURE.md "Security ground rules" and docs/RECIPE_SPEC.md). There is no child_process/exec usage anywhere in this package.

Publishing

This PR does not publish the package to npm. Publishing under the @codewright npm scope is a separate, human-gated step performed outside the agent workflow.