Back to Documentation
Intermediate • 15 min read

MCP Integration

Connect AI assistants like Claude directly to your DevLyTicks data using the Model Context Protocol (MCP). Ask natural language questions about your repositories, contributors, DORA metrics, and more.

What is MCP?

The Model Context Protocol (MCP) is an open standard that lets AI assistants securely connect to external data sources and tools. With the DevLyTicks MCP server, you can ask Claude (or any MCP-compatible AI) questions like:

  • "Who are our top contributors this month?"
  • "What is our deployment frequency for Q4?"
  • "Show me any active anomaly alerts"
  • "Which repositories need code review attention?"
  • "What is our MTTR over the last 30 days?"
1
Create an API Key

API keys authenticate MCP requests to DevLyTicks. Create one from your dashboard:

  1. Go to Dashboard → Settings → API Keys (or navigate to /api-keys)
  2. Click Create API Key and give it a name like "Claude MCP"
  3. Select the permissions you need (at minimum: analytics:read, repositories:read)
  4. Copy the generated key — it starts with dtk_ and is only shown once

Important: Copy your API key immediately after creation — it cannot be retrieved later.

2
Install the MCP Server

The DevLyTicks MCP server is a Node.js package. Install it globally:

# Install globally
npm install -g @devlyticks/mcp-server

# Or use npx (no install needed)
npx @devlyticks/mcp-server

Requires Node.js 18+. Check your version with node --version.

3
Configure Your AI Assistant

The DevLyTicks MCP server works with any MCP-compatible AI assistant. Choose your client below:

Claude Desktop

Config file: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "devlyticks": {
      "command": "npx",
      "args": ["@devlyticks/mcp-server"],
      "env": {
        "DEVLYTICKS_API_KEY": "dtk_your_api_key_here",
        "DEVLYTICKS_ORG_ID": "your_organization_id",
        "DEVLYTICKS_API_URL": "https://api.devlyticks.com"
      }
    }
  }
}

Cursor IDE

Config file: ~/.cursor/mcp.json

{
  "mcpServers": {
    "devlyticks": {
      "command": "npx",
      "args": ["@devlyticks/mcp-server"],
      "env": {
        "DEVLYTICKS_API_KEY": "dtk_your_api_key_here",
        "DEVLYTICKS_ORG_ID": "your_organization_id",
        "DEVLYTICKS_API_URL": "https://api.devlyticks.com"
      }
    }
  }
}

Windsurf IDE

Config file: ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "devlyticks": {
      "command": "npx",
      "args": ["@devlyticks/mcp-server"],
      "env": {
        "DEVLYTICKS_API_KEY": "dtk_your_api_key_here",
        "DEVLYTICKS_ORG_ID": "your_organization_id",
        "DEVLYTICKS_API_URL": "https://api.devlyticks.com"
      }
    }
  }
}

Replace dtk_your_api_key_here with your API key and your_organization_id with the ID from your dashboard URL.

After saving, fully restart your AI assistant (quit and reopen). The DevLyTicks tools will appear in the MCP tools list.

Available Tools

The MCP server exposes these tools to your AI assistant:

Analytics

get_analytics_summarySummary stats for a time period
get_analytics_overviewDetailed velocity & quality metrics

Repositories

list_repositoriesAll organization repositories
get_repositoryDetails for a specific repository
get_repository_commitsRecent commits
get_repository_pull_requestsPull requests with filtering

Contributors

list_contributorsAll contributors with metrics
get_contributorDetailed contributor profile

Teams

list_teamsAll teams in the organization
get_team_metricsPerformance metrics for a team
get_team_goalsGoals and progress for a team

Engineering Excellence

get_leaderboardContributor rankings
get_dora_metricsDORA metrics summary
get_alertsActive anomaly alerts

Reports & Goals

list_report_templatesAvailable report templates by role
list_generated_reportsPreviously generated reports
list_goal_templatesAvailable goal templates
API Key Permissions

For full MCP functionality, create your API key with these permissions:

analytics:read
repositories:read
contributors:read
teams:read
organizations:read
metrics:read
alerts:read

Or select admin for full access.

Troubleshooting

Server not appearing in Claude

Verify the JSON config syntax is valid and fully quit/reopen Claude Desktop (Cmd+Q on macOS, not just close the window).

Authentication errors

Check that your DEVLYTICKS_API_KEY is correct and not expired. Revoked keys return 401 errors.

Organization ID not found

Your organization ID appears in the dashboard URL: app.devlyticks.com/organizations/YOUR_ORG_ID

Check MCP logs (macOS)

tail -f ~/Library/Logs/Claude/mcp-server-devlyticks.log