You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c8c5ea9
Browse filesBrowse the repository at this point in the historyBrowse files
/** Path to the copilot-instructions.md that received the token-goat routing block. */
200
204
readonlyinstructionsPath: string
201
-
/** `<COPILOT_HOME>/mcp-config.json`, which received the `token-goat` MCP server entry; undefined for a `--local` install, since Copilot reads MCP servers only from the user-scope file. */
205
+
/** Legacy MCP config path when the managed entry remains installed; normally absent because user-scope installs remove it. */
202
206
readonlymcpConfigPath?: string
203
-
/** True when the shim script, the hook config, the instructions block and the MCP entry were all already up to date (no write needed). */
207
+
/** True when hooks and instructions were already up to date and no legacy MCP entry needed removal. */
204
208
readonlyalreadyInstalled: boolean
205
209
}
206
210
@@ -314,7 +318,9 @@ function installCopilotCliScoped(opts: CopilotCliScopeOptions): CopilotCliInstal
314
318
// Checked before the MCP step, which is the first write and makes the Copilot home when there is none.
Copy file name to clipboardExpand all lines: src/bridges/guidance_block.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ export function buildGuidanceBody(fallbackToolClause: string, opts: GuidanceOpti
38
38
'- paging a function/file or receiving a `[tg]` range denial → stop range reads; run its exact command, `read "file" "symbol"` for a definition, `read "file" "start-end"` for a window, `skeleton file` for structure, or `grep "<pattern>" file -C 15 --symbol` for an excerpt',
39
39
'- reading a symbol plus chasing its callers and containing doc section as separate reads → `brief "file::symbol"`',
40
40
'- reading one heading of a large doc → `section "file" "Heading"`',
41
-
'- searching for a symbol\\'scallers→`refs "file::symbol" --callers`',
41
+
"- searching for a symbol's callers → `refs \"file::symbol\" --callers`",
42
42
'- searching across symbols, headings, text, and concepts concurrently → `search "<query>"`',
43
43
'- searching for a *concept* rather than a literal string → `semantic "description"`',
44
44
'- re-reading output you already captured → `bash-output`/`web-output`/`mcp-output` by ID',
Copy file name to clipboardExpand all lines: tests/install_copilot_mcp.test.ts
+67-20Lines changed: 67 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
/** `token-goat install --copilot` registers token-goat's MCP server in Copilot CLI's user MCP config, `<COPILOT_HOME>/mcp-config.json`, and `uninstall --copilot` takes it out again. Before this, the README told Copilot users to write that entry by hand, in a shape Copilot does not write itself. PROVENANCE: CAPTURE. tests/fixtures/copilot_cli_1_0_88_mcp/ holds what GitHub Copilot CLI 1.0.88 itself wrote on Windows, recorded on 2026-09-28 in an isolated COPILOT_HOME, with the console output in transcript.txt beside it: `copilot mcp add other -- echo hi`, then `copilot mcp add token-goat -- "C:/Program Files/nodejs/node.exe" C:/x/dist/token-goat.mjs mcp-serve` (mcp-config-after-add.json), then `copilot mcp remove token-goat` (mcp-config-after-remove.json). The entry token-goat writes must have the key set Copilot gives its own `token-goat` entry, and uninstalling from Copilot's after-add file must leave what Copilot's own remove left. */
1
+
/** Copilot CLI now uses native hooks instead of token-goat MCP. These tests cover removal of legacy MCP entries by the CLI installer/uninstaller and retain direct coverage of the MCP compatibility helpers. PROVENANCE: CAPTURE. tests/fixtures/copilot_cli_1_0_88_mcp/ holds what GitHub Copilot CLI 1.0.88 itself wrote on Windows, recorded on 2026-09-28 in an isolated COPILOT_HOME, with the console output in transcript.txt beside it: `copilot mcp add other -- echo hi`, then `copilot mcp add token-goat -- "C:/Program Files/nodejs/node.exe" C:/x/dist/token-goat.mjs mcp-serve` (mcp-config-after-add.json), then `copilot mcp remove token-goat` (mcp-config-after-remove.json). */
0 commit comments