@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/projectWhen Published
npx @mortenmo/vegvisir-mcp /path/to/projectClient 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/workspace4. 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 nowaitinglines 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/*.logAgent 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.