-
Notifications
You must be signed in to change notification settings - Fork 806
Description
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
ghCLI. 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:
- Use the GitHub MCP server with a client that supports it (like VS Code with the GitHub Copilot extension)
- 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
- Initialize the CopilotClient as above with
--enable-all-github-mcp-tools. - Send a prompt intended to access Copilot Spaces.
- 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?