MCP Hub
Back to servers

Diversion MCP Server

Connects Claude to Diversion version control API enabling repository management, branch operations, commit tracking, and code reviews through natural language. Supports workspace monitoring, file history, and collaborator access with flexible API key authentication.

glama
Updated
Apr 3, 2026

Diversion MCP Server

MCP server untuk connect Claude dengan Diversion version control API.

Tools Available

ToolDescription
test_authTest API token
list_reposList semua repos
get_repoGet details sesebuah repo
list_branchesList branches dalam repo
create_branchBuat branch baru
get_branchGet details sesebuah branch
list_commitsList commits
get_commitGet details sesebuah commit
list_workspacesList workspaces
workspace_statusCheck workspace status (modified files)
get_file_treeGet file tree sesebuah repo
get_file_historyGet commit history untuk file tertentu
list_reviewsList reviews/PRs
list_collaboratorsList collaborators

Deploy ke Railway (Paling Mudah)

1. Push ke GitHub dulu

git init
git add .
git commit -m "init diversion mcp server"
gh repo create diversion-mcp --public --push

2. Deploy kat Railway

  1. Pergi https://railway.app
  2. New Project → Deploy from GitHub repo
  3. Pilih repo diversion-mcp
  4. Add environment variable:
    • DIVERSION_API_KEY = (API key kau, optional — boleh pass per-request)
  5. Railway auto-detect Node.js dan build sendiri
  6. Copy URL yang Railway bagi (format: https://xxx.railway.app)

3. Tambah dalam Claude

  1. Pergi Settings → Connectors → Add custom connector
  2. URL: https://xxx.railway.app/mcp
  3. Dalam Advanced Settings, letak Authorization header:
    • Key: Authorization
    • Value: Bearer <DIVERSION_API_KEY_KAU>
  4. Save ✅

Deploy ke Render (Free Tier Available)

  1. Push ke GitHub
  2. Pergi https://render.com → New Web Service
  3. Connect GitHub repo
  4. Settings:
    • Build Command: npm install && npm run build
    • Start Command: npm start
    • Environment: DIVERSION_API_KEY=<token_kau>
  5. Copy URL → tambah /mcp → letak dalam Claude connectors

Run Locally (Testing)

npm install
npm run dev

Server akan run kat http://localhost:3000/mcp

Untuk test, gunakan MCP Inspector atau curl:

curl -X POST http://localhost:3000/mcp \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <DIVERSION_API_KEY>" \
  -d '{"jsonrpc":"2.0","method":"tools/list","id":1}'

Authentication

Server support dua cara auth:

  1. Per-request — Pass Authorization: Bearer <token> dalam setiap request (recommended, lebih secure)
  2. Environment variable — Set DIVERSION_API_KEY dan server akan guna tu kalau header tak ada

Reviews

No reviews yet

Sign in to write a review