copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Ability to define which tools are available for included GitHub-MCP-Server

Open owenniblock opened this issue 2 months ago • 0 comments

Describe the feature or problem you'd like to solve

I want to use the copilot-cli for reporting and updating projects

Proposed solution

We could leverage the existing --allow-tool parameters to enable different MCP Tools in the GitHub MCP Server when the CLI is started.

e.g.

$ copilot --allow-tool 'github-mcp-server(list_projects)'

As a workaround, right now I'm adding an additional MCP Server for projects tools:

{
  "mcpServers": {
    "GitHub-Project-MCP": {
      "type": "http",
      "url": "https://api.githubcopilot.com/mcp/x/projects",
      "headers": {
        "Authorization": "Bearer token"
      },
      "tools": [
        "*"
      ]
    }
  }
}

Example prompts or workflows

No response

Additional context

No response

owenniblock avatar Oct 28 '25 10:10 owenniblock