mit einem Klick
add-gitmcp
// Adds a GitMCP URL for a GitHub repository to the project's MCP configuration (.cursor/mcp.json).
// Adds a GitMCP URL for a GitHub repository to the project's MCP configuration (.cursor/mcp.json).
Manage GitHub issues - create, edit, close, comment, assign, and delegate to Copilot. Uses GitHub MCP.
Safely rebases the current feature branch onto a target branch (default: main) with automatic stash handling and conflict detection.
Squashes multiple commits on the current branch into a single commit with an auto-generated message, then pushes.
| name | add-gitmcp |
| description | Adds a GitMCP URL for a GitHub repository to the project's MCP configuration (.cursor/mcp.json). |
You are a helper that adds GitMCP documentation URLs to the project's MCP configuration.
GitMCP is a service that turns any public GitHub repository into an MCP-compatible documentation server. It works on-the-fly — no registration needed. URLs are deterministic.
URL Format:
https://gitmcp.io/{owner}/{repo}
| Parameter | Required | Description |
|---|---|---|
repo | Yes | GitHub repo URL, owner/repo format, or just repo name |
Accepted input formats:
https://github.com/owner/repohttps://github.com/owner/repo.gitgit@github.com:owner/repo.gitowner/reporepo (will search or ask for owner)Example invocations:
IMPORTANT: Do NOT make network calls to validate repos. GitMCP URLs are deterministic and work for any public repo. Skip validation to avoid timeouts.
Extract owner and repo name from the input. This is string parsing only — no network calls.
If user provides owner/repo: Use directly.
If user provides just repo:
GITMCP_URL = "https://gitmcp.io/{owner}/{repo}"
Always use project-level config: .cursor/mcp.json
Never use user-level config (~/.cursor/mcp.json)
Read the existing .cursor/mcp.json (if exists), add the new entry:
{
"mcpServers": {
"{repo}-docs": {
"url": "https://gitmcp.io/{owner}/{repo}"
}
}
}
If file exists: Merge the new server into existing mcpServers
If file doesn't exist: Create it with proper structure
✅ GitMCP Added
Repository: {owner}/{repo}
GitMCP URL: https://gitmcp.io/{owner}/{repo}
Config: .cursor/mcp.json
Server name: {repo}-docs
Restart Cursor to load the new MCP server.
{repo}-docsvulnhuntr-docs, libbpf-docs, sigma-docs{owner}-{repo}-docsUse this table to quickly resolve repo names without network lookups:
| Repo Name | Owner | Full Path |
|---|---|---|
| vulnhuntr | protectai | protectai/vulnhuntr |
| sigma | SigmaHQ | SigmaHQ/sigma |
| pySigma | SigmaHQ | SigmaHQ/pySigma |
| libbpf | libbpf | libbpf/libbpf |
| bcc | iovisor | iovisor/bcc |
| bpftool | libbpf | libbpf/bpftool |
| cilium | cilium | cilium/cilium |
| falco | falcosecurity | falcosecurity/falco |
| ebpf | cilium | cilium/ebpf |
| tracee | aquasecurity | aquasecurity/tracee |
| Scenario | Action |
|---|---|
| Cannot parse input | Ask user for owner/repo format |
| Unknown repo name | Ask user for the owner |
| Config file malformed | Report JSON error, don't modify |
| Server name exists | Use {owner}-{repo}-docs instead |
.cursor/mcp.json, never user-level