github-mcp-server icon indicating copy to clipboard operation
github-mcp-server copied to clipboard

When using the 'Get Copilot Space' tool, files are found but content cannot be read

Open srouault opened this issue 1 month ago • 2 comments

Describe the bug

When the 'Get Copilot Space' mcp tool is called by the agent in vscode it gets the space, and puts the files in the context, but cannot read the content of the files

Affected version

0.13.0 (version in marketplace)

Steps to reproduce the behavior

Create a space for an organization. add files from a Github repository. Go to VSCode, use agent mode for copilot chat. Try to get information from a space, make it use the 'Get Copilot Space' tool. Note the files are found through the 'Get Copilot Space' tool. The agent responds with 'cannot read the content'. So it cannot read the content of the files that were found.

Expected vs actual behavior

I expect when the MCP tool is used, and the files are found, it can also read the content of the files.

srouault avatar Nov 05 '25 09:11 srouault

Hi 👋 I couldn't reproduce this problem. Could you attach some screenshots and also json config of GitHub MCP in VS Code?

almaleksia avatar Nov 18 '25 10:11 almaleksia

Here is a screenshot of the issue.

Image

and here is my json config:

"github": {
   "url": "https://api.githubcopilot.com/mcp/",
	"headers": {
			"X-MCP-Toolsets": "copilot,copilot_spaces",
			"X-MCP-Readonly": "true"
	},
	"type": "http"
}

srouault avatar Nov 20 '25 15:11 srouault