GitVerse MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GitVerse MCP Server show me open pull requests in the main repository"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GitVerse MCP Server
MCP-сервер (Model Context Protocol) для работы с GitVerse — российским сервисом хостинга репозиториев. Сервер даёт AI-ассистентам (Cursor, Claude Desktop, ZCode и любым MCP-клиентам) доступ к вашим репозиториям, pull request'ам и CI: можно листать и создавать PR, проводить code review — оставлять инлайн-комментарии к диффу, ставить вердикты approve / request changes / decline, назначать исполнителей и лейблы, запускать и разбирать CI-раны вплоть до логов джоб.
Набор из 25 инструментов повторяет семантику популярного bitbucket-mcp: привычные имена (getPullRequests, approvePullRequest, addPullRequestComment…), но поверх REST API GitVerse.
Обзор
Сервер реализует стандарт Model Context Protocol и предоставляет инструменты для:
Репозитории — список своих или репозиториев организации, карточка репозитория
Pull request'ы — список с фильтром по состоянию, создание (включая черновики), правка заголовка/описания/состояния/базовой ветки, коммиты и изменённые файлы PR, таймлайн активности
Code review — инлайн-комментарии к конкретным строкам диффа, комментарии обсуждения (создание/правка/удаление), вердикты: одобрить, запросить изменения, заклонить, снять своё одобрение
Назначения — assignees и labels на PR (PR в GitVerse является issue)
CI — ран-ы GitVerse Actions (аналог Bitbucket Pipelines): список с фильтрами, карточка рана, запуск workflow, джобы и их логи
Все операции выполняются через официальный публичный REST API GitVerse: заголовки Authorization: Bearer и вендорный Accept: application/vnd.gitverse.object+json; version=1 выставляются автоматически, ответы 429 автоматически повторяются с учётом Retry-After.
Инструменты на одном экране
Группа | Инструменты |
Репозитории |
|
Pull request'ы |
|
Вердикты ревью |
|
Комментарии |
|
CI (Actions) |
|
Related MCP server: GitLab MCP Server
Установка
Через NPX (рекомендуется)
Запуск без глобальной установки:
GITVERSE_TOKEN="ваш-токен" npx -y @grigoriy-grisha/gitverse-mcp@latestРучная установка
Либо установите глобально или в проект:
# Глобально
npm install -g @grigoriy-grisha/gitverse-mcp
# Или в проект
npm install @grigoriy-grisha/gitverse-mcpЗатем запускайте:
# Глобальная установка
GITVERSE_TOKEN="ваш-токен" gitverse-mcp
# Установка в проект
GITVERSE_TOKEN="ваш-токен" npx @grigoriy-grisha/gitverse-mcpТребуется Node.js 20 или выше.
Настройка
Переменные окружения
Переменная | Описание | Обязательна |
| Персональный токен GitVerse (см. ниже) | Да |
| База API. По умолчанию | Нет |
| Версия вендорного media type. По умолчанию | Нет |
Создание токена GitVerse
Войдите в ваш аккаунт на gitverse.ru
Откройте Настройки → Управление токенами
Создайте новый токен с правами:
Репозитории: чтение, запись
Issues / Pull requests: чтение, запись
CI/CD (Actions): чтение, запись — нужно для тулов
*Pipeline*
Скопируйте сгенерированный токен и используйте его как
GITVERSE_TOKEN
Подробности — в документации по токенам.
Интеграция с клиентами
ZCode
Добавьте в конфигурацию MCP (~/.zcode/mcp.json или настройка проекта):
{
"mcpServers": {
"gitverse": {
"command": "npx",
"args": ["-y", "@grigoriy-grisha/gitverse-mcp@latest"],
"env": {
"GITVERSE_TOKEN": "ваш-токен"
}
}
}
}Claude Desktop
В файле claude_desktop_config.json:
{
"mcpServers": {
"gitverse": {
"command": "npx",
"args": ["-y", "@grigoriy-grisha/gitverse-mcp@latest"],
"env": {
"GITVERSE_TOKEN": "ваш-токен"
}
}
}
}Cursor
Откройте Settings → Extensions → Model Context Protocol
Добавьте конфигурацию:
"gitverse": {
"command": "npx",
"env": {
"GITVERSE_TOKEN": "ваш-токен"
},
"args": ["-y", "@grigoriy-grisha/gitverse-mcp@latest"]
}Локальная сборка для разработки
Если правите сервер локально и хотите проверить изменения:
"gitverse-local": {
"command": "node",
"env": {
"GITVERSE_TOKEN": "ваш-токен"
},
"args": ["/путь/к/gitverse-mcp/dist/index.js"]
}Устранение неполадок
Ошибки 401 Unauthorized
Проверьте токен: убедитесь, что используете персональный токен из «Управление токенами», а не пароль аккаунта
Проверьте права токена: для базовых операций нужно «Репозитории: чтение»; для вердиктов и комментариев — запись
Проверьте токен вручную через curl:
curl -H "Authorization: Bearer ваш-токен" \
-H "Accept: application/vnd.gitverse.object+json; version=1" \
"https://api.gitverse.ru/user"Ошибки 429 Too Many Requests
API GitVerse ограничивает 2000 запросов в час на пользователя. Сервер автоматически повторяет такие запросы с учётом заголовка Retry-After (до 3 попыток). Если лимиты всё равно исчерпываются — снизьте частоту вызовов в сценарии ассистента.
Ошибки 400 VALIDATION_ERROR
Проверьте, что токен передаётся вместе с вендорным заголовком Accept: application/vnd.gitverse.object+json; version=1 — без него шлюз GitVerse отвечает 400. При работе через этот MCP-сервер заголовок ставится автоматически, ошибка возникает только при ручных curl-проверках.
Доступные инструменты
Сервер предоставляет 25 инструментов для работы с репозиториями, PR и CI. Полный список по группам:
Если не указано иное, листинги (listRepositories, getPullRequests, getPullRequestCommits, listPipelineRuns) принимают опциональные параметры пагинации:
page(optional): номер страницы, начиная с 1. По умолчанию возвращается первая страница.per_page(optional): количество элементов на странице.
Репозитории
listRepositories
Возвращает список репозиториев.
Параметры:
org(optional): имя организации — если указано, возвращаются репозитории организации; иначе — репозитории текущего пользователяpage(optional),per_page(optional): пагинация
getRepository
Возвращает карточку репозитория.
Параметры:
owner: владелец репозитория (пользователь или организация)repo: имя репозитория
Pull request'ы
getPullRequests
Возвращает pull request'ы репозитория.
Параметры:
owner: владелецrepo: имя репозиторияstate(optional): состояние PR —openилиclosedpage(optional),per_page(optional): пагинация
createPullRequest
Создаёт pull request из ветки head в ветку base.
Параметры:
owner: владелецrepo: имя репозиторияtitle: заголовок PRhead: исходная веткаbase: целевая веткаbody(optional): описание PR (markdown)draft(optional): создать как черновикassignees(optional): список username для назначенияlabels(optional): список лейблов
Примечание: запрос ревьюеров (reviewers) в API GitVerse отсутствует — используйте assignees.
createDraftPullRequest
Создаёт pull request в статусе черновика.
Параметры:
owner,repo,title,head,base— как уcreatePullRequestbody(optional): описание PR
Примечание: эквивалентно createPullRequest с draft: true.
getPullRequest
Возвращает карточку конкретного pull request'а.
Параметры:
owner: владелецrepo: имя репозиторияpull_number: номер PR
updatePullRequest
Обновляет pull request: заголовок, описание, состояние, целевую ветку; дополнительно может заменить assignees и labels (через issue-эндпоинт — PR в GitVerse является issue).
Параметры:
owner: владелецrepo: имя репозиторияpull_number: номер PRtitle(optional): новый заголовокbody(optional): новое описаниеstate(optional): новое состояние —openилиclosedbase(optional): новая целевая веткаassignees(optional): заменить исполнителейlabels(optional): заменить лейблы
getPullRequestActivity
Возвращает таймлайн активности pull request'а.
Параметры:
owner,repo,pull_number
getPullRequestCommits
Возвращает коммиты pull request'а.
Параметры:
owner,repo,pull_numberpage(optional),per_page(optional): пагинация
getPullRequestDiff
Возвращает изменённые файлы pull request'а с построчными патчами.
Параметры:
owner,repo,pull_number
Вердикты ревью
approvePullRequest
Одобряет pull request — создаёт ревью с вердиктом APPROVED.
Параметры:
owner,repo,pull_numberbody(optional): комментарий к одобрению
unapprovePullRequest
Снимает ваше одобрение: находит ваше последнее APPROVED-ревью и удаляет его.
Параметры:
owner,repo,pull_number
requestChanges
Запрашивает изменения — создаёт ревью с вердиктом REQUEST_CHANGES.
Параметры:
owner,repo,pull_numberbody(optional): что нужно изменить
removeChangeRequest
Снимает ваш change request — перекрывает его новым ревью с вердиктом APPROVED (отдельного эндпоинта в API GitVerse нет).
Параметры:
owner,repo,pull_numberbody(optional): комментарий
declinePullRequest
Заклоняет (закрывает) pull request.
Параметры:
owner,repo,pull_numbermessage(optional): причина отклонения — публикуется комментарием в обсуждение перед закрытием
Комментарии
getPullRequestComments
Возвращает комментарии обсуждения pull request'а.
Параметры:
owner,repo,pull_numbersince(optional): только комментарии, созданные после ISO-времениbefore(optional): только комментарии, созданные до ISO-времени
addPullRequestComment
Создаёт комментарий к pull request — общий или инлайн.
Параметры:
owner: владелецrepo: имя репозиторияpull_number: номер PRcontent: текст комментария (markdown)inline(optional): инлайн-комментарий к конкретной строке диффа:
{
"path": "src/file.ts",
"to": 15
}reply_to(optional): id комментария, на который отвечаем (только для общих комментариев)
Формат инлайн-комментария:
path: путь к файлу в диффеto: номер строки в новой версии (добавленные и изменённые строки)
SHA коммита определяется автоматически — отдельно передавать его не нужно.
Примеры:
// Общий комментарий
addPullRequestComment(owner, repo, 14, "Отличная работа!");
// Инлайн-комментарий к строке 25 файла src/service.ts
addPullRequestComment(owner, repo, 14, "Добавь обработку ошибок", {
inline: { path: "src/service.ts", to: 25 }
});updatePullRequestComment
Редактирует комментарий обсуждения.
Параметры:
owner,repo,pull_numbercomment_id: id комментарияcontent: новый текст
deletePullRequestComment
Удаляет комментарий обсуждения.
Параметры:
owner,repo,pull_numbercomment_id: id комментария
CI (GitVerse Actions)
CI-раны GitVerse Actions — аналог Bitbucket Pipelines.
listPipelineRuns
Возвращает CI-раны репозитория.
Параметры:
owner,repostatus(optional): фильтр по статусу —queued,in_progress,success,failure,cancelled,unknownbranch(optional): фильтр по веткеevent(optional): фильтр по событию-триггеруpage(optional),per_page(optional): пагинация
getPipelineRun
Возвращает карточку CI-рана.
Параметры:
owner,reporun_id: id рана
runPipeline
Запускает workflow на ветке или теге.
Параметры:
owner,repoworkflow: имя файла workflow (напримерci.yml) или idref_type: что передаётся вref_name—branchилиtagref_name: имя ветки или тегаinputs(optional): входные параметры workflow (строковые значения)
getPipelineSteps
Возвращает джобы (шаги) CI-рана.
Параметры:
owner,reporun_id: id рана
getPipelineStep
Возвращает карточку джобы.
Параметры:
owner,repojob_id: id джобы
getPipelineStepLogs
Возвращает логи джобы.
Параметры:
owner,repojob_id: id джобы
Ограничения
Часть возможностей Bitbucket в публичном API GitVerse отсутствует, поэтому соответствующих тулов нет:
merge PR — эндпоинта слияния в API нет (только проверка «смержен ли» и обновление ветки из base)
reviewers при создании PR — есть только assignees
переключение draft после создания (
publishDraftPullRequest/convertTodraft)задачи (tasks) на PR
resolve / reopen тредов комментариев
остановка CI-рана (cancel отсутствует)
commit statuses — вместо них используйте
listPipelineRunsс фильтром по ветке
Разработка
Требования
Node.js 20 или выше
npm
Настройка
# Клонировать репозиторий
git clone <repo-url>
cd gitverse-mcp
# Установить зависимости
npm install
# Собрать проект
npm run build
# Запустить тесты
npm test
# Запустить локально
GITVERSE_TOKEN="ваш-токен" npm startСтруктура
src/composite.ts 25 тулов: имена и семантика Bitbucket MCP, вызовы API GitVerse
src/client.ts HTTP-клиент: Bearer + vendor Accept, 429/Retry-After, ошибки
src/server.ts MCP-сервер: регистрация тулов, аннотации readOnlyHint
src/index.ts stdio-транспорт, env-конфигурация
test/ vitest: клиент, тулы, e2e по InMemoryTransportЛицензия
Проект распространяется по лицензии MIT — подробности в файле LICENSE.
Ссылки
Available Tools
25 toolsaddPullRequestCommentADestructive
Comment on a pull request. Without inline — a general discussion comment. With inline {path, to} — an inline review comment on line to of the diff (commit SHA is resolved automatically). Replying: pass reply_to with a comment id.
Inputs: repo (required), owner (required), content (required), pull_number (required), +2 more.
approvePullRequestCDestructive
Approve a pull request by submitting an APPROVED review.
Inputs: repo (required), owner (required), pull_number (required), body.
createDraftPullRequestADestructive
Create a draft pull request (equivalent to createPullRequest with draft=true).
Inputs: base (required), head (required), repo (required), owner (required), +2 more.
createPullRequestADestructive
Create a pull request from head to base. GitVerse has no reviewer requests — use assignees instead. Pass draft=true to create a draft.
Inputs: base (required), head (required), repo (required), owner (required), +5 more.
declinePullRequestADestructive
Decline (close) a pull request. An optional message is posted to the discussion before closing.
Inputs: repo (required), owner (required), pull_number (required), message.
deletePullRequestCommentBDestructive
Delete a discussion comment on a pull request.
Inputs: repo (required), owner (required), comment_id (required), pull_number (required).
getPipelineRunCRead-onlyIdempotent
Get details of a CI run.
Inputs: repo (required), owner (required), run_id (required).
getPipelineStepCRead-onlyIdempotent
Get details of a CI job (step).
Inputs: repo (required), owner (required), job_id (required).
getPipelineStepLogsBRead-onlyIdempotent
Get logs of a CI job (step).
Inputs: repo (required), owner (required), job_id (required).
getPipelineStepsBRead-onlyIdempotent
List jobs (steps) of a CI run.
Inputs: repo (required), owner (required), run_id (required).
getPullRequestBRead-onlyIdempotent
Get details of a specific pull request.
Inputs: repo (required), owner (required), pull_number (required).
getPullRequestActivityARead-onlyIdempotent
Get the activity/timeline of a pull request.
Inputs: repo (required), owner (required), pull_number (required).
getPullRequestCommentsBRead-onlyIdempotent
List discussion comments on a pull request. Supports since/before filters.
Inputs: repo (required), owner (required), pull_number (required), since, +1 more.
getPullRequestCommitsARead-onlyIdempotent
List the commits of a pull request. Supports page/per_page.
Inputs: repo (required), owner (required), pull_number (required), page, +1 more.
getPullRequestDiffARead-onlyIdempotent
Get the changed files of a pull request, including per-file patches.
Inputs: repo (required), owner (required), pull_number (required).
getPullRequestsCRead-onlyIdempotent
List pull requests of a repository. state filters by open/closed. Supports page/per_page.
Inputs: repo (required), owner (required), page, state, +1 more.
getRepositoryARead-onlyIdempotent
Get details of a specific repository.
Inputs: repo (required), owner (required).
listPipelineRunsARead-onlyIdempotent
List CI runs (GitVerse Actions, Bitbucket Pipelines analog). Filters: status, branch, event. Supports page/per_page.
Inputs: repo (required), owner (required), page, event, +3 more.
listRepositoriesARead-onlyIdempotent
List repositories. Without arguments lists the authenticated user's repositories; pass org to list organization repositories. Supports page/per_page.
Inputs: org, page, per_page.
removeChangeRequestADestructive
Remove your change request by superseding it with an APPROVED review (GitVerse has no dedicated un-request endpoint).
Inputs: repo (required), owner (required), pull_number (required), body.
requestChangesADestructive
Request changes on a pull request by submitting a REQUEST_CHANGES review.
Inputs: repo (required), owner (required), pull_number (required), body.
runPipelineBDestructive
Trigger a CI run of a workflow on a branch or tag.
Inputs: repo (required), owner (required), ref_name (required), ref_type (required), +2 more.
unapprovePullRequestADestructive
Remove your approval: finds your latest APPROVED review on the pull request and deletes it.
Inputs: repo (required), owner (required), pull_number (required).
updatePullRequestADestructive
Update a pull request: title, body, state (open|closed), base branch. assignees and labels are applied through the issue endpoint because a PR is an issue in GitVerse.
Inputs: repo (required), owner (required), pull_number (required), base, +5 more.
updatePullRequestCommentBDestructive
Edit a discussion comment on a pull request.
Inputs: repo (required), owner (required), content (required), comment_id (required), +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 25 tools
The PR-related tools are numerous but each has a distinct purpose (create, get, list, update, approve, decline, request changes, comments, diff, commits, activity). However, createDraftPullRequest overlaps with createPullRequest (which has a draft parameter), and unapprovePullRequest vs removeChangeRequest could be confused, though descriptions clarify. Overall, an agent can typically select the right tool.
All tool names follow a consistent camelCase verb_noun pattern (listRepositories, getRepository, createPullRequest, getPullRequestDiff, etc.). No mixed conventions or vague verbs like 'process' or 'run' without context.
At 25 tools, this is at the upper edge of acceptable. The large number is driven by PR sub-operations (comments, approvals, changes) and pipeline steps/logs, but the redundant createDraftPullRequest and the tight PR focus make it feel slightly heavy for the scope. Still, each tool addresses a specific need.
Major gaps exist: there is no merge_pull_request tool, no branch/tag management, and no repository-level lifecycle operations beyond list/get. The PR workflow covers review and comments but lacks merging, which is a core operation. Pipeline tools are comprehensive but the overall domain feels incomplete for a full Git hosting server.
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Plain-English git for agents: 22 tools to branch, commit, push and tag. Free tier.
AI-native git hosting — repos, PRs, issues, CI gates, and AI code review over MCP (60 tools).
Operate GitHub from your AI assistant: repos, PRs, issues, Actions. Previews and read-only mode.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables AI assistants to interact with the GitLab API, providing over 1000 tools for managing groups, projects, users, and more through natural language.MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with GitLab repositories, manage branches, create merge requests, and perform file operations through natural language.-
- AlicenseAqualityDmaintenanceConnects AI assistants to GitHub repositories, pull requests, issues, commits, and code search while enabling repository visibility controls, CI/CD monitoring, sandboxed local filesystem access, and code quality/security analysis.131MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to search and inspect code repositories, manage issues and pull requests, and analyze user contributions.13MIT