mcp-code-shrinker
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-code-shrinkershow the project map and top-level exports"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-code-shrinker v0.3.11
Semantic Context Compiler — stratified L0-L3 context with exact-source escalation.
Status | Feature |
✅ Implemented | L0 Project Map, L1 Contracts, L2 Exact Source, L3 Evidence |
✅ Implemented | Stable symbol IDs (survive neighbor edits) |
✅ Implemented | Symbol revision tracking (body changes → new revision) |
✅ Implemented | Context packets with ranking + quality check |
✅ Implemented | Patch workflow: propose → validate (sandbox) → apply |
✅ Implemented | Path security (MCP roots) |
✅ Implemented | Loss manifest + confidence scores |
🔨 Experimental | Cross-file call graph (relative imports; package imports planned) |
🔨 Experimental | Patch sandbox with project copy (node_modules skipped) |
🔨 Experimental | TypeScript typecheck integration (tsc must be installed) |
📋 Planned | tree-sitter grammars (regex parser used currently) |
📋 Planned | Quality benchmark suite |
📋 Planned | Git worktree isolation for patches |
Architecture
Layer 0: Project Map (5%)
Layer 1: Semantic Contracts (40%) signatures, effects, throws, confidence
Layer 2: Exact Source (40%) NO renaming, NO regex, NO format changes
Layer 3: Evidence (15%) tests, stack traces, diagnosticsRelated MCP server: code-graph-rag-mcp
Tools (11)
Tool | Status | Description |
| 🔨 Exp | Build cross-file call graph |
| ✅ | L0: file tree + exports |
| ✅ | L1: all symbol contracts |
| ✅ | L2: EXACT source (never modified) |
| 🔨 Exp | Callers/callees/tests from graph |
| ✅ | Build L0-L3 packet |
| ✅ | Model requests missing symbols |
| ✅ | Loss manifest + quality check |
| ✅ | Edit operations |
| ✅ | Sandbox: parse→typecheck→lint→test |
| ✅ | Apply with hash re-check + .bak |
Install
git clone https://github.com/sbrejnev988-coder/mcp-code-shrinker.git
cd mcp-code-shrinker && npm install && npm testLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sbrejnev988-coder/mcp-code-shrinker'
If you have feedback or need assistance with the MCP directory API, please join our Discord server