Skip to content

MCP Server not available in Copilot Session #5208

Open

Description

@LukasMetzger

Describe the bug

When an issue is assigned to the agent, MCP tool discovery completes successfully. However, when the agent attempts to use the MCP server defined in its configuration, it reports that the server is not accessible.

The MCP server is configured in the repository under Copilot → MCP Servers using the following configuration:

{
	"mcpServers": {
		"<mcpName>": {
			"type": "http",
			"url": "https://<url>/mcp",
			"headers": {
				"Authorization": "Bearer <Token>"
			},
			"tools": ["*"]
		}
	}
}

The configuration has been validated, as access to the MCP server works successfully from both VS Code and GitHub Codespaces. The issue appears to be specific to Copilot agent execution.

Affected version

2.102.0

Steps to reproduce the behavior

  1. Assing an issue to a generic or custom agent, that needs the access to a MCP
  2. Tool discovery works
  3. Agent outputs: MCP server not available in this session

Expected behavior

The agent should be able to access the discovered tools

Additional context

  • Windows
  • GitHub CLI version 2.102.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions