Skip to content

Copilot/Agent Host: built-in github-mcp-server fails to start under sandbox network rules with no UI feedback #349365

Open

Description

Environment

Version: 1.147.0 (Universal)
Commit: 8a14f0cc1b08d531eb83255ea3764ae22aa932b5
Date: 2026-11-17T02:46:11Z
Electron: 43.8.9
ElectronBuildId: 16012121
Chromium: 150.0.7871.250
Node.js: 24.22.1
V8: 15.0.245.31-electron.0
@github/copilot: 1.0.111-0
@github/copilot-sdk: 1.0.33-preview.0
OS: Darwin arm64 25.6.0

Relevant Settings

chat.agent.sandbox.network.allowNetwork: true (default)
chat.agent.sandbox.network.allowLocalNetwork: false (default)
chat.agent.sandbox.network.allowedDomains: including github.com, api.github.com and raw.githubusercontent.com, but not api.githubcopilot.com
chat.agent.sandbox.network.deniedDomains: []

Summary

Two related problems:

  1. When the built-in github-mcp-server fails to start because of sandbox network host rules, the failure goes to the log only. Nothing in the session UI tells the user that the server failed or why.

  2. With the sandbox enabled the built-in server is blocked. Given this is a built-in server, I would expect it to be in the default allowlist.

Steps to Reproduce

  1. Enable the agent sandbox with chat.agent.sandbox.enabled.
  2. Set chat.agent.sandbox.network.allowedDomains to a custom list.
  3. Start an chat session using the copilot harness asking for something from github. The agent host tries to start the built-in github-mcp-server.
  4. Look in the session UI, then in the agent host log.

Actual behaviour

  • The session UI shows nothing. There's no warning, no error badge, and no per-server status. The GitHub tools are silently absent.
  • The Agent Host output log shows:
[info]    [Copilot:<session-id>] Starting MCP server 'github-mcp-server' (state=stopped)
[warning] [AgentSideEffects] startMcpServer failed for ahp-session:/<id> Request session.mcp.startServer failed with message: MCP server 'github-mcp-server': sandbox network host rules deny this destination
[error]   [Copilot:<session-id>] MCP server 'github-mcp-server' failed (error): MCP server 'github-mcp-server': sandbox network host rules deny this destination {"mcpEvent":"statusChanged","mcpServer":"github-mcp-server","mcpStatus":"failed","mcpState":"error","errorType":"mcp-server-failed"}
[info]    [Copilot:<session-id>] MCP server 'github-mcp-server' not_configured (stopped) {"mcpEvent":"inventory","mcpServer":"github-mcp-server","mcpStatus":"not_configured","mcpState":"stopped","mcpSource":"builtin"}
  • The error message doesn't name the blocked host, so the user can't tell what to allow.
  • The server ends in not_configured (stopped), which reads as "never set up", not "blocked by the network sandbox".

Expected behaviour

  • A failed MCP startup should be shown in the session or Customizations UI.
  • Ideally, it should explain the host that was denied and provide the user to add that host to their allowedDomains.
  • A built-in, first-party server shouldn't depend on the user hand-editing allowedDomains. The defaults should ship with the relevant server added unless the user overrides it.
  • The final status should show the failure, not not_configured.

Workaround

The user adds *.githubcopilot.com to their allowedDomains setting.

Related issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions