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

@mortenmo/vegvisir-mcp

v0.7.1

Published

Vegvísir Model Context Protocol (MCP) server

Readme

@mortenmo/vegvisir-mcp

Model Context Protocol (MCP) server for Vegvísir — a stateless find/read/write surface for AI agents.

Running the Server

Directly with Node / Bun

# Build and run directly
node packages/mcp/dist/bin/vegvisir-mcp.js /path/to/project

# Or with Bun
bun packages/mcp/bin/vegvisir-mcp.ts /path/to/project

When Published

npx @mortenmo/vegvisir-mcp /path/to/project

Client Configuration

1. Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "vegvisir": {
      "command": "npx",
      "args": ["-y", "@mortenmo/vegvisir-mcp", "/path/to/your/workspace"]
    }
  }
}

2. Cursor (.cursor/mcp.json)

{
  "mcpServers": {
    "vegvisir": {
      "command": "node",
      "args": ["/absolute/path/to/Vegvisir/packages/mcp/dist/bin/vegvisir-mcp.js", "/path/to/workspace"]
    }
  }
}

3. Claude Code CLI

claude mcp add vegvisir -- npx -y @mortenmo/vegvisir-mcp /path/to/workspace

4. Zed (~/.config/zed/settings.json)

{
  "context_servers": [
    {
      "id": "vegvisir",
      "command": "npx",
      "args": ["-y", "@mortenmo/vegvisir-mcp", "/path/to/workspace"]
    }
  ]
}

Call Log

With VEGVISIR_LOG=1 in its environment, the server logs every tool call to ~/.vegvisir/logs/<workspace>-<pid>.log: its arguments (long strings cut to their length), then its outcome, duration, response size and memory. Logs older than a week are removed when a server starts. Two kinds of line point at a slow server:

  • waiting: #12 search 40 s — the call is still running and the server is otherwise responsive: it is waiting on disk, git or a lock.
  • blocked: the event loop stalled 40000 ms — synchronous work held the server's only thread, and every call queued behind it. It is written once the thread is free again, so a call that started, never finished and is followed by no waiting lines is still holding the thread.

The log is off by default. Set VEGVISIR_LOG to a file path to log there instead. In an MCP client config:

"vegvisir": {
  "command": "npx",
  "args": ["-y", "@mortenmo/vegvisir-mcp", "/path/to/workspace"],
  "env": { "VEGVISIR_LOG": "1" }
}
tail -f ~/.vegvisir/logs/*.log

Agent System Prompt Instructions for MCP

Add the following prompt instructions to your MCP client configuration / custom instructions:

## Toolbelt Guidelines (Vegvísir)

1. **Observe First**:
   - Call `read`, `search`, or `definition` before editing existing files.
   - Observation results return a stateless capability handle (e.g. `handle="h_src/auth.ts:1-50:8f92a1b2"`).

2. **Scoped Mutation**:
   - Pass `handle` to `edit({ handle, edits: [{ oldText, newText }] })`.
   - `edit` and `write` return the next fresh handle upon success. You can chain edits sequentially using the new handle without issuing intermediate `read` calls.

3. **Multi-Site Sweeps**:
   - To replace text across multiple search sites, use `edit({ handles: [h1, h2, ...], newText: "..." })`.

4. **Composing Searches**:
   - Use `and: [...]` to require multiple terms on one line.
   - Use `not: [...]` to exclude patterns.
   - Use `within: "resultSetId"` to narrow prior search results without losing handles.