
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A code summarization tool that includes an MCP server letting LLM clients access code summaries, browse directories and summarize individual files or directories.
MCP server for summarizing code files with Gemini Flash 2.0 is cataloged as an MCP server attributed to nicobailon. A code summarization tool that includes an MCP server letting LLM clients access code summaries, browse directories and summarize individual files or directories. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP server for summarizing code files with Gemini Flash 2.0 are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
All MCP server endpoints except the health check require an API key sent in the x-api-key header.
Yes, summaries support low, medium or high detail and a maximum length in characters.
README.md · d4c11bd941bc · 采集于 2026-11-13 10:28:35 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A command-line tool that summarizes code files in a given directory using Gemini Flash 2.0. Now with MCP server support for integration with LLM tools!
.gitignore rulesnode_modules, dist, etc.Clone the repository
git clone https://github.com/nicobailon/code-summarizer.git
cd code-summarizer
Install dependencies:
npm install
Create a .env file with your Google API key:
GOOGLE_API_KEY=your_api_key_here
Build the project:
npm run build
The code summarizer includes a Model Context Protocol (MCP) server that allows LLM tools like Claude Desktop, Cursor AI, and Cline to access code summaries and file content.
# Start the MCP server
npm start -- server
By default, the server runs on port 24312. You can change this in your configuration:
# Set custom MCP server port
npm start -- config set --port 8080
~/.claude/claude_desktop_config.json (macOS/Linux) or %USERPROFILE%\.claude\claude_desktop_config.json (Windows) with this content:{
"code-summarizer": {
"command": "npx",
"args": ["-y", "your-path-to-code-summarizer/bin/code-summarizer.js", "server"],
"env": {
"GOOGLE_API_KEY": "your_api_key_here"
}
}
}
Example prompts for Claude Desktop:
.cursor/mcp.json file in your project directory:{
"mcpServers": {
"code-summarizer": {
"transport": "sse",
"url": "http://localhost:24312/sse",
"headers": {
"x-api-key": "your_api_key_here"
}
}
}
}
Example prompts for Cursor:
/mcp add code-summarizer http://localhost:24312/sse
/mcp config code-summarizer headers.x-api-key your_api_key_here
Example prompts for Cline:
Using the MCP integration, you can:
The MCP server exposes your codebase to the LLM tools in a structured way, allowing them to read, navigate, and summarize your code without having to paste code snippets manually.
code://file/* - Access individual code filescode://directory/* - List code files in a directorysummary://file/* - Get summary for a specific filesummary://batch/* - Get summaries for multiple filessummarize_file - Summarize a single file with optionssummarize_directory - Summarize a directory with optionsset_config - Update configuration optionscode_summary - Prompt template for summarizing codedirectory_summary - Prompt template for summarizing entire directoriesConnection Refused
npm start -- server)Authentication Errors
x-api-key)Transport Errors
/sse)Permission Issues
Claude Desktop Not Finding the MCP Server
claude_desktop_config.json is correctRate Limiting
For other issues, check the server logs or open an issue on the GitHub repository.
# Default command (summarize)
npm start -- summarize [directory] [output-file] [options]
# Summarize code in the current directory (output to summaries.txt)
npm start -- summarize
# Summarize code with specific detail level and max length
npm start -- summarize --detail high --max-length 1000
# Show help
npm start -- --help
# Set your API key
npm start -- config set --api-key "your-api-key"
# Set default detail level and max length
npm start -- config set --detail-level high --max-length 1000
# Set MCP server port (default: 24312)
npm start -- config set --port 8080
# Show current configuration
npm start -- config show
# Reset configuration to defaults
npm start -- config reset
When connecting to the MCP server, you need to include your API key in the request headers:
x-api-key: your_api_key_here
All endpoints (except /health) require authentication.
--detail, -d: Set the level of detail for summaries. Options are 'low', 'medium', or 'high'. Default is 'medium'.--max-length, -l: Maximum length of each summary in characters. Default is 500.x-api-key header for secure transmission.gitignore rules.The output file will have the following format:
relative/path/to/file
Summary text here
relative/path/to/next/file
Next summary text here
index.ts: Main CLI implementationsrc/: Source code directory
summarizer/: Core summarization functionalitymcp/: MCP server implementationconfig/: Configuration managementbin/: CLI entrypointconfig.json: Default configuration filetsconfig.json: TypeScript configurationpackage.json: Project dependencies and scripts.env.example: Template for setting up environment variables.gitignore: Files and directories to ignore in Git__tests__: Unit and integration tests__mocks__/mock-codebase: Mock codebase for testingThe following environment variables can be used to configure the application:
| Variable | Description | Default |
|---|---|---|
GOOGLE_API_KEY | Your Google Gemini API key | None (required) |
PORT | Port for the MCP server | 24312 |
ALLOWED_ORIGINS | Comma-separated list of allowed CORS origins | http://localhost:3000 |
LOG_LEVEL | Logging level (error, warn, info, debug) | info |
See .env.example for a template.
# Run all tests
npm test
# Run tests with coverage
npm test -- --coverage
# Test MCP server setup
npm run test:setup
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP server for summarizing code files with Gemini Flash 2.0 from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/code-summarizer)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.