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

@directive-run/knowledge-mcp

v0.1.0

Published

Model Context Protocol server that exposes the Directive knowledge package as MCP tools — stdio for local clients, SSE for hosted deployments at mcp.directive.run.

Downloads

38

Readme

@directive-run/knowledge-mcp

A Model Context Protocol server that exposes the Directive knowledge package as MCP tools — every knowledge doc, code example, and Claude Code skill bundle, queryable at retrieval time instead of bundled as a static snapshot.

Two transports ship in the same binary:

  • stdio — the canonical MCP local-client pattern. Plugs into Claude Desktop, Cursor MCP, the MCP Inspector, and any other client that spawns an MCP server as a subprocess.
  • SSE (HTTP) — for hosting at mcp.directive.run or a private MCP gateway. Production AI agents query the hosted endpoint at runtime; no embedding pipeline, no bundle bloat.

Install

npm install -g @directive-run/knowledge-mcp
# or run directly without installing:
npx @directive-run/knowledge-mcp --help

stdio transport (local clients)

Add to your Claude Desktop config (claude_desktop_config.json):

{
  "mcpServers": {
    "directive": {
      "command": "npx",
      "args": ["-y", "@directive-run/knowledge-mcp"]
    }
  }
}

Or test with the MCP Inspector:

npx @modelcontextprotocol/inspector npx -y @directive-run/knowledge-mcp

SSE transport (hosted)

directive-knowledge-mcp --sse --port 3000 --host 0.0.0.0

Endpoints:

  • GET /sse — establish the SSE stream.
  • POST /messages?sessionId=… — client→server JSON-RPC messages.
  • GET /healthz — liveness probe.

Tools

| Tool | Purpose | |---|---| | list_knowledge | Every knowledge file name (core + AI + skeleton). | | get_knowledge | Read one knowledge file by name. | | list_examples | Every code example name. | | get_example | Read one example by name (returned as a TypeScript code block). | | search_knowledge | Case-insensitive substring search across every knowledge file. | | list_skills | Every Claude Code skill bundled in @directive-run/claude-plugin. | | get_skill | One skill's SKILL.md + supporting knowledge files as a single document. |

Programmatic embedding

For tool authors who want to mount the server inside their own host process:

import { createDirectiveKnowledgeServer, startSseServer } from "@directive-run/knowledge-mcp";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";

// stdio
const server = createDirectiveKnowledgeServer();
await server.connect(new StdioServerTransport());

// SSE — returns the underlying http.Server
const httpServer = await startSseServer({ port: 3000, host: "0.0.0.0" });

See also