Thanks to visit codestin.com
Credit goes to github.com

Skip to content

codeine-ai/codeine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codeine

AI-powered code reasoning MCP server.

Installation

Step 1: Pre-cache dependencies and sync project (run from your project directory)

uvx --from git+https://github.com/codeine-ai/codeine --find-links https://raw.githubusercontent.com/codeine-ai/reter/main/reter_core/index.html codeine

This will:

  1. Download dependencies (~400MB, cached for future runs)
  2. Sync your project files to the RETER index
  3. Exit automatically

Run this from your project root directory.

Step 2: Add to Claude Code

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 codeine

Now Claude starts fast because everything is cached.


Configure with Claude Desktop

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
    }
  }
}

Environment Variables

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 -

Tools

Design Docs (Core Workflow)

Tool Description
session Session lifecycle - call context first to restore state
thinking Record reasoning with sections (context, goals, design, tasks)
diagram Visualize design docs, Gantt charts, UML diagrams

Code Analysis

Tool Description
code_inspection Multi-language code analysis (Python, JS, C#, C++)
recommender Refactoring and test coverage recommendations
natural_language_query Ask questions about code in plain English

Semantic Search (RAG)

Tool Description
semantic_search Find code by meaning, not just keywords
find_similar_clusters Detect code duplication patterns

Knowledge Management

Tool Description
instance_manager Manage RETER instances and sources
add_knowledge Add external code/ontologies to RETER

Supported Languages

  • Python (.py)
  • C# (.cs)
  • C++ (.cpp, .hpp, .h, .cc)
  • JavaScript (.js)

Features

  • Design Docs Workflow - Structured reasoning with sections (context, goals, design, alternatives, risks, tasks)
  • Multi-language Analysis - Python, JavaScript, C#, C++ code inspection
  • Session Persistence - Thoughts, tasks, milestones tracked across conversations
  • Semantic Search (RAG) - Find code by meaning with vector similarity
  • UML Diagrams - Class hierarchy, sequence, call graphs, dependencies
  • Gantt Charts - Task scheduling with critical path analysis
  • Refactoring Recommendations - 58 code smell detectors
  • Test Coverage Analysis - Find untested code paths

License

MIT License

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages