
braffolk/mcp-summarization-functions 是从 https://github.com/braffolk/mcp-summarization-functions. 导入的 MCP 服务器候选
概览
braffolk/mcp-summarization-functions 是从 https://github.com/braffolk/mcp-summarization-functions. 导入的 MCP 服务器候选
概述(AI 翻译)
模型上下文协议的智能文本摘要
特色 • AI代理集成 • 安装 • 用途
概述
强大的MCP服务器,通过简洁、可扩展的架构提供智能摘要功能。采用现代TypeScript构建,设计为与AI工作流程无缝集成。
安装
通过Smithery安装
通过Smithery自动安装Claude Desktop的摘要功能:
人工智能代理集成
该MCP服务器主要旨在提升像Roo Cline和Cline这样的AI代理的性能和可靠性。它解决了AI代理操作中的一个关键挑战:上下文窗口管理。
上下文窗口优化
人工智能代理经常遇到上下文窗口迅速被大量输出填满的情况:
- 命令执行结果
- 文件内容读数
- 目录列表
- API 响应
- 错误消息和栈跟踪
该服务器通过以下方式帮助维持上下文的高效使用:
- 提供简明且相关的摘要,而非完整内容
- 存储完整内容以备必要时参考
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Overview
A powerful MCP server that provides intelligent summarization capabilities through a clean, extensible architecture. Built with modern TypeScript and designed for seamless integration with AI workflows.
Installation
Installing via Smithery
To install Summarization Functions for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install mcp-summarization-functions --client claude
npm i mcp-summarization-functions
AI Agent Integration
This MCP server was primarily developed to enhance the performance and reliability of AI agents like Roo Cline and Cline. It addresses a critical challenge in AI agent operations: context window management.
Context Window Optimization
AI agents frequently encounter situations where their context window gets rapidly filled with large outputs from:
- Command execution results
- File content readings
- Directory listings
- API responses
- Error messages and stack traces
This server helps maintain efficient context usage by:
- Providing concise, relevant summaries instead of full content
- Storing full content for reference when needed
- Offering focused analysis based on specific needs (security, API surface, etc.)
- Supporting multiple output formats for optimal context utilization
Benefits for AI Agents
- Reduced Failure Rates: By preventing context window overflow
- Improved Response Quality: Through focused, relevant summaries
- Enhanced Efficiency: By maintaining important context while reducing noise
- Better Resource Management: Through intelligent content caching and retrieval
- Flexible Integration: Supporting multiple AI providers and configuration options
Recommended AI Agent Prompt
When integrating with AI agents, include the following in your agent’s instructions:
# CONTEXT MANAGEMENT
You have access to summarization functions through the MCP server. These functions are NOT optional - you MUST use them for ALL potentially large outputs to prevent context overflow:
MANDATORY SUMMARIZATION:
- You MUST ALWAYS use summarization functions for:
- ANY first time file reading operations (unless you are CERTAIN its small and you are going to edit it)
- ALL command execution outputs
- EVERY directory analysis
- ANY API responses or error logs
- ANY output that could be large
安装
npx -y @smithery/cli install mcp-summarization-functions --client claude配置
{
"mcpServers": {
"MUST_USE_summarization": {
"command": "node",
"args": ["path/to/summarization-functions/build/index.js"],
"env": {
"PROVIDER": "ANTHROPIC",
"API_KEY": "your-api-key",
"MODEL_ID": "claude-3-5-sonnet-20241022",
"MCP_WORKING_DIR": "default_working_directory"
}
}
}
}