Skip to content

Cannot use access_token from GitHub App to call create_pull_request_with_copilot #1082

@adcloeshelle

Description

@adcloeshelle

Describe the bug

I am using the MCP server to create a pull request and assign it to the Copilot Coding Agent. When using a GitHub App access_token, it returns a 401 unauthorized. When using a PAT (fine-grained) from my personal account, it also returns a 401 unauthorized. When using a PAT (classic), it does work.

Affected version

Remote MCP

Steps to reproduce the behavior

  1. Generate an installation token for a GitHub app
  2. Ask Copilot to create a pull request and assign it to Copilot via the Remote MCP

Expected vs actual behavior

Expected: Pull Request is created
Actual: 401 Unauthorized received

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions