BM

braffolk/mcp-summarization-functions

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

37 stars 12 forks Качество 68 Тренд 0MIT

braffolk/mcp-summarization-функции - кандидат на сервер MCP, импортированный из https://github.com/braffolk/mcp-summarization-functions.

Обзор

braffolk/mcp-summarization-функции - кандидат на сервер MCP, импортированный из https://github.com/braffolk/mcp-summarization-functions.

Обзор (машинный перевод)

Интеллектуальное резюме текста для протокола Model Context

Особенности • Интеграция агентов ИИ Установка • использование

Обзор

Мощный MCP-сервер, который обеспечивает интеллектуальные возможности суммирования через чистую расширяемую архитектуру. Построен с современным TypeScript и предназначен для бесшовной интеграции с рабочими процессами ИИ.

##Установка

###Установка через Smithery

Для автоматической установки функций суммирования для Claude Desktop через Smithery:

##Интеграция агентов

Этот MCP-сервер был разработан для повышения производительности и надежности таких агентов ИИ, как Roo Cline и Cline. Он решает критическую проблему в операциях агентов ИИ: управление окнами контекста.

###Контекстная оптимизация окон

Агенты ИИ часто сталкиваются с ситуациями, когда их контекстное окно быстро заполняется большими выходами из: Результаты выполнения команд

  • Чтение содержимого файла
  • Списки каталогов
  • API ответы
  • Сообщения об ошибках и следы стека

Этот сервер помогает поддерживать эффективное использование контекста:

  1. Предоставление кратких, соответствующих резюме вместо полного содержания
  2. Хранение полного контента для справки, когда это необходимо

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

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:

  1. Providing concise, relevant summaries instead of full content
  2. Storing full content for reference when needed
  3. Offering focused analysis based on specific needs (security, API surface, etc.)
  4. 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

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
Открыть полный README на GitHub

Установка

npx -y @smithery/cli install mcp-summarization-functions --client claude
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "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" } } } }