Skip to main content
Glama
JrKrishh
by JrKrishh

sove-mcp

License: MIT node MCP

An MCP server that gives Claude structural understanding of a codebase — dependency graph, entry points, complexity ranking and import cycles — without reading every file into context.

Why

Claude can already read files. But answering "what are the entry points, and which five modules are most complex?" means pulling the whole repository into the context window. On a 145-file application that is tens of thousands of tokens, most of it irrelevant.

This computes the answer locally and returns a few hundred tokens:

{
  "files": 35,
  "dependencyEdges": 83,
  "circularDependencies": 0,
  "entryPoints": [{ "file": "cli/index.ts", "dependencies": 5 }],
  "mostComplex": [
    { "file": "phases/phase2-ghostwriter/test-generator.ts", "cyclomatic": 105, "cognitive": 95 }
  ]
}

Built on sove-toolkit, which resolves CommonJS require(), ESM imports, and TypeScript path aliases (@/components/Button).

Related MCP server: code-context

Install

npm install -g sove-mcp

Add to your MCP client config. For Claude Desktop, claude_desktop_config.json:

{
  "mcpServers": {
    "sove": {
      "command": "sove-mcp",
      "env": {
        "SOVE_MCP_ALLOWED_ROOTS": "/path/to/your/projects"
      }
    }
  }
}

For Claude Code:

claude mcp add sove -e SOVE_MCP_ALLOWED_ROOTS=/path/to/your/projects -- sove-mcp

Tools

Tool

Returns

analyze_repository

Full summary: files, edges, entry points, cycles, complexity

find_entry_points

Modules nothing imports — where execution starts

find_circular_dependencies

Import cycles, via Tarjan's algorithm, with severity

most_complex_files

Cyclomatic and cognitive complexity ranking

generate_documentation

Writes JSDoc into source files — opt-in only, see below

All tools take a directory. Everything except the last is read-only and annotated as such, so clients can surface that to the user.

Security

An MCP server runs with the privileges of whoever launched it, and the model decides what to call. Two defaults follow from that:

Reads are confined to allowed roots. SOVE_MCP_ALLOWED_ROOTS (path-separator delimited) defines what the server may read; it defaults to the working directory. Paths are compared with path.relative, not string prefixes — /data-private starts with /data as a string but is not inside it, and a prefix check would let it through.

Nothing writes unless you opt in. generate_documentation modifies source files, so it is not registered at all unless SOVE_MCP_ALLOW_WRITES=true. A default install cannot alter your files regardless of what the model is asked to do.

SOVE_MCP_ALLOWED_ROOTS="/home/me/work:/home/me/side" SOVE_MCP_ALLOW_WRITES=true sove-mcp

Development

npm install
npm test        # 12 tests, driven over real stdio JSON-RPC
npm start

The tests spawn the actual server process and speak JSON-RPC to it rather than calling handlers directly — that is the only way to catch schema-registration, transport and startup faults, which is where servers like this actually break.

Licence

MIT

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    An MCP server that gives Claude Desktop complete intelligence about any public GitHub repository. Research libraries, compare packages, audit dependencies, and explore codebases through natural conversation.
    1
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    An MCP server that provides dynamic codebase context to Claude Code through tools like hybrid search, recent changes, and symbol definitions, enhancing AI-assisted coding with local RAG.
    8
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    A read-only MCP server that lets a Claude chat explore your local repository and answer questions about it, returning synthesized answers with file:line references.
    3
    1
    MIT
  • A
    license
    -
    quality
    A
    maintenance
    An MCP server that gives Claude Code a curated atlas of your codebase, fusing LSP-grade structure with architectural intent from ADRs, git history, and test associations for single-call context bundles.
    27
    7
    MIT

View all related MCP servers

Related MCP Connectors

  • An MCP server that gives your AI access to the source code and docs of all public github repos

  • Augments MCP Server - A comprehensive framework documentation provider for Claude Code

  • Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JrKrishh/sove-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server