Logo von GPT Repo MCP

GPT Repo MCP

Community
CAHN91

GPT Repo MCP gives ChatGPT direct context from approved local repos, then lets it write files, update code, prepare plans, review diffs, and carry context into the next chat.

HerausgeberCAHN91
Repositorygpt-repo-mcp
SpracheTypeScript
Forks
23
Sterne
99
Verfügbare Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Links
  • Tools mit KI-Workflows verbinden

    GPT Repo MCP stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • Verfügbare Tools: 0

    Unten finden Sie die aufrufbaren Aktionen. Namen und Beschreibungen werden angezeigt, sofern der Server sie bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    Kennzahlen des verlinkten Repositorys: Sterne (99) und Forks (23).

GPT Repo MCP

Let ChatGPT work from your repo — safely.

CI Node.js >=20 License: MIT Writes opt-in

GPT Repo MCP connects ChatGPT to approved local repositories through a focused, policy-controlled toolset. ChatGPT can understand a codebase, edit multiple files, run approved checks, diagnose failures, review the real Git diff, and prepare a local commit — while you stay in the normal ChatGPT conversation.

Your files remain in the workspace you approved. You choose whether each repository is read-only, writable, or ready for reviewed local commit work.

GPT Repo MCP is a tool-only MCP server. It does not add a custom interface to ChatGPT and is not affiliated with OpenAI, ChatGPT, Anthropic, or the Model Context Protocol maintainers.

What Becomes Possible

Your goalWhat ChatGPT can do
Understand an unfamiliar projectMap the structure, search code, read relevant files, and trace dependencies
Build a feature or applicationPlan and apply cohesive edits across one or many files in an approved repository
Fix a failing implementationRun approved tests, builds, linting, type checks, or smoke checks and use the evidence to correct the code
Review work before it shipsInspect current file bytes and the real Git diff, identify risks, and verify what remains
Finish a local change safelyValidate, review, stage, recover, or create a local commit when the repository policy allows it
Continue in a later conversationPreserve bounded local context, decisions, risks, touched files, and next steps

ChatGPT chooses a workflow that fits your request. GPT Repo MCP independently enforces repository access, path boundaries, write policy, secret checks, validation profiles, stale-state guards, and allowed Git operations.

Explore the capability guide · Review the security model · See the tools and workflows

From Request To Reviewed Result

text
You ask in ChatGPT
        ↓
Understand → Edit → Validate → Review → Local commit
        ↓
Approved local repository

A question may need only search and reading. An implementation can continue through multi-file editing, approved validation, review, and local commit preparation. ChatGPT receives tool descriptions, schemas, safety annotations, and structured results that help it select the next appropriate action.

The model guides the work; the server enforces the boundary. No prompt can turn the server into unrestricted filesystem access, arbitrary shell execution, automatic push, or automatic deployment.

Quickstart

1. Install

bash
git clone https://github.com/CAHN91/gpt-repo-mcp.git
cd gpt-repo-mcp
npm install
npm run build
cp config.example.json config.local.json

The copied starter config is valid and empty.

2. Approve a repository

bash
npm run add -- /path/to/your/repo

In an interactive terminal, choose read, write, or ship. For predictable setup in scripts or CI-like terminals, provide an explicit read, write, or ship mode:

bash
npm run add -- /path/to/your/repo --mode read
npm run add -- /path/to/your/repo --mode write
npm run add -- /path/to/your/repo --mode ship

The general command form is npm run add -- <path> --mode <mode>.

3. Connect ChatGPT

bash
npm run connect

Copy the printed MCP URL into ChatGPT Developer Mode connector settings, start a new chat, select the connector, and ask:

text
Use GPT Repo MCP. Which repositories can you access?

New to ngrok? Follow Install ngrok from zero. For the OpenAI Secure MCP Tunnel, use npm run connect:secure and follow the connection guide.

Permission Modes

ModeBest forAvailable outcome
readExploration, architecture review, and cautious first useSearch, read, understand, and review repository state
writeDaily implementationRead capabilities plus policy-checked single- and multi-file edits
shipReviewed local completionWrite capabilities plus approved validation, recovery, staging, and local commits

No mode enables push, pull, reset, checkout, switch, rebase, merge, stash, force operations, branch deletion, shell execution, or arbitrary commands.

Try It In ChatGPT

text
Give me a project brief for <repo_id>. Explain the architecture and likely entry points.
text
Implement this feature in <repo_id>. Update every affected file, run the approved checks, and review the final diff.
text
Diagnose the failing tests in <repo_id>, fix the underlying issue, and verify the result.
text
Review the current Git changes in <repo_id>. Tell me what is ready, what is risky, and what still needs work.
text
Prepare this completed change for a local commit, but do not push or deploy anything.

More examples and resulting workflows are available in the capability guide.

How ChatGPT Works

You describe the outcome in normal language. ChatGPT then chooses the smallest safe workflow that fits the request:

  1. Understand — inspect the project structure and read relevant files.
  2. Change — edit one file or a coherent set of files when writes are enabled.
  3. Validate — run only checks that the repository has approved.
  4. Review — inspect the real Git diff, validation evidence, and remaining risk.
  5. Finish or recover — prepare a reviewed local commit, or safely reverse the affected paths.

Simple questions can stop after reading. Implementation requests can continue through the whole loop. Specialist tools for transactional patchsets, work continuity, or reviewing externally executed agent work are used only when the task benefits from them.

You normally do not need to select tools by name. The connector describes each tool to ChatGPT, and the server checks every request independently. See Tools and workflows when you want to understand the available tool groups or ask ChatGPT to use a specific capability.

Safety By Design

  • Only explicitly approved repository roots are accessible.
  • Every path is repo-relative and sandboxed against traversal and symlink escapes.
  • Writes are disabled until the repository opts in.
  • File changes are checked against allowed paths, denied paths, size limits, stale-state guards, and secret patterns.
  • Validation uses configured profiles instead of arbitrary commands.
  • Git mutations operate on explicit paths and current reviewed state.
  • Push and deployment remain outside the server.

For the full boundary, threat model, and approval behavior, read Security.

Common Commands

CommandPurpose
npm run add -- <path>Approve a repository and choose a permission mode
npm run add -- <path> --mode <mode>Add a repository with an explicit read, write, or ship mode
npm run listList approved repositories
npm run remove -- <repo_id>Remove an approved repository
npm run doctorCheck configuration, scripts, tunnel state, port use, and Git state
npm run connectStart the server and built-in ngrok connection flow
npm run connect:secureStart the server with the OpenAI Secure MCP Tunnel
npm run check:configValidate local configuration

Documentation

Using GPT Repo MCP

GuideWhen you need...
Capability guideA user-oriented explanation of what ChatGPT can accomplish
SetupInstallation and local configuration
ChatGPT connectionConnector setup inside ChatGPT
Connection optionsngrok, Cloudflare, secure tunnel, and manual alternatives
Write workflowsEditing, validation, review, recovery, and local commits
Tools and workflowsWhat each tool group enables and when ChatGPT uses it
Security modelWhat is protected, what leaves your machine, and what remains your responsibility
Error referenceStable error codes and what they mean
External-agent protocolAdvanced review workflow when you separately operate an implementation agent
Migration guideMoving from 0.1.x to 0.2.0

Contributing And Extending

See Product principles, Architecture, Contributing, Quality, the technical terminology, and the release checklist.

Requirements

  • Node.js 20 or newer
  • npm
  • Git
  • An HTTPS tunnel such as ngrok, or the supported secure tunnel flow
  • ChatGPT with Developer Mode access

Troubleshooting

  • Unknown repository: run npm run list and confirm the repo_id.
  • Write blocked: ask ChatGPT to use repo_policy_explain for the repository and path.
  • Connector URL changed: restart the connection and update ChatGPT with the new URL.
  • Tunnel returns 502: confirm the local server is running, check /health, and restart the tunnel.
  • Tool schema looks stale: refresh the connector and start a new ChatGPT conversation.

For detailed diagnostics, see Setup and Approval troubleshooting.

License

MIT. See LICENSE.

Installation

TypingMind
{
  "mcpServers": {
    "gpt-repo-mcp": {
      "command": "npm",
      "args": [
        "run",
        "mcp"
      ],
      "env": {
        "GPT_REPO_CONFIG": "<GPT_REPO_CONFIG>",
        "PORT": "<PORT>"
      }
    }
  }
}

GPT Repo MCP MCP mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald GPT Repo MCP verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor einrichten“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Einstellungen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor einrichten“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie „Terminal“ (macOS) bzw. „Windows Terminal“ (Windows).
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

GPT Repo MCP als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server bearbeiten“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server bearbeiten“.
  3. Fügen Sie die MCP-Server-Konfiguration für GPT Repo MCP ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server bearbeiten“
{
  "mcpServers": {
    "gpt-repo-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "gpt-repo-mcp"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von GPT Repo MCP. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von GPT Repo MCP.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit GPT Repo MCP bei dieser Aufgabe helfen?
GPT Repo MCP
Gerne. Ich habe es gelesen.
Das habe ich mit GPT Repo MCP gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server GPT Repo MCP verwendet?

GPT Repo MCP ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich den MCP-Server GPT Repo MCP mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie GPT Repo MCP mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum den MCP-Server GPT Repo MCP mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald GPT Repo MCP verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich den MCP-Server GPT Repo MCP mit TypingMind?

GPT Repo MCP wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt der MCP-Server GPT Repo MCP in TypingMind bereit?

GPT Repo MCP stellt MCP-Funktionen bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um den MCP-Server GPT Repo MCP zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal. Sie wählen Ihre Modellanbieter selbst und behalten die Kontrolle über Ihre API-Schlüssel, Prompts und MCP-Konfiguration. Falls GPT Repo MCP eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇