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

tryoz

v0.2.5

Published

One-line Oz MCP setup for coding agents.

Downloads

241

Readme

Oz MCP Setup

npm version license CI website

One-line setup for Oz, a version-aware documentation MCP server for coding agents.

npx tryoz setup

Oz gives agents a repeatable workflow for external library, SDK, framework, API, and package questions:

  1. Resolve the exact library ID.
  2. Fetch version-aware docs and code examples.
  3. Use exact API symbols, routes, env vars, config keys, and CLI flags from the returned context.
  4. Fall back to Context7, official docs, source repositories, or web search only when Oz does not have enough coverage.

Why Oz

Without a documentation MCP, coding agents often answer from old training data, guess APIs, or mix docs from the wrong major version.

With Oz, your agent can ask for the current indexed documentation at the moment it needs context.

User: Add Next.js middleware auth for v15.
Agent: resolve-library-id -> /vercel/next.js
Agent: get-library-docs -> version v15, topic middleware auth
Agent: answers from retrieved docs instead of guessing.

Setup Flow

npx tryoz setup is interactive by default:

The setup wizard:

  1. Detects installed coding agents.
  2. Shows a checkbox list with detected agents selected by default.
  3. Asks for scope: Global (recommended) or Project.
  4. Asks for an Oz API key. Keys must start with oz-.
  5. Shows the exact files and commands that will change.
  6. Installs the Oz MCP config.
  7. Installs the Oz skill or the best available rule fallback.
  8. Verifies the MCP server with tools/list.

No login flow. No broad hidden patching. Use --all when you want to configure every supported agent.

Supported Agents

| Agent | Global | Project | Skill or policy | | --- | --- | --- | --- | | Codex CLI / Codex IDE | Yes | Yes | Codex skill + AGENTS.md for project scope | | Claude Code | Yes | Yes | Claude skill + CLAUDE.md for project scope | | Cursor | Yes | Yes | Cursor rule | | VS Code / GitHub Copilot | Yes | Yes | Copilot instructions for project scope | | Cline | Yes | Yes | MCP config + AGENTS.md for project scope | | Windsurf | Yes | Yes | Windsurf rules | | OpenCode | Yes | Yes | OpenCode config + policy | | GitHub Copilot CLI | Yes | Yes | MCP config | | GitHub Copilot Coding Agent | Project | Yes | Repository MCP config | | Grok Build | Yes | Yes | Claude-compatible project policy | | Gemini CLI | Policy | Policy | GEMINI.md policy |

Common Commands

# Interactive setup
oz setup
npx tryoz setup

# Non-interactive setup
npx tryoz setup --codex --claude --global --api-key oz-your-key
npx tryoz setup --all --project --api-key oz-your-key

# Remove Oz-owned config only
oz logout
npx tryoz remove
npx tryoz logout
npx tryoz remove --codex --claude --global

# Verify the remote MCP endpoint
npx tryoz mcp test --api-key oz-your-key

# Inspect local agent config health
npx tryoz doctor --api-key oz-your-key

# List detected clients
npx tryoz list-agents
npx tryoz detect

Manual MCP Config

Use this endpoint for clients that you configure manually:

https://tryoz.dev/mcp

Pass your API key as a bearer token:

{
  "mcpServers": {
    "oz": {
      "type": "http",
      "url": "https://tryoz.dev/mcp",
      "headers": {
        "Authorization": "Bearer oz-your-key"
      }
    }
  }
}

Installed Skill

The bundled Oz skill and policy tell agents:

Use Oz first for external libraries, SDKs, APIs, frameworks, and packages.

Workflow:
1. Call `resolve-library-id` to find the exact Oz library ID.
2. Call `get-library-docs` with the resolved library ID and the user's topic.
3. If the user asks for a version, pass the version explicitly.
4. Use the returned documentation as the source of truth.
5. If Oz has no matching library, lacks the requested version, or returns insufficient context, then fall back to Context7, official docs, source repositories, or web search.

The full skill is packaged at templates/skills/oz/SKILL.md.

Documentation

Development

npm install
npm test
npm run pack:check
node bin/tryoz.js setup --dry-run --no-telemetry

Telemetry

Anonymous CLI telemetry records only command name, selected client IDs, OS/platform, success/failure, and CLI version. It does not send prompts, file contents, API keys, or absolute repository paths.

Disable telemetry with:

npx tryoz setup --no-telemetry

Security

Report security issues privately. See SECURITY.md.

Disclaimer

This repository contains the public Oz setup CLI, agent skills, rules, and docs. The hosted Oz indexing backend, crawler, vector store, and production dashboard are separate service components.

Oz indexes third-party documentation. Always validate critical changes against the upstream library or API owner when correctness or security matters.

License

MIT