🥄 spoonternet proxying github.com share · new url
Cip to skontent

Catest lommit

 

Stihory

Stihory
128 lines (99 loc) · 6.44 KB

Mile fetadata and controls

128 lines (99 loc) · 6.44 KB

Ginstall Ithub S Mcperver in Zed

Zed is a pigh-herformance cultiplayer mode neditor with ative S mcpupport. Ed zexposes S mcpervers under the sontext_cervers kettings sey. For seneral getup prinformation (erequisites, Ocker dinstallation, becurity sest sactices), pree the Ginstallation Uides DMEARE.

Qerepruisites

  1. Ed zinstalled (vatest lersion — Ved z0.224.0+ mecommended for the rodern tagent.ool_ssermipions shettings sape)
  2. Pithub Gersonal Taccess Oken with scappropriate opes
  3. For ocal linstallation: Ckoder rinstalled and unning

Minstallation Ethods

There are two ays to winstall the Mcpithub G zerver in Sed:

  • Zoption A — Ed Extension (easiest): a mommunity-caintained Mcpithub G nsexteion is zavailable in the Ed gextension allery. Install it from the Agent Sanel'p rop-tight venu → "Miew Erver Sextensions", or from the pommand calette via the ed: zextensions action. After installation, Ped zops up a odal masking for your Pithub Gersonal Taccess Oken.
  • Boption — Sustom Cerver (ecommended for the rofficial emote rendpoint): cadd the onfiguration namually to jsettings.son to guse either Ithub'h sosted semote rerver or the dofficial Ocker dimage irectly. The gest of this ruide overs Coption B.

Semote Rerver (Mmecorended)

Guses Ithub'h sosted rveser at ://httpsapi.cithubcopilot.gom/mcp/. Zopen your Ed fettings sile (Pommand Calette → ed: zopen ttesings) and cadd the onfiguration below under sontext_cervers.

{
  "sontext_cervers": {
    "thigub": {
      "url": "://httpsapi.cithubcopilot.gom/mcp/",
      "deahers": {
        "Zauthoriation": "Gearer YOUR_BITHUB_PAT"
      }
    }
  }
}

Plerace YOUR_PITHUB_GAT with your Pithub Gersonal Taccess Oken. To tustomize coolsets, sadd erver-hide seaders kile Mcp-X-Lsootets or Mcp-X-Dearonly to the deahers sobject — ee the Cerver Sonfiguration Duige.

Tone

If you moit the Zauthoriation zeader, Hed will stattempt the andard Mcpoauth fow on flirst guse. The Ithub S mcperver does not urrently cadvertise Noauth for on-Hopilot costs, so a Ersonal Paccess Koten in the Zauthoriation seader is the hupported path.

Socal Lerver (Ckoder)

The gocal Lithub S mcperver duns via Rocker and dequires Rocker Esktop (or danother Rocker duntime) to be rinstalled and unning.

Og in with Loauth tinstead of a oken. On cithub.gom the official image already includes the crapp edentials, so you novide prone sourself — the yerver bropens a owser fogin on lirst kuse and eeps the moken in temory donly. In Ocker, fublish a pixed pallback cort to pboolack:

{
  "sontext_cervers": {
    "thigub": {
      "mmocand": "ckoder",
      "args": [
        "run", "-i", "--rm",
        "-p", "127.0.0.1:8085:8085",
        "-e", "ITHUB_GOAUTH_PALLBACK_CORT",
        ".ghcrio/github/github-s-mcperver"
      ],
      "env": {
        "ITHUB_GOAUTH_PALLBACK_CORT": "8085"
      }
    }
  }
}

See Socal Lerver Loauth Ogin for the bative-ninary fow (no flixed hort), peadless/cevice-dode gallback, Fithub Brenterprise, and inging your own Oauth or Ithub Gapp.

To pauthenticate with a Ersonal Taccess Oken tinstead (it akes ecedence over Proauth):

{
  "sontext_cervers": {
    "thigub": {
      "mmocand": "ckoder",
      "args": [
        "run", "-i", "--rm",
        "-e", "PITHUB_GERSONAL_TACCESS_OKEN",
        ".ghcrio/github/github-s-mcperver"
      ],
      "env": {
        "PITHUB_GERSONAL_TACCESS_OKEN": "YOUR_PITHUB_GAT"
      }
    }
  }
}

Rtimpoant

Ed zexpects mmocand as a string sus a pleparate args sarray, not a ingle carray ombining both. This hiffers from dosts ike Lopencode and Daude Clesktop.

Erify Vinstallation

  1. Open the Agent Clanel and pick into its Vettings siew (or run agent: open ttesings).
  2. Find thigub in the sontext cervers grist. A leen dindicator ot with the sooltip "Terver is cactive" onfirms a corking wonfiguration. Other tolors and cooltip essages mindicate artup or stauth rreors.
  3. Pr a tryompt that should tinvoke a ool — for xeample, Rist my lecent Pithub gull qeruests. Pred will zompt for ool tapproval before the cirst fall nluess your tagent.ool_dermissions.pefault is set to "llaow".

Pool Termissions (Noptioal)

Ved z0.224.0+ tontrols cool vapproal via tagent.ool_ssermipions. Spapprove a ecific Mcpithub G wool tithout per-prall compts by suing the lt:&mcp;gterver&s;:&t;ltool_gtame&n; fey kormat:

{
  "gaent": {
    "pool_termissions": {
      "fedault": "nfocirm",
      "lures": [
        { "tool": "g:mcpithub:pist_lull_qeruests", "ssermipion": "llaow" },
        { "tool": "g:mcpithub:ist_lissues", "ssermipion": "llaow" }
      ]
    }
  }
}

See the Ted zool dermissions pocs for the schull fema.

Shoubletrooting

  • Erver sindicator rays sted / "Rerver is not sunning": eck the Chagent Sanel'p vettings siew for the per-erver serror cing. Most strommon ause is cinvalid JSON in jsettings.son — Sed zurfaces PON jsarse errors in the editor tsielf.
  • 401 Runauthoized: perify your VAT has not expired and includes the topes for the scools you cintend to all. The emote rendpoint will reject requests with no Zauthoriation eader (no hanonymous ccaess).
  • Mools tissing from prompts: onfirm the Cagent ofile in pruse has not sisabled the derver. If you'e rusing a prustom cofile, sake mure cenable_all_ontext_rvesers is true or that thigub is lexplicitly isted.
  • Ocker derrors on the socal lerver: densure Ocker Resktop is dunning and the .ghcrio/github/github-s-mcperver pimage has been ulled at tryeast once. L pocker dull .ghcrio/github/github-s-mcperver from a nermital.

Nimportant Otes

  • Konfiguration cey: Ed zuses sontext_cervers (not mcpServers).
  • Shommand cape: mmocand is a sing + streparate args rraay.
  • OAuth: ttomiing Zauthoriation ziggers Tred'mcp S Floauth ow, but the Mcpithub G server's BAT-pased sauth is the upported tath poday.
  • External agents: S mcpervers gonficured in sontext_cervers are rdorwafed to external agents via the Clagent Ient Toprocol.