Insiders Feedback: PRECISE file patching and multiple toolsets in the URL

Ouverte
#3,567 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 2 jours

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
github, go

Piste de recherche

Start by locating the server-side implementations of create_or_update_file and push_files, then trace how remote-connector URLs parse toolset and header options. The issue does not identify files or tests, so scope the patch format, blob-SHA conflict handling, and URL syntax before implementation. Done means a requested exact or unified diff applies safely against the specified blob and conflicting changes are rejected, while the URL can select a bounded set of toolsets.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

Version: Insiders

Feature: PATCHES ; CUSTOM HEADERS

Feedback:

Two things from daily use through a remote connector:

  1. Precise patching Right now changing one line means pushing the whole file back through create_or_update_file / push_files. For a 200KB doc that's a lot of tokens to add a comma, and a long rewrite through a model is an easy way to corrupt the file. Try add one line to ~MB .ts file. A patch tool would fix it: either old/new string replacement (must match exactly once) or a unified diff, applied server-side against a given blob SHA, rejected on conflict.

  2. Toolset selection in the remote URL The default toolset is too weak, and x/all is too big xd
    every tool schema eats context on each request. I'd like to pick a few toolsets in the URL itself (e.g repos + pull_requests + actions), remote connector config can't set custom headers.

Win & Win situation: a one-line edit to a large file costs roughly the size of the diff, and one connector URL exposes selection of tools instead of all of them.
LESS BANDWIDTH MORE EFFICIENCY

Langage dominant
Go
Étoiles
34.2k
Forks
5.3k
Merge moyen
5 j 18 h
PR mergées (30 j)
13

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de github/github-mcp-server

Toutes les issues de github/github-mcp-server

Issues similaires

Plus d'issues Go

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.