Skip to main content
Glama
Champion-2006

DevAssist MCP Server

πŸš€ DevAssist MCP Server

A production-ready Python MCP Server for GitHub & Competitive Programming

Python MCP Render License Docker


🌐 Live Cloud Deployment: DevAssist MCP Server is deployed and live on Render.com!

  • Base URL & Health Check: https://devassist-mcp-server.onrender.com/

  • SSE Endpoint: https://devassist-mcp-server.onrender.com/sse

You can connect your Claude Desktop, Cursor, or VS Code client directly to the hosted Render server without running code locally, or run it locally on your own machine.


πŸ“– Overview & Project Description

DevAssist MCP Server is a production-grade, asynchronous Model Context Protocol (MCP) server engineered to connect AI assistantsβ€”such as Claude Desktop, Cursor, and VS Code Copilotβ€”with real-time developer workflows, GitHub repository intelligence, and competitive programming analytics.

🎯 Purpose & Core Capabilities

Modern AI coding agents often lack direct access to external developer platforms and competitive programming metrics. DevAssist MCP addresses this by providing two dedicated tools through standard MCP protocol interfaces (STDIO and Server-Sent Events / SSE):

  1. πŸ™ github_assistant: Provides comprehensive GitHub integration including user profile lookups, repository metadata, commit histories, code language composition breakdowns, active pull requests, issue tracking, contributor metrics, and release releases notes.

  2. πŸ† cp_assistant: Integrates with Codeforces to fetch user contest ratings, submission performance history, topic-based accuracy tracking, algorithmic weak-spot identification, and personalized practice problem recommendations based on rating level and weak tags.

Whether deployed locally or accessed via its live Render.com cloud endpoint (https://devassist-mcp-server.onrender.com/sse), DevAssist MCP enables LLMs to reason over live developer data dynamically.

✨ Key Features

Feature

Description

🌐 Cloud Deployed

Live hosting on Render.com with full Server-Sent Events (SSE) support

πŸ™ GitHub Integration

User profiles, repo info, commits, PRs, issues, statistics

πŸ† Codeforces Integration

Profiles, contest history, rating tracking, submissions

🧠 Weak Topic Analysis

AI-powered identification of competitive programming weak areas

πŸ’‘ Smart Recommendations

Personalized problem suggestions based on skill gaps

⚑ Async Architecture

Non-blocking I/O with httpx for maximum performance

πŸ”’ Production Ready

Logging, error handling, type safety, comprehensive tests


Related MCP server: github-mcp

πŸ—οΈ Architecture

graph TD
    A["πŸ€– AI Agent<br/>(Claude / Cursor / VS Code)"] -->|MCP Protocol / SSE| B["🌐 Live Render MCP Server / Local Server"]
    B --> C["πŸ™ github_assistant"]
    B --> D["πŸ† cp_assistant"]
    C --> E["GitHub Service Layer"]
    D --> F["Codeforces Service Layer"]
    E -->|httpx async| G["GitHub REST API v3"]
    F -->|httpx async| H["Codeforces API"]
    
    style A fill:#4A90D9,stroke:#2C5F99,color:#fff
    style B fill:#6C3483,stroke:#4A235A,color:#fff
    style C fill:#27AE60,stroke:#1E8449,color:#fff
    style D fill:#E67E22,stroke:#CA6F1E,color:#fff

πŸ”Œ Connecting to Claude Desktop (claude_desktop_config.json)

To use this MCP server in Claude Desktop, open or create your claude_desktop_config.json file.

πŸ“ File Locations:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json (e.g., C:\Users\<username>\AppData\Roaming\Claude\claude_desktop_config.json)

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Linux: ~/.config/Claude/claude_desktop_config.json


Connect directly to the cloud-hosted server on Render.com using mcp-remote bridge:

{
  "mcpServers": {
    "devassist-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://devassist-mcp-server.onrender.com/sse"
      ]
    }
  }
}

Or if your version of Claude Desktop supports native SSE configuration:

{
  "mcpServers": {
    "devassist-mcp": {
      "url": "https://devassist-mcp-server.onrender.com/sse"
    }
  }
}

Option B: Use Local Machine Execution

If you prefer to run the MCP server locally on your own machine:

{
  "mcpServers": {
    "devassist-mcp": {
      "command": "python",
      "args": ["C:/path/to/devassist-mcp/server.py"],
      "env": {
        "GITHUB_TOKEN": "ghp_your_token_here"
      }
    }
  }
}

Note: Replace C:/path/to/devassist-mcp/server.py with the absolute path to server.py on your machine.


πŸ’» Other IDE Configurations

Cursor

Add to your Cursor MCP settings (.cursor/mcp.json):

Using Render Cloud Endpoint:

{
  "mcpServers": {
    "devassist-mcp": {
      "url": "https://devassist-mcp-server.onrender.com/sse"
    }
  }
}

Using Local Python Script:

{
  "mcpServers": {
    "devassist-mcp": {
      "command": "python",
      "args": ["C:/path/to/devassist-mcp/server.py"],
      "env": {
        "GITHUB_TOKEN": "ghp_your_token_here"
      }
    }
  }
}

VS Code (with Copilot)

Add to your VS Code settings:

{
  "mcp": {
    "servers": {
      "devassist-mcp": {
        "command": "npx",
        "args": [
          "-y",
          "mcp-remote",
          "https://devassist-mcp-server.onrender.com/sse"
        ]
      }
    }
  }
}

πŸ“‹ Prerequisites & Local Setup

Prerequisites

  • Python 3.12+

  • GitHub Personal Access Token (Generate here) β€” for higher rate limits

  • pip or uv package manager

Option 1: Using uv (Recommended)

# Clone the repository
git clone https://github.com/Champion-2006/DevAssist-MCP-Server.git
cd DevAssist-MCP-Server

# Create virtual environment and install dependencies
uv venv
uv pip install -r requirements.txt

Option 2: Using pip

# Clone the repository
git clone https://github.com/Champion-2006/DevAssist-MCP-Server.git
cd DevAssist-MCP-Server

# Create virtual environment
python -m venv venv

# Activate virtual environment
# Windows:
venv\Scripts\activate
# macOS/Linux:
source venv/bin/activate

# Install dependencies
pip install -r requirements.txt

βš™οΈ Local Configuration

  1. Copy the environment template:

    cp .env.example .env
  2. Edit .env with your settings:

    GITHUB_TOKEN=ghp_your_personal_access_token_here
    LOG_LEVEL=INFO
    TRANSPORT=stdio
    PORT=8000

Note: The GitHub token is optional but recommended. Without it, requests are limited to 60 API calls/hour. With a token, limit increases to 5,000 requests/hour.


πŸš€ Running Local Standalone

STDIO Mode (Default)

python server.py

SSE Transport Mode

python server.py --sse
# or
TRANSPORT=sse PORT=8000 python server.py

πŸ› οΈ Tool Documentation

Tool 1: github_assistant

Action

Description

Requires repository

get_user_profile

Get GitHub user profile

❌

get_user_repos

List all public repositories owned by a user

❌

get_user_activity

Get recent user activity (commits, PRs, stars)

❌

get_repo_info

Get repository details

βœ…

get_latest_commits

Get recent commits

βœ…

get_repo_stats

Get repository statistics

βœ…

get_repo_languages

Detailed programming language percentage breakdown

βœ…

get_repo_contributors

Top code contributors to a repository

βœ…

get_latest_release

Latest release version & release notes

βœ…

get_pull_requests

Get pull requests

βœ…

get_issues

Get repository issues

βœ…

Example β€” Get User Profile:

"Show me the GitHub profile of octocat"
{
  "login": "octocat",
  "name": "The Octocat",
  "public_repos": 42,
  "followers": 20000,
  "location": "San Francisco"
}

Example β€” Get Repo Stats:

"What are the stats for octocat/Hello-World?"
{
  "repository": "octocat/Hello-World",
  "stars": 2500,
  "forks": 450,
  "language": "Python",
  "open_issues": 12
}

Tool 2: cp_assistant

Action

Description

get_user_profile

Get Codeforces rating and rank

get_contest_history

Past contest participation

get_recent_submissions

Recent problem submissions

get_rating_history

Rating changes over time

analyze_weak_topics

Identify weak problem areas

recommend_problems

Personalized problem suggestions

Example β€” Analyze Weak Topics:

"Analyze the weak topics for Codeforces user tourist"
[
  {
    "tag": "geometry",
    "total_attempts": 15,
    "successful": 5,
    "failed": 10,
    "success_rate": 33.3
  }
]

Example β€” Get Recommendations:

"Recommend practice problems for my Codeforces handle"
[
  {
    "name": "Theatre Square",
    "rating": 1000,
    "tags": ["math"],
    "url": "https://codeforces.com/problemset/problem/1/A"
  }
]

πŸ§ͺ Testing

# Run all tests
pytest tests/ -v

# Run with coverage
pytest tests/ -v --cov=. --cov-report=term-missing

# Run specific test file
pytest tests/test_github_service.py -v

# Run specific test
pytest tests/test_codeforces_service.py::test_analyze_weak_topics -v

πŸ“ Project Structure

devassist-mcp/
β”œβ”€β”€ server.py                          # MCP server entry point (STDIO & SSE)
β”œβ”€β”€ config.py                          # Pydantic settings
β”œβ”€β”€ .env.example                       # Environment template
β”œβ”€β”€ requirements.txt                   # Dependencies
β”œβ”€β”€ pyproject.toml                     # Project metadata & tool configs
β”œβ”€β”€ Dockerfile                         # Multi-stage Docker build
β”œβ”€β”€ .dockerignore                      # Docker build exclusions
β”œβ”€β”€ .gitignore                         # Git exclusions
β”œβ”€β”€ README.md                          # Comprehensive documentation
β”œβ”€β”€ tools/
β”‚   β”œβ”€β”€ github.py                      # GitHub MCP tool
β”‚   └── cp.py                          # Codeforces MCP tool
β”œβ”€β”€ services/
β”‚   β”œβ”€β”€ github_service.py              # GitHub API client
β”‚   └── codeforces_service.py          # Codeforces API client
β”œβ”€β”€ models/
β”‚   β”œβ”€β”€ github_models.py               # GitHub Pydantic models
β”‚   └── cp_models.py                   # Codeforces Pydantic models
β”œβ”€β”€ utils/
β”‚   β”œβ”€β”€ logger.py                      # Structured logging
β”‚   └── exceptions.py                  # Custom exception hierarchy
β”œβ”€β”€ tests/
β”‚   β”œβ”€β”€ conftest.py                    # Shared test fixtures
β”‚   β”œβ”€β”€ test_github_service.py         # GitHub service tests
β”‚   β”œβ”€β”€ test_codeforces_service.py     # Codeforces service tests
β”‚   β”œβ”€β”€ test_github_tool.py            # GitHub tool tests
β”‚   └── test_cp_tool.py               # Codeforces tool tests
└── logs/                              # Log files (auto-created)

🐳 Deployment Guide

Render Deployment (Live Production)

This project is deployed live on Render.com as a Web Service running in SSE transport mode:

  1. Service Type: Web Service

  2. Build Command: pip install -r requirements.txt

  3. Start Command: python server.py --sse

  4. Environment Variables:

    • TRANSPORT: sse

    • PORT: 10000 (or Render default)

    • GITHUB_TOKEN: ghp_your_github_token

  5. Live URL: https://devassist-mcp-server.onrender.com


🀝 Contributing

  1. Fork the repository

  2. Create a feature branch: git checkout -b feature/amazing-feature

  3. Commit changes: git commit -m 'Add amazing feature'

  4. Push to branch: git push origin feature/amazing-feature

  5. Open a Pull Request

Code Quality

# Format code
black .

# Lint
ruff check .

# Type check
mypy .

Built with ❀️ using Python, FastMCP, and httpx

F
license - not found
-
quality - not tested
B
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Champion-2006/DevAssist-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server