IDE Integration (MCP)
What is MCP?
The Model Context Protocol (MCP) is an open standard that allows AI-powered IDEs and tools to securely connect to external services. DojoCode provides an MCP server that lets you interact with the platform directly from your favourite IDE.
With the DojoCode MCP integration you can:
- Browse and search challenges — filter by language, difficulty, tags, and more
- Create and edit challenges — write challenge descriptions, initial code, tests, and solutions
- Run code and tests — execute your code and run test suites without leaving your IDE
- Manage contests — view, create, and join contests
- Download challenges — export challenge files as ZIP archives
Supported IDEs
DojoCode MCP works with any IDE or tool that supports the MCP protocol, including:
- Claude Code (Anthropic)
- Cursor
- VS Code (with GitHub Copilot or compatible extensions)
- Gemini CLI (Google)
- Windsurf
- Any MCP-compatible client
Getting Started
Before configuring your IDE, clone the starter repository. This repo contains the MCP configuration and project structure needed to work with DojoCode challenges:
git clone https://bitbucket.org/sebastian_lucaciu/ai-code-challenge-curation-starter.git
cd ai-code-challenge-curation-starter
npm installThen open this project in your IDE and follow the setup guide for your specific IDE below.
How It Works
- You clone the starter repository and open it in your IDE
- The repository includes the MCP server configuration for DojoCode
- On first connection, your IDE opens a browser window for authentication
- You log in to DojoCode and authorize the IDE
- The IDE receives an access token and can now interact with DojoCode on your behalf
- The token is valid for 90 days — after that, you simply re-authorize
Your credentials are never shared with the IDE. Authentication uses the industry-standard OAuth 2.1 protocol with PKCE.
Available Tools
Once connected, your IDE will have access to the following tools:
| Tool | Description |
|---|---|
get_challenges | Browse and search coding challenges with filters |
get_challenge | Get detailed info about a specific challenge |
get_challenge_edit_data | Get challenge edit data for a specific variation |
get_challenges_by_tags | Find challenges filtered by tags |
get_all_tags | List all available challenge tags |
get_templates | List available project templates |
get_languages | List supported programming languages |
create_challenge | Create a new coding challenge |
add_variation | Add a language variation to a challenge |
update_challenge_files | Update challenge source files |
update_challenge_info | Update challenge metadata |
check_slug_uniqueness | Verify a challenge slug is unique |
run_initial_tests | Run sample tests for a challenge |
run_all_tests | Run the full test suite |
run_challenge_code | Execute code for a challenge |
download_challenge_zip | Download challenge files as ZIP |
get_contests | Browse available contests |
get_upcoming_contests | List upcoming contests |
get_contest | Get detailed contest information |
create_contest | Create a new contest |
join_contest | Join an existing contest |
get_contest_leaderboard | View contest leaderboard |
Quick Tip: /mcp Command
Most AI-powered IDEs support a /mcp command that lets you manage MCP server connections. After configuring the DojoCode server, you can type /mcp in your IDE's chat or command palette to:
- View the status of connected MCP servers
- Trigger authentication or re-authentication
- Reconnect if the server was disconnected
This is the fastest way to verify your connection and troubleshoot issues.
Next Steps
Follow the setup guide for your IDE: