Code Summarizer
@nicobailon
关于 Code Summarizer
A command-line tool and MCP server that summarizes code files using Gemini Flash 2.0
基本信息
配置
工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Code Summarizer?
A command-line and MCP server tool that recursively summarizes code files in a given directory using Google Gemini Flash 2.0. It integrates with LLM tools like Claude Desktop, Cursor AI, and Cline, and is designed for developers who want to quickly understand codebases without manual reading.
How to use Code Summarizer?
Install Node.js 18+, clone the repository, install dependencies, configure a GOOGLE_API_KEY environment variable, then use the CLI with npm start -- summarize [directory] or start the MCP server with npm start -- server. The server port (default 24312) can be changed via npm start -- config set --port 8080. Connect LLM tools by setting up a JSON config file or using SSE transport with an API key header.
Key features of Code Summarizer
- Recursively processes code files respecting
.gitignorerules. - Uses Gemini Flash 2.0 for summarization.
- Configurable detail level and summary length.
- MCP server integration with Claude Desktop, Cursor AI, and Cline.
- Retry mechanism with exponential backoff and jitter.
- Built-in rate limiting (default 60 requests per minute per IP).
Use cases of Code Summarizer
- Quickly understand the structure and purpose of a new codebase.
- Get concise summaries of specific files without opening them.
- Batch summarize multiple files in a directory.
- Search for patterns or functionality using targeted queries.
- Integrate code knowledge into LLM chat sessions for more informed assistance.
FAQ from Code Summarizer
What are the system requirements?
Node.js 18 or later is required.
How do I authenticate with the MCP server?
Include your API key in the x-api-key header of all requests (except the /health endpoint).
What should I do if I get a "Connection Refused" error?
Ensure the MCP server is running (npm start -- server), verify the port is correct in your configuration, and check for firewall issues.
How do I connect Code Summarizer with Claude Desktop?
Start the MCP server, then create or edit claude_desktop_config.json with the correct path to the server binary and your GOOGLE_API_KEY environment variable, then restart Claude Desktop.
Does Code Summarizer have rate limiting?
Yes, it has a default limit of 60 requests per minute per IP address, which can be configured in the server settings.
开发工具 分类下的更多 MCP 服务器
Serena
oraiosA powerful MCP toolkit for coding, providing semantic retrieval and editing capabilities - the IDE for your agent
DevDocs by CyberAGI 🚀
cyberagiincCompletely free, private, UI based Tech Documentation MCP server. Designed for coders and software developers in mind. Easily integrate into Cursor, Windsurf, Cline, Roo Code, Claude Desktop App
Unity MCP (Server + Plugin)
IvanMurzakAI Skills, MCP Tools, and CLI for Unity Engine. Full AI develop and test loop. Use cli for quick setup. Efficient token usage, advanced tools. Any C# method may be turned into a tool by a single line. Works with Claude Code, Gemini, Copilot, Cursor and any other absolutely for fr
test
prysmaticlabsGo implementation of Ethereum proof of stake
Golf
golf-mcpProduction-Ready MCP Server Framework • Build, deploy & scale secure AI agent infrastructure • Includes Auth, Observability, Debugger, Telemetry & Runtime • Run real-world MCPs powering AI Agents
评论