Skip to main content

Caveman Shrink

CLI Verified Active

MCP proxy that compresses prose fields (tool descriptions, etc.) using caveman rules. Same accuracy, fewer context tokens.

Purpose

To reduce token consumption in AI agent workflows by compressing prose fields in MCP server responses, thereby lowering costs and improving efficiency.

Features

  • Compresses prose fields in MCP messages
  • Preserves code, URLs, paths, and identifiers
  • Configurable fields to compress via environment variable
  • Logs compression deltas when debug mode is enabled

Use Cases

  • Reducing costs for AI agent workflows that consume large MCP tool catalogs
  • Improving model inference speed by minimizing token count for tool descriptions
  • Integrating with any MCP server to optimize its output for token efficiency

Non-Goals

  • Compressing request bodies sent to the upstream server
  • Mutating tool call responses (`tools/call`)
  • Altering semantics or core functionality of tool descriptions

Code Execution

  • info:LoggingDebug logging is available via `CAVEMAN_SHRINK_DEBUG`, but a persistent audit log for actions is not implemented.

Installation

npx -y caveman-shrink

Quality Score

Verified
98 /100
Analyzed 11 days ago

Trust Signals

Last commit12 days ago
Stars59.5k
LicenseMIT
Status
View Source

© 2025 SkillRepo · Find the right skill, skip the noise.