{"_id":"caveman-shrink","_rev":"2-b806f2dcec75eee173f06740cff9e9aa","name":"caveman-shrink","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"caveman-shrink","version":"0.1.0","keywords":["mcp","model-context-protocol","claude","caveman","proxy","tokens"],"author":{"name":"Julius Brussee"},"license":"MIT","_id":"caveman-shrink@0.1.0","maintainers":[{"name":"juliusbrussee","email":"juliusbrussee@getlockedin.nl"}],"homepage":"https://github.com/JuliusBrussee/caveman","bugs":{"url":"https://github.com/JuliusBrussee/caveman/issues"},"bin":{"caveman-shrink":"index.js"},"dist":{"shasum":"cf56a0c614cf2ba01a3669e31e52c9c6bc36039a","tarball":"https://registry.npmjs.org/caveman-shrink/-/caveman-shrink-0.1.0.tgz","fileCount":4,"integrity":"sha512-AH81oXnhBTRrqbolhq3vTMrJxP+Zgk5cTxMYatMVNGNALqqdviY+3sTkSxynCfZQfxNXUwAwi5mWSlrXxM4TkA==","signatures":[{"sig":"MEUCIEquAaRtNKkJIgh2iifN1fjVjfmNUpjYkXU0IDnx17RqAiEAm/pOjxBVKzzWLTmKZYqU8R0g94il+D+M4CbBHPF00e8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11674},"main":"compress.js","gitHead":"ec7ce3614ba7fd9b7c0c2dbcf5a61b680617ce5c","_npmUser":{"name":"juliusbrussee","email":"juliusbrussee@getlockedin.nl"},"repository":{"url":"git+https://github.com/JuliusBrussee/caveman.git","type":"git","directory":"mcp-servers/caveman-shrink"},"_npmVersion":"10.9.7","description":"MCP proxy that compresses prose fields (tool descriptions, etc.) using caveman rules. Same accuracy, fewer context tokens.","directories":{},"_nodeVersion":"22.22.2","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/caveman-shrink_0.1.0_1777595106982_0.28901223220061567","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"_id":"caveman-shrink@0.1.1","bin":{"caveman-shrink":"index.js"},"bugs":{"url":"https://github.com/JuliusBrussee/caveman/issues"},"dist":{"shasum":"b0d1ca98f52c1e23958256eeef1c5eabf235595c","tarball":"https://registry.npmjs.org/caveman-shrink/-/caveman-shrink-0.1.1.tgz","fileCount":6,"integrity":"sha512-Y1x8I5LV/Ai4HVdBuLr7THfqTqwgePKfh//b+D4/scIn5ka6wRKxh0sQcGkpDLowdtFXo1Amz4nB1ZiudY93Fw==","signatures":[{"sig":"MEYCIQDJ7p4NrTjKp58LaOWhjeOvGKGB9BtvAC4qQmveFX/R3AIhAMs4WPfKrPXBePuVz/Fa83gqDMPDc1z5ZPqH6XacjIYD","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHRieR4XSH/ZH0tDnQFqh3EMOX7Ji2vkMenuRWeFHE5KAiEAva1AODbGeGffZ7fGBRzS8p5xIHmOJgRo7CKqyIYhsyQ="}],"unpackedSize":23193},"main":"compress.js","name":"caveman-shrink","author":{"name":"Julius Brussee"},"gitHead":"4df4b03ba538751131d24415c59a1fad0d8c2c18","license":"MIT","version":"0.1.1","_npmUser":{"name":"juliusbrussee","email":"juliusbrussee@getlockedin.nl"},"homepage":"https://github.com/JuliusBrussee/caveman","keywords":["mcp","model-context-protocol","claude","caveman","proxy","tokens"],"repository":{"url":"git+https://github.com/JuliusBrussee/caveman.git","type":"git","directory":"src/mcp-servers/caveman-shrink"},"_npmVersion":"10.9.7","description":"MCP proxy that compresses prose fields (tool descriptions, etc.) using caveman rules. Same accuracy, fewer context tokens.","directories":{},"maintainers":[{"name":"juliusbrussee","email":"juliusbrussee@getlockedin.nl"}],"_nodeVersion":"22.22.2","_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/caveman-shrink_0.1.1_1789445457957_0.3112711971338977"}}},"time":{"created":"2026-05-01T00:25:06.918Z","modified":"2026-09-15T04:10:58.197Z","0.1.0":"2026-05-01T00:25:07.122Z","0.1.1":"2026-09-15T04:10:58.048Z"},"bugs":{"url":"https://github.com/JuliusBrussee/caveman/issues"},"author":{"name":"Julius Brussee"},"license":"MIT","homepage":"https://github.com/JuliusBrussee/caveman","keywords":["mcp","model-context-protocol","claude","caveman","proxy","tokens"],"repository":{"url":"git+https://github.com/JuliusBrussee/caveman.git","type":"git","directory":"src/mcp-servers/caveman-shrink"},"description":"MCP proxy that compresses prose fields (tool descriptions, etc.) using caveman rules. Same accuracy, fewer context tokens.","maintainers":[{"name":"juliusbrussee","email":"juliusbrussee@getlockedin.nl"}],"readme":"# caveman-shrink\n\n> MCP middleware. Wrap any MCP server. Cut the prose. Keep the substance.\n\n`caveman-shrink` is a stdio proxy for the [Model Context Protocol](https://modelcontextprotocol.io). It sits between Claude (or any MCP client) and an upstream MCP server, and compresses the prose fields (`description`, etc.) using the same boundaries as the [caveman](../..) skill — preserving code, URLs, paths, and identifiers while stripping articles, filler, hedging, and pleasantries.\n\nThe result: tool catalogs that the model burns fewer tokens to read, with no change to tool semantics.\n\n## Install\n\n```bash\nnpm install -g caveman-shrink\n# or run directly via npx\nnpx caveman-shrink <upstream-command> [...args]\n```\n\n## Use it\n\nWrap any MCP server in your Claude Code (or other client) config:\n\n```jsonc\n{\n  \"mcpServers\": {\n    \"fs-shrunk\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"caveman-shrink\",\n        \"npx\", \"@modelcontextprotocol/server-filesystem\", \"/path/to/dir\"\n      ]\n    }\n  }\n}\n```\n\nThe proxy spawns the upstream as a subprocess, intercepts `tools/list`, `prompts/list`, `resources/list` responses, and rewrites the `description` fields (and anything else you list in `CAVEMAN_SHRINK_FIELDS`).\n\n## What it does NOT touch\n\nBy design, v1 is conservative:\n\n- **Request bodies** going to the upstream are passed through unchanged.\n- **Tool call responses** (`tools/call`) are passed through unchanged. We don't want to risk silently mutating the data the upstream returns to the model.\n- **Identifiers, URLs, paths, and code-looking tokens** inside any prose are preserved exactly. Same boundaries as the parent caveman skill.\n\n## Configuration\n\n| Env var | Default | What |\n|---|---|---|\n| `CAVEMAN_SHRINK_FIELDS` | `description` | Comma-separated list of field names to compress |\n| `CAVEMAN_SHRINK_DEBUG` | `0` | Set to `1` to log per-field compression deltas to stderr |\n\n## Status\n\nPre-1.0 — the compression rules and field set may change. The plugin is part of the [caveman ecosystem](https://github.com/JuliusBrussee/caveman); see the parent repo for the full skill suite (`caveman`, `cavemem`, `cavekit`, `cavecrew`, `caveman-stats`, `caveman-init`).\n\n## License\n\nMIT.\n","readmeFilename":"README.md"}