Skip to content

The built in GitHub MCP Server is not loaded in -p mode #289

@williammartin

Description

@williammartin

Description

➜  sweagentd git:(main) ✗ copilot -p "show me the 10 most recent issues in cli/cli repo"
● I'll fetch the 10 most recent issues from the cli/cli repository using the GitHub CLI.

Get 10 most recent issues from cli/cli repo
   $ gh issue list --repo cli/cli --limit 10 --json number,title,state,createdAt,author --jq '.[] |
   "\(.number) | \(.state) | \(.createdAt) | @\(.author.login) | \(.title)"'
   Permission denied and could not request permission from user
● Let me try without authentication by using the API directly:

Fetch 10 most recent issues from cli/cli using GitHub API
   $ curl -s "https://api.github.com/repos/cli/cli/issues?per_page=10&sort=created&direction=desc" |
    jq -r '.[] | "#\(.number) | \(.state) | \(.created_at) | @\(.user.login) | \(.title)"'
   Permission denied and could not request permission from user
● I don't have permission to access the network or the GitHub CLI with authentication. You'll need
    to run this command yourself:

  ...snipped


Total usage est:       1 Premium request
Total duration (API):  13.8s
Total duration (wall): 16.0s
Total code changes:    0 lines added, 0 lines removed
Usage by model:
    claude-sonnet-4.5    21.1k input, 486 output, 15.4k cache read, 5.7k cache write (Est. 1 Premium request)

This should be using the MCP server. If you check the logs with --log-level all, you will see that the GitHub MCP server is not being provided at all.

Affected version

0.0.340-4 Commit: acb943f

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions