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

@promptowl/contextnest-mcp-server

v1.1.1

Published

MCP server for governed, versioned, AI-ready context — gives Claude, Cursor, Gemini, Copilot, and Windsurf access to structured knowledge bases

Readme

@promptowl/contextnest-mcp-server

Governed context for your AI agents — not memory.

by PromptOwl | Website | Whitepaper | Specification | Discord

npm License: AGPL-3.0 SOC 2 Type 2

MCP server for Context Nest — gives AI agents direct access to your context vault via the Model Context Protocol. Every node is typed, versioned, and hash-chained, so what the agent reads is governed and auditable, not a fuzzy memory blob. Supports all node types — documents, source nodes, and skill nodes. Exposes 19 tools over stdio transport.

Install

Run it directly, no install:

npx -y @promptowl/contextnest-mcp-server /path/to/your/vault

Or install globally:

npm install -g @promptowl/contextnest-mcp-server

Usage

With Claude Desktop

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

{
  "mcpServers": {
    "contextnest": {
      "command": "contextnest-mcp",
      "args": ["/path/to/your/vault"]
    }
  }
}

With Claude Code

claude mcp add contextnest -- contextnest-mcp /path/to/your/vault

With Gemini CLI

gemini mcp add contextnest -- contextnest-mcp /path/to/your/vault

Standalone

contextnest-mcp /path/to/your/vault

Or via environment variable:

CONTEXTNEST_VAULT_PATH=/path/to/vault contextnest-mcp

Tools

| Tool | Description | |------|-------------| | vault_info | Get vault identity and configuration summary | | resolve | Execute a selector query with graph traversal | | read_document | Read a single document by URI or path | | list_documents | List documents with optional type/status/tag filters | | search | Full-text search with graph traversal | | read_pack | Resolve and return a context pack | | document_format | Get the document format spec (call before creating docs) | | create_document | Create a new document (supports all types including skill nodes) | | update_document | Update an existing document | | delete_document | Delete a document and its version history | | publish_document | Publish a document (bump version, checkpoint) | | read_index | Return the context.yaml graph index | | read_version | Reconstruct a specific version of a document | | verify_integrity | Verify all hash chains in the vault | | list_checkpoints | List recent checkpoints |

Drift Governance

When a live file drifts from its last-approved bytes, these tools capture and resolve the change without touching the canonical document or hash chain until approved:

| Tool | Description | |------|-------------| | stage_drift_suggestion | Capture an out-of-band edit as a staged suggestion under _suggestions/ (does not modify canonical doc or chain) | | list_suggestions | List all staged suggestions for a document | | approve_suggestion | Apply a staged suggestion: patch, bump version, write new canonical bytes, archive under _archive/approved/ | | reject_suggestion | Reject a staged suggestion: archive under _archive/rejected/, emit a chain event (reason required for audit trail) |

Typical flow: verify_integrity detects drift → stage_drift_suggestionlist_suggestionsapprove_suggestion or reject_suggestion.

Selector Grammar

The resolve tool takes a selector. One-liner:

#tag  type:X  status:X  pack:id  contextnest://path   ·   combine with + (AND)  | (OR)  - (NOT)  ( ) to group

Example: resolve({ selector: "(#api | #auth) + status:published - #deprecated" }). Full grammar in the specification.

Graph Traversal

The resolve, search, and read_pack tools support graph-aware queries:

  • hops (number, default: 2) — Controls traversal depth from matched documents. More hops = more context loaded, slower. Fewer hops = faster, less context.
  • full (boolean, default: false) — Bypass graph traversal and load all documents (legacy mode).

Skill Nodes

Agents can discover and use skill nodes — governed procedures with triggers, inputs, and guard rails:

resolve({ selector: "type:skill + #engineering" })  → all engineering skills
list_documents({ type: "skill" })                    → all skill nodes
create_document({ type: "skill", trigger: "..." })   → create a new skill

Ecosystem

The MCP server is one of four ways into the same vault — same file format, same governed history:

| | What it is | Get it | |---|---|---| | CLI (ctx) | Build and query the vault from the terminal | @promptowl/contextnest-cli | | MCP server | Agent access over the Model Context Protocol (this package) | @promptowl/contextnest-mcp-server | | Engine | Core library — parsing, storage, versioning, graph traversal | @promptowl/contextnest-engine | | PromptOwl cloud | Hosted packs, marketplace, SSO, approvals, role-scoped publishing | promptowl.ai |

Drop the server into any MCP-capable agent — Claude Desktop, Claude Code, Cursor, Gemini CLI, Windsurf — to plug the same vault into your IDE or chat client.

Links

License

AGPL-3.0 — your files, your agent, your vault. No vendor lock-in. Commercial licensing available when you want to embed; contact PromptOwl.