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

@igloo302/mcp

v0.1.0-dev

Published

MD SafeEdit Model Context Protocol (MCP) Server.

Downloads

62

Readme

@igloo302/mcp

MD SafeEdit Model Context Protocol (MCP) Server.

This package exposes MD SafeEdit as an MCP server, allowing AI coding assistants (like Cursor, Claude Desktop, Windsurf, etc.) to safely read and edit Markdown files using the signature-guarded CAS (Compare-and-Swap) patch protocol.

Features

Exposes the 4 core MD SafeEdit services as MCP tools:

  1. inspect: Inspects a Markdown file's outline, line endings, size, and current revision.
  2. search: Searches for text patterns within structural nodes or section paths.
  3. read: Reads target node contents and acquires signed, opaque anchor_tokens.
  4. patch: Safely performs edits (replace, delete, insert) using issued anchor tokens with relocation and concurrency protection.

Installation

Local Setup

Ensure you have built the monorepo packages first:

npm run build

The executable script will be located at: [workspace-root]/packages/mcp/dist/index.js


Configuration

You can configure the MCP server in your favorite editor/client.

1. Claude Desktop

Add the following to your Claude Desktop configuration file (typically located at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "md-safeedit": {
      "command": "node",
      "args": [
        "/Users/jyshen/Projects/md-safeedit/packages/mcp/dist/index.js"
      ],
      "env": {
        "MDSE_ALLOWED_ROOTS": "/Users/jyshen/Projects/md-safeedit"
      }
    }
  }
}

[!IMPORTANT]

  • Replace /Users/jyshen/Projects/md-safeedit with your actual workspace path.
  • MDSE_ALLOWED_ROOTS is required to restrict the files the server is authorized to read or write, preventing directory traversal.

2. Cursor

To configure the server in Cursor:

  1. Open Cursor Settings -> Features -> MCP.
  2. Click + Add New MCP Server.
  3. Fill in the form:
    • Name: md-safeedit
    • Type: stdio
    • Command: node /Users/jyshen/Projects/md-safeedit/packages/mcp/dist/index.js
  4. Set the environment variable MDSE_ALLOWED_ROOTS if needed, or it will default to the current working directory of the process.

Security

  • Path Restriction: The server resolves all paths to their canonical form (resolving symlinks) and rejects any path outside the MDSE_ALLOWED_ROOTS environment variable (defaults to the current working directory).
  • Token Integrity: Anchor tokens are HMAC-signed using a random machine-local key (stored securely in ~/.md-safeedit-secret.key). If an LLM or process attempts to bypass authorization or manually forge/edit the token, signature checks fail immediately.
  • Untrusted Input: Markdown and replacement content are treated strictly as raw text data. No code block execution or markdown rendering occurs.