CodeShave MCP
High-speed AST code compressor and MCP server for AI coding assistants that cuts prompt tokens by 80–95% while keeping 100% valid syntax. It strips repetitive function bodies and execution loops while preserving types, classes, interfaces, docstrings, and signatures to eliminate attention dilution and hallucinations.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Reduce context window usage in AI coding assistants
- Compress code AST to preserve valid syntax
- Integrate with Cursor, Claude, Windsurf, and Copilot
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
codeshave 0.2.2
{
"version": "0.2.2",
"transport": "stdio",
"identifier": "codeshave",
"registryType": "pypi"
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"codeshave-mcp": {
"command": "uvx",
"args": [
"codeshave==0.2.2"
]
}
}
}Cline
{
"mcpServers": {
"codeshave-mcp": {
"command": "uvx",
"args": [
"codeshave==0.2.2"
]
}
}
}VS Code
{
"servers": {
"codeshave-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"codeshave==0.2.2"
]
}
}
}Claude Desktop
{
"mcpServers": {
"codeshave-mcp": {
"command": "uvx",
"args": [
"codeshave==0.2.2"
]
}
}
}Let your agent find its tools
Find servers like CodeShave MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.