Skip to main content

Integration Overview

The InitRepo MCP Server integrates with popular AI development tools to provide structured project context and intelligent assistance. This guide covers setup for all supported tools and platforms.
Prerequisites Required: Your project must have InitRepo-generated documentation in the /docs folder with proper ID structure. Generate documentation at initrepo.com first.

Supported AI Development Tools

Claude Code

Native MCP integration with Anthropic’s AI coding assistant

Cursor

Enhanced AI IDE with advanced MCP support

VS Code

Popular editor with MCP extension support

JetBrains IDEs

IntelliJ, WebStorm, PyCharm, and other JetBrains tools

Claude Code Integration

For the fastest setup, use Claude Code’s built-in MCP integration command:
1

Quick Connection Command

claude mcp add --transport http initrepo https://mcp.initrepo.com/
What happens when you run this:
  1. Claude Code attempts to connect to the MCP server
  2. Server responds with “Authentication Required”
  3. Claude Code automatically opens https://initrepo.com/mcp-auth in your browser
  4. Sign in and generate your MCP token
  5. Claude Code detects successful authentication and connects automatically
2

Manual Token Setup (if needed)

If the automatic flow doesn’t work, get your token manually:
  1. Visit: https://initrepo.com/mcp-auth
  2. Sign in with your account
  3. Generate your MCP token
  4. Use the token with Claude Code:
claude mcp add --transport http initrepo https://mcp.initrepo.com/?token=YOUR_TOKEN
3

Verify Connection

Ask Claude Code:
"What InitRepo tools are available?"
You should see a list of 37+ available tools including:
  • Project analysis and structure understanding
  • Context retrieval by ID (T-001, US-001, etc.)
  • Task management and prioritization
  • Documentation validation
  • Implementation guidance

Alternative Manual Setup

If you prefer manual configuration or need custom settings:
1

Install InitRepo MCP Server

npm install -g initrepo-mcp
Verify installation:
initrepo-mcp --version
2

Configure Claude Code

Add to your Claude Code configuration file:
{
  "mcp": {
    "servers": {
      "initrepo": {
        "command": "initrepo-mcp",
        "args": [],
        "env": {}
      }
    }
  }
}
3

Verify Connection

Ask Claude Code:
"What InitRepo tools are available?"
You should see a list of 37+ available tools.
4

Test Intelligence

Try these example queries:
"Show me the context for task T-001"
"What are my highest priority tasks today?"
"Generate an implementation brief for US-005"

Claude Code Usage Examples

Daily Development Planning:
You: "What should I work on today?"

Claude Code (with MCP): Based on your InitRepo project documentation, here are your highest priority tasks:

1. T-003: Implement user authentication (blocking US-001)
2. T-007: Set up database schema (dependency for multiple stories)
3. T-012: Create API error handling middleware (high business value)

Each task includes full context with acceptance criteria, dependencies, and implementation guidance.
Implementation Guidance:
You: "How should I implement the user authentication system?"

Claude Code (with MCP): Based on T-003 and related technical architecture:

[Provides detailed implementation brief including:]
- Technical requirements from architecture docs
- Step-by-step implementation plan
- Code examples and best practices
- Testing strategies
- Integration points with other components

Cursor Integration

Setup Process

Add to your Cursor settings or .cursorrules:
{
  "mcpServers": {
    "initrepo-mcp": {
      "command": "initrepo-mcp",
      "args": []
    }
  }
}

Enhanced Cursor Workflows

AI-Enhanced Code Completion:
  • Cursor automatically provides context-aware suggestions based on your project requirements
  • Code completions include relevant user stories and acceptance criteria
  • Intelligent variable and function naming based on project terminology
Real-Time Context Sharing:
  • Cursor maintains awareness of current task context (T-001, US-005, etc.)
  • Automatic cross-referencing between code changes and requirements
  • Live validation against acceptance criteria during coding
Smart Code Review:
  • Automatic checking of implementation against project requirements
  • Suggestion of missing components based on user stories
  • Integration testing recommendations based on technical architecture

VS Code Integration

Extension Installation

1

Install MCP Extension

Search for and install the “Model Context Protocol” extension in VS Code marketplace
2

Configure Settings

Add to your VS Code settings.json:
{
  "mcp.servers": {
    "initrepo": {
      "command": "initrepo-mcp",
      "args": [],
      "env": {}
    }
  },
  "mcp.autoStart": true
}
3

Restart VS Code

Restart VS Code to load the MCP server configuration
4

Verify Integration

Open the Command Palette (Ctrl/Cmd+Shift+P) and search for “MCP” commands

VS Code Features

Command Palette Integration:
  • MCP: Get Task Context - Retrieve context for specific tasks
  • MCP: Generate Implementation Brief - Create detailed implementation guidance
  • MCP: Validate Documentation - Check project documentation completeness
  • MCP: Show Project Map - Display project structure and relationships
Side Panel Integration:
  • InitRepo Explorer: Navigate project structure by epics, user stories, and tasks
  • Context Viewer: Display relevant context for current file or selection
  • Progress Tracker: Monitor task completion and dependencies
Status Bar Information:
  • Current task context (T-001, US-005, etc.)
  • Project completion percentage
  • Next recommended task

JetBrains IDEs Integration

Plugin Installation

  1. Go to File → Settings → Plugins
  2. Search for “InitRepo MCP” plugin
  3. Install and restart IntelliJ IDEA
  4. Configure in Settings → Tools → InitRepo MCP
  1. Open WebStorm → Preferences → Plugins
  2. Install “InitRepo MCP” plugin
  3. Configure server settings in Tools → InitRepo
  1. Settings → Plugins → Install “InitRepo MCP”
  2. Configure Python project integration
  3. Enable AI assistant features

JetBrains Configuration

<!-- .idea/mcp.xml -->
<mcp>
  <servers>
    <server name="initrepo-mcp">
      <command>initrepo-mcp</command>
      <args></args>
      <workingDirectory>$PROJECT_DIR$</workingDirectory>
    </server>
  </servers>
</mcp>

JetBrains Features

Integrated AI Assistant:
  • Right-click context menus with InitRepo intelligence
  • Inline code suggestions based on project requirements
  • Automatic documentation generation for functions and classes
Project Navigation:
  • Navigate between code and requirements using ID references
  • Jump from implementation to related user stories
  • Visualize dependencies between tasks and code components
Code Quality Integration:
  • Real-time validation against acceptance criteria
  • Suggestion of missing test cases based on requirements
  • Architecture compliance checking

Terminal Integration

Setup for Command Line Usage

1

Install Terminal Client

npm install -g @initrepo/mcp-client
2

Initialize Configuration

initrepo-mcp-client init
3

Test Connection

initrepo-mcp-client query "What tools are available?"

Terminal Usage Examples

Interactive Mode:
# Start interactive session
initrepo-mcp-client interactive

# Example queries in interactive mode
> get-context T-001
> generate-implementation-brief US-005
> validate-documentation
Script Integration:
#!/bin/bash
# Get context for current sprint tasks

TASKS=("T-001" "T-002" "T-003")

for task in "${TASKS[@]}"; do
    echo "Getting context for $task..."
    initrepo-mcp-client query "get-context $task" > "context-$task.md"
done

echo "Task contexts generated!"

Advanced Integration Scenarios

CI/CD Pipeline Integration

GitHub Actions Workflow:
name: InitRepo MCP Analysis
on: [push, pull_request]

jobs:
  mcp-analysis:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      
      - name: Setup Node.js
        uses: actions/setup-node@v3
        with:
          node-version: '18'
          
      - name: Install InitRepo MCP
        run: npm install -g initrepo-mcp @initrepo/mcp-client
        
      - name: Validate Documentation
        run: |
          initrepo-mcp-client query "validateDocumentationCompleteness" > validation.json
          cat validation.json
          
      - name: Generate Progress Report
        run: |
          initrepo-mcp-client query "generateProgressReport" > progress.md
          
      - name: Upload Reports
        uses: actions/upload-artifact@v3
        with:
          name: mcp-analysis
          path: |
            validation.json
            progress.md

Team Collaboration Setup

Shared Configuration:
// .initrepo/team-mcp-config.json
{
  "team": {
    "name": "Development Team Alpha",
    "members": ["dev1", "dev2", "dev3"],
    "shared_context": true,
    "progress_sync": true
  },
  "notifications": {
    "slack_webhook": "https://hooks.slack.com/...",
    "progress_updates": true,
    "blocker_alerts": true
  }
}
Team Dashboard Integration:
// team-dashboard.js
const MCPClient = require('@initrepo/mcp-client');

class TeamDashboard {
    async getTeamProgress() {
        const client = new MCPClient();
        
        const progress = await client.query('generateProgressReport', {
            scope: 'team',
            includeVelocity: true,
            includeBlockers: true
        });
        
        return this.formatDashboard(progress);
    }
    
    formatDashboard(progress) {
        return {
            completedTasks: progress.completed.length,
            inProgressTasks: progress.inProgress.length,
            blockers: progress.blockers,
            velocity: progress.teamVelocity,
            estimatedCompletion: progress.estimatedCompletion
        };
    }
}

Troubleshooting Integration

Common Issues

Symptoms: AI assistant doesn’t recognize InitRepo toolsSolutions:
# Verify installation
which initrepo-mcp
initrepo-mcp --version

# Check if server starts
initrepo-mcp --test

# Restart your AI assistant/IDE
Symptoms: Error message about missing documentation structureSolutions:
  • Ensure /docs folder exists in your project
  • Verify documentation was generated by InitRepo platform
  • Check for proper ID format (T-001, US-001, E-001)
  • Validate documentation completeness using CLI
Symptoms: MCP server connection fails or times outSolutions:
# Check system resources
ps aux | grep initrepo-mcp

# Restart server
pkill initrepo-mcp
initrepo-mcp --restart

# Check logs
initrepo-mcp --logs

Performance Optimization

For Large Projects:
  • Enable caching: Set INITREPO_CACHE_ENABLED=true
  • Increase memory: export NODE_OPTIONS="--max-old-space-size=2048"
  • Use specific context scopes to reduce processing time
  • Configure background processing for non-critical queries
For Teams:
  • Set up dedicated MCP server instance for team sharing
  • Use WebSocket transport for real-time collaboration
  • Configure load balancing for multiple concurrent users
  • Implement progress synchronization across team members

Best Practices

Development Workflow Integration

  1. Start with Context: Always get task context before beginning implementation
  2. Validate Frequently: Use MCP tools to verify implementation against requirements
  3. Document Decisions: Record architectural decisions using MCP intelligence
  4. Track Progress: Regular progress updates maintain project visibility

Team Collaboration

  1. Shared Standards: Use consistent MCP queries across team members
  2. Regular Sync: Schedule regular progress synchronization
  3. Communication: Use MCP insights to inform team communications
  4. Knowledge Sharing: Leverage MCP context for knowledge transfer

Advanced Integration Scenarios

CI/CD Pipeline Integration

GitHub Actions Workflow:
name: InitRepo MCP Analysis
on: [push, pull_request]

jobs:
  mcp-analysis:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3

      - name: Setup Node.js
        uses: actions/setup-node@v3
        with:
          node-version: '18'

      - name: Install InitRepo MCP
        run: npm install -g initrepo-mcp @initrepo/mcp-client

      - name: Validate Documentation
        run: |
          initrepo-mcp-client query "validateDocumentationCompleteness" > validation.json
          cat validation.json

      - name: Generate Implementation Brief
        run: |
          initrepo-mcp-client query "generateSmartImplementationBrief" --args '{"taskId": "T-001"}' > brief.md
          cat brief.md
Jenkins Pipeline:
pipeline {
    agent any

    stages {
        stage('MCP Analysis') {
            steps {
                sh 'npm install -g initrepo-mcp'

                sh 'initrepo-mcp validateDocumentationCompleteness > validation.json'

                sh 'initrepo-mcp generateProgressReport > progress.md'

                archiveArtifacts artifacts: '*.json,*.md', fingerprint: true
            }
        }
    }

    post {
        always {
            publishHTML(target: [
                allowMissing: false,
                alwaysLinkToLastBuild: true,
                keepAll: true,
                reportDir: '.',
                reportFiles: 'validation.json,progress.md',
                reportName: 'MCP Analysis'
            ])
        }
    }
}

Team Collaboration Setup

Shared Configuration:
// .initrepo/team-mcp-config.json
{
  "team": {
    "name": "Development Team Alpha",
    "members": ["dev1", "dev2", "dev3"],
    "shared_context": true,
    "progress_sync": true
  },
  "notifications": {
    "slack_webhook": "https://hooks.slack.com/...",
    "progress_updates": true,
    "blocker_alerts": true
  }
}
Team Dashboard Integration:
// team-dashboard.js
const MCPClient = require('@initrepo/mcp-client');

class TeamDashboard {
    async getTeamProgress() {
        const client = new MCPClient();

        const progress = await client.query('generateProgressReport', {
            scope: 'team',
            includeVelocity: true,
            includeBlockers: true
        });

        return this.formatDashboard(progress);
    }

    formatDashboard(progress) {
        return {
            completedTasks: progress.completed.length,
            inProgressTasks: progress.inProgress.length,
            blockers: progress.blockers,
            velocity: progress.teamVelocity,
            estimatedCompletion: progress.estimatedCompletion
        };
    }
}

Terminal Integration

Setup for Command Line Usage:
# Install terminal client
npm install -g @initrepo/mcp-client

# Initialize configuration
initrepo-mcp-client init

# Test connection
initrepo-mcp-client query "What tools are available?"
Interactive Mode:
# Start interactive session
initrepo-mcp-client interactive

# Example queries
> get-context T-001
> generate-implementation-brief US-005
> validate-documentation
Script Integration:
#!/bin/bash
# Get context for current sprint tasks

TASKS=("T-001" "T-002" "T-003")

for task in "${TASKS[@]}"; do
    echo "Getting context for $task..."
    initrepo-mcp-client query "get-context $task" > "context-$task.md"
done

echo "Task contexts generated!"

Performance Optimization

For Large Projects:
  • Enable caching: Set INITREPO_CACHE_ENABLED=true
  • Increase memory: export NODE_OPTIONS="--max-old-space-size=2048"
  • Use specific context scopes to reduce processing time
  • Configure background processing for non-critical queries
For Teams:
  • Set up dedicated MCP server instance for team sharing
  • Use WebSocket transport for real-time collaboration
  • Configure load balancing for multiple concurrent users
  • Implement progress synchronization across team members

Troubleshooting Integration

Common Issues

Symptoms: AI assistant doesn’t recognize InitRepo toolsSolutions:
# Verify installation
which initrepo-mcp
initrepo-mcp --version

# Check if server starts
initrepo-mcp --test

# Restart your AI assistant/IDE
Symptoms: Error message about missing documentation structureSolutions:
  • Ensure /docs folder exists in your project
  • Verify documentation was generated by InitRepo platform
  • Check for proper ID format (T-001, US-001, E-001)
  • Validate documentation completeness using CLI
Symptoms: MCP server connection fails or times outSolutions:
# Check system resources
ps aux | grep initrepo-mcp

# Restart server
pkill initrepo-mcp
initrepo-mcp --restart

# Check logs
initrepo-mcp --logs

Next Steps

Complete Quick Start

Follow our 5-minute setup guide to get started immediately