Skip to content

AshishNevan/codemap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codemap

codemap is a blazing fast Rust CLI tool and MCP (Model Context Protocol) server for analyzing codebases. It extracts definitions (functions, classes, structs) from source code using Tree-sitter and outputs them in a structured format (Markdown or JSON) optimized for LLM context.

Features

  • Fast: Built with Rust and Rayon for parallel processing.
  • Accurate: Uses Tree-sitter for robust parsing.
  • Structured Output: Generates concise Markdown summaries of your code structure.
  • MCP Support: Runs as an MCP server to provide context to LLMs like Claude or Cursor.
  • Language Support: Rust, Python, TypeScript, TSX.

Installation

cargo install --path .

Usage

CLI

Analyze a directory and output Markdown:

codemap src/

Output JSON:

codemap src/ --format json

MCP Server

To use codemap as an MCP server with Claude Desktop or other clients, configure it as follows:

{
  "mcpServers": {
    "codemap": {
      "command": "codemap",
      "args": ["--serve"]
    }
  }
}

Development

Run tests:

cargo test

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages