Referenced as an example package that can be searched for implementation patterns like JWT authentication through Chroma's package search.
Referenced as an example package that can be searched for implementation patterns like rate limiting and JWT authentication through Chroma's package search.
Referenced as an example package that can be searched for implementation patterns like rate limiting and JWT authentication through Chroma's package search.
Requires code to be in a git repository for local codebase search functionality using Morph's semantic search capabilities.
Hosts the KIA MCP server repository and provides issue tracking and discussion forums for support.
Enables discovery and search of JavaScript/TypeScript packages through Chroma's package search API, providing access to implementations and best practices from the npm ecosystem.
Referenced as a docstring style option in Python quality guidelines for code evolution.
Enables discovery and search of Python packages through Chroma's package search API, providing access to implementations and best practices from the PyPI ecosystem.
Listed as a recommended tool in Python quality guidelines for testing evolved code.
Provides language-specific quality guidelines including type hints, docstrings, security best practices, and recommended tooling for Python code evolution.
Enables discovery and search of Ruby packages through Chroma's package search API, providing access to implementations and best practices from the RubyGems ecosystem.
Listed as a recommended tool in Python quality guidelines for linting evolved code.
KIA - Kaizen Intelligent Agent π
Ultra-efficient 4-tool MCP server for production-grade pair programming
Smart orchestration of best-in-class APIs: Morph + Chroma + GEPA (DSPy)
Zero reinvention Β· Maximum leverage Β· 95%+ code quality in seconds
π― What is KIA?
KIA transforms Claude into a production-grade pair programmer by intelligently orchestrating the best code APIs available todayβinstead of reimplementing them.
The Problem: Most MCP servers reimplement basic primitives (search, merge, etc.) with poor performance.
KIA's Solution: Orchestrate world-class APIs with workflow-centric tools.
Problem | KIA Solution | Powered By | Performance |
70% Code Quality | Iterative evolution to 95%+ | GEPA (DSPy) + Morph fast-apply | ~6-12s |
Local Code Search | Natural language search | Morph semantic search | ~1000ms |
Package Discovery | Search 3,000+ packages | Chroma Package Search | ~1200ms |
No Learning | Pattern extraction & reuse | KIA pattern library | instant |
π οΈ Core Tools (4 Workflow-Centric)
1. evolve_code - Production-Ready Code Evolution
Solves the 70% problem through intelligent, iterative improvement.
How it works:
GEPA (DSPy) generates multi-step reasoning trace + improvement plan
Morph fast-apply (10,500 tok/sec) applies each edit instantly
Quality validation across 5 dimensions (correctness, performance, security, readability, maintainability)
Iterates until 95%+ quality reached
Auto-learns successful patterns for future use
Example:
Powered by:
GEPA: State-of-the-art DSPy program evolution (github.com/gepa-ai/gepa)
Morph: 10,500 tok/sec fast-apply (morphllm.com)
2. search_local_codebase - Natural Language Code Search
Search your project with plain English using Morph's two-stage semantic search.
Example:
Features:
Natural language queries
Two-stage retrieval (vector + rerank)
Results in ~1000ms
File paths + line numbers + relevance scores
Requirements:
Code in a git repository
Repository pushed to Morph (one-time setup)
3. search_packages - Discover Best Practices
Search 3,000+ public packages to learn from real implementations.
Example:
Supported:
Python (PyPI)
JavaScript/TypeScript (npm)
Go (Go modules)
Ruby (RubyGems)
Java (Maven)
And more...
Powered by:
Chroma: 3,000+ indexed packages (trychroma.com/package-search)
4. learn_pattern - Collective Intelligence
Extract successful patterns from code evolutions and reuse them.
Example:
π Prompts (9 Reusable Templates)
Prompts provide structured guidance for common workflows. Use these first to get the most out of KIA!
Prompt | Parameters | Best For |
| None | First-time users, status check |
| None | Complete documentation reference |
|
| Step-by-step evolution guidance |
|
| Security-focused code review |
|
| Modernizing old codebases |
|
| Speed and efficiency improvements |
|
| Adding type hints and validation |
|
| Troubleshooting bugs |
|
| Learning from multiple libraries |
Example: Using Prompts
π Resources (10 Data Endpoints)
Resources provide read-only access to server state, configuration, and documentation.
Resource URI | Description |
| Server statistics and performance metrics |
| All learned patterns in the library |
| Specific pattern details (template) |
| Recent code evolution history |
| API configuration and health status |
| Complete tool documentation with examples |
| All available prompts with descriptions |
| Language-specific quality guidelines (template) |
| Evolution best practices |
| Search optimization tips |
Example: Reading Resources
π Quick Setup
Prerequisites
Python 3.9+
Git
1. Clone Repository
2. Install Dependencies
Or with uv (recommended):
3. Get API Keys
Morph API (code merging + semantic search):
Sign up: morphllm.com/dashboard
Export key:
export MORPH_API_KEY="sk-..."
Chroma Package Search (package discovery):
Sign up: trychroma.com/package-search
Export key:
export CHROMA_API_KEY="ck-..."
OpenRouter (GEPA/DSPy LLM backend):
Sign up: openrouter.ai
Export key:
export OPENROUTER_API_KEY="sk-or-..."
4. Test Locally
π§ IDE Integration
Claude Desktop (macOS/Windows)
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Restart Claude Desktop β KIA appears in your tool list β
Cursor / VS Code / Zed
Use FastMCP CLI for easy installation:
Or manually add to MCP settings with the same config format above.
π Usage Examples
Recommended Workflow
Start with - Check server status and see examples
Use task-specific prompts - Get structured guidance for your task
Call tools with guidance - Execute with context from prompts
Check resources - Monitor stats, review patterns
Example 1: Evolve Legacy Code
Example 2: Search Local Codebase
Example 3: Search Packages
Example 4: Learn Pattern
Example 5: Use Prompts for Structured Workflows
ποΈ Architecture Philosophy
Why External APIs?
Anti-pattern: Reimplementing semantic search, code merging, etc.
KIA's approach: Orchestrate best-in-class APIs.
Benefits:
Performance: Morph's 10,500 tok/sec vs. our ~100 tok/sec
Quality: GEPA's multi-step reasoning vs. simple prompts
Scale: Chroma's 3,000+ packages vs. our handful
Maintenance: They handle updates, improvements, scaling
Cost: Shared infrastructure vs. running our own
What KIA Adds:
β Smart orchestration (evolution workflow)
β Pattern learning (collective intelligence)
β Developer experience (workflow-centric tools)
β MCP protocol integration
π Stats & Monitoring
Check KIA's performance via resources:
Read
Read
π§ͺ Testing
Run the test suite:
Tests validate:
β All 4 core tools functional
β API integrations working
β Quality metrics calculation
β Pattern learning system
π§ Troubleshooting
"Morph API not configured"
"Chroma Package Search requires API key"
"GEPA not available"
Evolution not improving quality
Possible causes:
Code is already high quality
No clear improvement path
API rate limits
Solutions:
Check API quotas
Review quality metrics
Try with different code
πΊοΈ Roadmap
Current (v0.3.0) β
β GEPA (DSPy) integration for code evolution
β Morph fast-apply + semantic search
β Chroma Package Search integration
β Pattern learning system
β FastMCP 2.13+ framework
Next (v0.4.0)
Persistent pattern storage (disk-based)
Pattern embeddings + semantic matching
Multi-file evolution support
Real-time quality visualization
Self-evolution workflow (server evolves itself)
Future (v1.0.0)
Team collaboration features
Custom pattern libraries
Analytics dashboard
CI/CD integration
VS Code extension
π€ Contributing
We welcome contributions! Priority areas:
GEPA/DSPy improvements - Better reasoning chains
Pattern matching - Semantic pattern search
Documentation - More examples and guides
Test coverage - Expand test suite
API integrations - New code/search APIs
Development Setup
π References
Powered by:
GEPA (DSPy Evolution) - State-of-the-art program evolution
Morph - Fast code merging & semantic search
Chroma - Package search API
FastMCP - MCP framework
OpenRouter - LLM API gateway
Inspired by:
Addy Osmani's "70% Problem"
Zed's Agentic Engineering
Developer pain points from HN/Reddit research
π License
MIT License - See LICENSE file
π’ Credits
KIA by Kaizen Labs
"Continuous improvement is better than delayed perfection." π
π Support
Issues: GitHub Issues
Discussions: GitHub Discussions
Email: support@kaizenlabs.dev (coming soon)
Built with β€οΈ by developers, for developers