GitCore Sovereign Git & Swarm Merge MCP Server
GitCore MCP: stacked PRs, speculative merge queues, SARIF reviews & agent attestation.
使うべきか
品質と安全性
検出事項(1)
- LOWcreate_repo 内
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `claude_desktop_config.json` ファイルに追加してください:
{
"mcpServers": {
"gitcore-mcp": {
"command": "npx",
"args": [
"@gitcorenet/mcp"
]
}
}
}実行可能なパッケージ
1.1.12stdioリモートエンドポイント
https://mcp.gitcore.net/mcpstreamable-httpできること
ツール一覧
ツール(8)
🟡create_repo(owner, name, description, defaultBranch, isPrivate, ...)
Provision a new public or private bare Git repository on GitCore and return its Smart HTTP v2 clone URL, default branch, and API metadata.
入力スキーマ
{
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "Owner username or organization slug. Defaults to the authenticated PAT user."
},
"name": {
"type": "string",
"description": "Repository slug (e.g., \"payment-router\")."
},
"description": {
"type": "string",
"description": "Human-readable description of the repository."
},
"defaultBranch": {
"type": "string",
"default": "main",
"description": "Default trunk branch name (defaults to \"main\")."
},
"isPrivate": {
"type": "boolean",
"default": false,
"description": "Set true for private repository, false for public."
},
"initReadme": {
"type": "boolean",
"default": true,
"description": "Initialize repository with a starter README commit so HEAD exists immediately."
}
},
"required": [
"name"
]
}⚪push_stacked_pr(owner, repo, head, base, parentPrNumber, ...)
Atomically commit file additions/edits/deletions onto a stacked feature branch on bare Git storage (or use an already-pushed branch), create/update the Pull Request, link `parentPrNumber` into the Virtual Stacked PR DAG, and optionally attach cryptographic agent attestation.
入力スキーマ
{
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "Repository owner username or organization."
},
"repo": {
"type": "string",
"description": "Repository name."
},
"head": {
"type": "string",
"description": "Feature/stacked branch name (e.g. \"stack/01-schema\"). Created automatically from `base` or `parentPrNumber` if `files` are supplied."
},
"base": {
"type": "string",
"description": "Target base branch. Optional when `parentPrNumber` is provided (automatically targets parent PR head branch)."
},
"parentPrNumber": {
"type": "integer",
"description": "Optional parent Pull Request number in the Virtual Stacked PR DAG."
},
"title": {
"type": "string",
"description": "Pull request title."
},
"body": {
"type": "string",
"description": "Pull request Markdown description."
},
"draft": {
"type": "boolean",
"default": false
},
"commitMessage": {
"type": "string",
"description": "Commit message when `files` are provided (defaults to `title`)."
},
"files": {
"type": "array",
"description": "Optional list of file changes to commit atomically onto `head` without requiring a local git clone.",
"items": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string",
"description": "Repository-relative file path."
},
"content": {
"type": "string",
"description": "Full UTF-8 file content."
},
"delete": {
"type": "boolean",
"default": false,
"description": "Set true to delete this file."
},
"executable": {
"type": "boolean",
"default": false,
"description": "Set true for executable file mode (100755)."
}
}
}
},
"attestation": {
"type": "object",
"description": "Optional cryptographic agent provenance metadata to sign and attach immediately.",
"properties": {
"agentId": {
"type": "string"
},
"model": {
"type": "string"
},
"runId": {
"type": "string"
},
"promptHash": {
"type": "string"
},
"confidenceScore": {
"type": "number",
"minimum": 0,
"maximum": 1
}
}
}
},
"required": [
"owner",
"repo",
"head",
"title"
]
}🟡enqueue_speculative_merge(owner, repo, prNumber, mergeStrategy, commitTitle, ...)
Add a Pull Request to GitCore Speculative Parallel Merge Queue. Chains in-memory `git merge-tree --write-tree` batches, validates branch protection rules in parallel, and surgically ejects conflicting PRs without stalling healthy downstream PRs.
入力スキーマ
{
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "Repository owner."
},
"repo": {
"type": "string",
"description": "Repository name."
},
"prNumber": {
"type": "integer",
"description": "Pull Request number to enqueue."
},
"mergeStrategy": {
"type": "string",
"enum": [
"merge",
"squash",
"rebase"
],
"default": "merge",
"description": "Git merge strategy when speculative checks succeed."
},
"commitTitle": {
"type": "string",
"description": "Optional custom merge commit title."
},
"autoProcess": {
"type": "boolean",
"default": true,
"description": "Immediately trigger speculative batch evaluation."
}
},
"required": [
"owner",
"repo",
"prNumber"
]
}🟢get_sarif_review(owner, repo, prNumber)
Retrieve structured OASIS SARIF v2.1.0 inline findings, machine-applicable code replacement suggestions, formal review state, Dependabot/secret alert counts, and Anti-Ping-Pong circuit-breaker status for a Pull Request.
入力スキーマ
{
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "Repository owner."
},
"repo": {
"type": "string",
"description": "Repository name."
},
"prNumber": {
"type": "integer",
"description": "Pull Request number."
}
},
"required": [
"owner",
"repo",
"prNumber"
]
}⚪sign_agent_attestation(owner, repo, prNumber, agentId, model, ...)
Cryptographically sign and attach HMAC-SHA256 provenance (`agentId`, `model`, `runId`, `promptHash`, `confidenceScore`, `verifiedActor`) plus optional PGP/Ed25519 client detached signatures onto a Pull Request.
入力スキーマ
{
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "Repository owner."
},
"repo": {
"type": "string",
"description": "Repository name."
},
"prNumber": {
"type": "integer",
"description": "Pull Request number."
},
"agentId": {
"type": "string",
"description": "Unique identifier for the autonomous agent (e.g. \"claude-code-worker-1\")."
},
"model": {
"type": "string",
"description": "Underlying foundation model identifier (e.g. \"gemini-2.5-pro\")."
},
"runId": {
"type": "string",
"description": "Execution trace or run identifier."
},
"promptHash": {
"type": "string",
"description": "SHA-256 hash of the user/orchestrator prompt."
},
"confidenceScore": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 1
},
"clientSignature": {
"type": "string",
"description": "Optional detached PGP or Ed25519/ECDSA signature."
},
"clientSignatureAlgorithm": {
"type": "string",
"enum": [
"pgp",
"ed25519",
"ecdsa-p256",
"sigstore",
"custom"
]
},
"clientPublicKey": {
"type": "string",
"description": "Optional armored PGP public key or PEM public key to verify `clientSignature`."
}
},
"required": [
"owner",
"repo",
"prNumber",
"agentId",
"model"
]
}🟡submit_sarif_review(owner, repo, prNumber, sarif)
Post an OASIS SARIF v2.1.0 report onto a Pull Request as structured inline review comments.
入力スキーマ
{
"type": "object",
"properties": {
"owner": {
"type": "string"
},
"repo": {
"type": "string"
},
"prNumber": {
"type": "integer"
},
"sarif": {
"type": "object",
"description": "Valid SARIF v2.1.0 JSON object containing `runs[]`."
}
},
"required": [
"owner",
"repo",
"prNumber",
"sarif"
]
}🟢get_pull_request_stack(owner, repo, prNumber)
Retrieve ancestor PRs, descendant PRs, rebase status, and merge blockers for a Pull Request in a stack.
入力スキーマ
{
"type": "object",
"properties": {
"owner": {
"type": "string"
},
"repo": {
"type": "string"
},
"prNumber": {
"type": "integer"
}
},
"required": [
"owner",
"repo",
"prNumber"
]
}🟢search_public_repos(query)
List and search public repositories hosted on GitCore.
入力スキーマ
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Optional keyword filter matching owner, name, or description."
}
}
}コミュニティ
エビデンス