Supercharge VS Code with decentralized Git operations and seamless Gitopia integration!
🏗️ Repository Management - Create, clone, and manage Gitopia repositories directly in VS Code
🔄 Git Operations - Full git workflow support with AI assistance
🎯 Issue & Bounty Management - Handle crypto-rewarded tasks programmatically
🌟 Advanced Workflows - Feature branches, PRs, and DAO operations
📁 Workspace Integration - Seamless file sharing between editor and MCP
- 🐳 Docker installed and running
- GitHub Copilot subscription (for VS Code MCP support)
- No wallet needed — a wallet is auto-generated on first use
For the fastest setup, use our one-click installation buttons:
Step 1: Pull Docker Image
docker pull ghcr.io/gitopia/gitopia-mcp-server:latestStep 2: Open MCP Configuration
You can configure VS Code in several ways:
- Run MCP: Open User Configuration command from Command Palette
- Use MCP: Add Server command and select Global
- Or manually edit the configuration file:
- macOS/Linux:
~/.config/Code/User/mcp.json - Windows:
%APPDATA%\Code\User\mcp.json
- macOS/Linux:
Step 3: Choose Configuration Mode
🎯 Attached to your project (recommended)
✅ Mounts your current VS Code workspace as the MCP workspace
✅ Real-time file synchronization between editor and MCP
✅ All operations work directly on your project files
🏠 Standalone workspace
✅ Uses dedicated workspace directory
✅ Consistent workspace regardless of launch context
✅ Ideal for general Gitopia operations
Step 4: Add Configuration (Attached workspace)
{
"servers": {
"gitopia": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--platform",
"linux/amd64",
"-v",
"${HOME}/.mcp/gitopia:/home/mcp/.mcp/gitopia",
"-v",
"${workspaceFolder}:/workspace",
"-w",
"/workspace",
"-e",
"MCP_WORKSPACE_PATH=/workspace",
"ghcr.io/gitopia/gitopia-mcp-server:latest",
"stdio"
],
"env": {}
}
}
}Wallet: A new wallet is auto-generated on first use. To use an existing wallet, add
"-e", "GITOPIA_MNEMONIC"to Docker args and set it in your shell:export GITOPIA_MNEMONIC="your 24 words".
Alternative: Standalone workspace
{
"servers": {
"gitopia": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--platform",
"linux/amd64",
"-v",
"${HOME}/.mcp/gitopia:/home/mcp/.mcp/gitopia",
"-e",
"MCP_WORKSPACE_PATH=/home/mcp/.mcp/gitopia/workspace",
"ghcr.io/gitopia/gitopia-mcp-server:latest",
"stdio"
],
"env": {}
}
}
}Alternative: Native Binary
If you have the binary installed locally (via GitHub Releases or go install). Requires git-remote-gitopia for git clone/push (curl https://get.gitopia.com | bash):
{
"servers": {
"gitopia": {
"type": "stdio",
"command": "/path/to/gitopia-mcp-server",
"env": {
"TRUST_LEVEL": "chainwrite"
}
}
}
}Step 5: Restart VS Code
Restart VS Code to load the new MCP server configuration.
- Workspace Mount:
${workspaceFolder}:/workspacemounts your VS Code project directory - Working Directory:
-w /workspacesets the container's working directory - MCP_WORKSPACE_PATH=/workspace: Points MCP at the mounted project directory
- File Sharing: Changes in VS Code immediately appear in MCP and vice versa
- All MCP operations use workspace-relative paths (e.g.,
myrepo/src/main.go) - Paths are resolved relative to your project root
- Security: Path traversal attacks are prevented
A new wallet is auto-generated on first use and saved to ~/.mcp/gitopia/config/wallet.key (inside the mounted volume). To use an existing wallet, set GITOPIA_MNEMONIC in your shell environment — never hardcode it in config files.
GITOPIA_MNEMONIC: Your 24-word wallet mnemonic (optional — auto-generated if not set)GITOPIA_GRPC_ENDPOINT: Gitopia gRPC endpoint (optional, defaults togitopia-grpc.polkachu.com:11390)GIT_USER_NAME: Git commit author name (optional)GIT_USER_EMAIL: Git commit author email (optional)MCP_WORKSPACE_PATH=/workspace: Container workspace path
${HOME}/.mcp/gitopia:/home/mcp/.mcp/gitopia: Persistent meta directories (cache, config, logs)${workspaceFolder}:/workspace: Your project directory (Project Integration mode only)
- Ensure Docker has permission to access your project directory
- On macOS: Check Docker Desktop > Settings > Resources > File Sharing
- On Linux: Ensure proper file permissions
- The server automatically configures git authentication using your Gitopia wallet
- No additional git credentials needed for Gitopia repositories
- Use relative paths in MCP operations (e.g.,
myreponot/absolute/path/myrepo) - The server automatically resolves paths relative to your project root
- Verify JSON syntax in your MCP configuration
- Restart VS Code after configuration changes
- Check that the MCP extension is properly installed
Need help? Check the main troubleshooting guide or open an issue.