AI-powered code reasoning MCP server.
uvx --from git+https://github.com/codeine-ai/codeine --find-links https://raw.githubusercontent.com/codeine-ai/reter/main/reter_core/index.html codeineThis will:
- Download dependencies (~400MB, cached for future runs)
- Sync your project files to the RETER index
- Exit automatically
Run this from your project root directory.
claude mcp add codeine -s user -e ANTHROPIC_API_KEY=your-api-key -- uvx --from git+https://github.com/codeine-ai/codeine --find-links https://raw.githubusercontent.com/codeine-ai/reter/main/reter_core/index.html codeineNow Claude starts fast because everything is cached.
Config file location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"codeine": {
"command": "uvx",
"args": [
"--from", "git+https://github.com/codeine-ai/codeine",
"--find-links", "https://raw.githubusercontent.com/codeine-ai/reter/main/reter_core/index.html",
"codeine"
],
"env": {
"ANTHROPIC_API_KEY": "your-api-key"
},
"timeout": 120000
}
}
}| Variable | Description | Default |
|---|---|---|
RETER_PROJECT_ROOT |
Path to project for auto-loading code | Auto-detected from CWD |
ANTHROPIC_API_KEY |
API key for sampling handler | - |
| Tool | Description |
|---|---|
thinking |
Record reasoning steps, analysis, decisions |
session |
Manage reasoning sessions (start, context, end) |
items |
Query and manage thoughts, requirements, tasks |
project |
Project analytics (health, critical path, impact) |
| Tool | Description |
|---|---|
code_inspection |
Python code analysis (26 actions) |
recommender |
Refactoring and test coverage recommendations |
diagram |
Generate UML diagrams (class, sequence, etc.) |
| Tool | Description |
|---|---|
instance_manager |
Manage RETER instances and sources |
- Python (.py)
- C# (.cs)
- C++ (.cpp, .hpp, .h, .cc)
- JavaScript (.js)
- Logical reasoning with RETER engine
- Multi-language code analysis
- Session-based thinking with persistence
- Requirements and task tracking
- UML diagram generation
- Refactoring recommendations
- Test coverage analysis
MIT License