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

オープン
#3,567 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github, go

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Go
スター
34.2k
フォーク
5.3k
平均マージ
5日 18時間
マージ済み PR(30日)
13

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/github-mcp-server のほかの issue

github/github-mcp-server の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。