Files
Aleksander Dygoń 44692d132b Give GitHub Copilot agents Computer Use and their stdio MCP servers (#8519)
* Give GitHub Copilot agents their stdio MCP servers and Computer Use

GitHub Copilot CLI in ACP mode accepts only http and sse MCP servers in
session/new and drops a stdio server with no error (github/copilot-cli#3889).
Computer Use is a stdio server, so a Copilot agent with Computer Use on had
no desktop tools, and it told the user to turn on Computer Use in Settings.

A new ACP flavor flag, relayStdioMcpServers, makes OpenBot start each stdio
server itself with startStdioMcpRelay and send it to Copilot as an http
entry. The relays end with the session. The relay now starts a Windows
.cmd server through cmd.exe and hides its window.

E2E: scripts/copilot-mcp-relay-e2e.ts (bun run test:copilot-mcp-relay).

Fixes #8427

* Name the release notes after the branch

* Wait for the Copilot MCP relays when a session or the client stops

A stop, a session close and a recovery now wait until the relays and
their stdio servers end, so an app quit leaves no server running. A
relayed server also gets the PATH and the environment of the agent's
process. The E2E test checks that the server is gone when the stop ends.

* Pass the exact optional types check in the fake Copilot agent

The fake gives the SDK client transport to the MCP client through asTransport, as the other MCP scripts do.
2026-11-12 20:39:27 +01:00
..