Skip to content

[Bug] GitHub MCP tools not fully activated in Copilot SDK with --enable-all-github-mcp-tools #128

@jimmy-grande

Description

@jimmy-grande

Problem

When initializing the SDK and activating all GitHub MCP tools using the following configuration:

const client = new CopilotClient({
      useStdio: true,
      logLevel: "all",
      autoStart: true,
      cliArgs: [
        "--enable-all-github-mcp-tools",
      ],
    });

and sending:

await session.send({
  prompt: "I have activated all github mcp tools. List Copilot Spaces",
});

the LLM responds:

I don't have access to Copilot Spaces through the gh CLI. The MCP tools you mentioned are not available in my current toolset - I only have access to file system tools, bash, grep, and web fetch.

To list Copilot Spaces, you would need to either:

  1. Use the GitHub MCP server with a client that supports it (like VS Code with the GitHub Copilot extension)
  2. Use the GitHub API directly if you have the appropriate endpoint and token

Could you clarify which MCP tools you've activated and how you'd like me to access them?

FYI:
If I run copilot --enable-all-github-mcp-tools in another shell and ask the same question, it works as expected.

Expected behavior

Activating all GitHub MCP tools in the SDK client (as above) should enable access to Copilot Spaces and all other MCP tools, consistent with the behavior observed when running copilot --enable-all-github-mcp-tools in a shell.

Actual behavior

The only available tools are file system tools, bash, grep, and web fetch. Access to Copilot Spaces and other MCP tools is missing.

Steps to Reproduce

  1. Initialize the CopilotClient as above with --enable-all-github-mcp-tools.
  2. Send a prompt intended to access Copilot Spaces.
  3. Observe LLM's response; Copilot Spaces tools are missing.

Additional Context

  • The same setup works when using the CLI in a separate shell.
  • SDK Version: 0.1.15
  • Copilot CLI Version: 0.0.392
  • Platform/OS: macOS 26.2

Is there a difference in how tool activation works between the SDK and the standalone CLI? How can I achieve MCP tool parity in the SDK?

Metadata

Metadata

Assignees

Labels

bugsdk/nodejstaskHow We Work work item type: 1 day or less long effort.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions