MCP-summarization-functions

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
API_KEYYesAPI key for the selected provider
MODEL_IDNoSpecific model to use (defaults to provider's standard model)
PROVIDERYesAI provider to use. Supported values: ANTHROPIC, OPENAI, OPENAI-COMPATIBLE, GOOGLE
MAX_TOKENSNoMaximum tokens for model responses1024
MCP_WORKING_DIRNoFallback directory for trying to find files with relative paths from
PROVIDER_BASE_URLNoCustom API endpoint for OpenAI-compatible providers
SUMMARIZATION_CACHE_MAX_AGENoCache duration in milliseconds3600000
SUMMARIZATION_CHAR_THRESHOLDNoCharacter count threshold for when to summarize512

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
summarize_command

Execute a command and summarize its output if it exceeds the threshold

summarize_files

Summarize the contents of one or more files

summarize_directory

Summarize the structure of a directory

summarize_text

Summarize any text content (e.g., MCP tool output)

get_full_content

Retrieve the full content for a given summary ID