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

`assign_copilot_to_issue` fails with GraphQL schema error: `agentAssignment` field not defined on `UpdateIssueInput`

Open C-Ross opened this issue 10 months ago • 6 comments

Describe the bug

The assign_copilot_to_issue tool fails with a GraphQL schema validation error when attempting to assign Copilot to an issue. The error indicates that the agentAssignment field is not defined on the UpdateIssueInput type.

Affected version

Using the MCP server integrated with VS Code Copilot (remote MCP).

Steps to reproduce the behavior

  1. Enable the GitHub MCP server in VS Code
  2. Create an issue in a repository that has Copilot coding agent enabled
  3. Attempt to assign Copilot to the issue using the assign_copilot_to_issue tool with valid owner, repo, and issue_number parameters

Expected vs actual behavior

Expected: Copilot should be assigned to the issue.

Actual: The tool returns an error:

failed to update issue with agent assignment: Variable $input of type UpdateIssueInput! was provided invalid value for agentAssignment (Field is not defined on UpdateIssueInput)

Logs

ERROR while calling tool: MPC 0: failed to update issue with agent assignment: Variable $input of type UpdateIssueInput! was provided invalid value for agentAssignment (Field is not defined on UpdateIssueInput)

Created with GitHub Copilot. This issue was written with AI assistance.

C-Ross avatar Jan 13 '26 16:01 C-Ross

https://github.com/github/github-mcp-server/pull/1779 This is the code that introduced it, and this is the documentation: https://github.blog/changelog/2025-12-03-assign-issues-to-copilot-using-the-api/ are you perhaps opted out of some behaviour that would prevent this explicitly?

SamMorrowDrums avatar Jan 13 '26 17:01 SamMorrowDrums

I can reporoduce though Error: MPC 0: failed to update issue with agent assignment: Variable $input of type UpdateIssueInput! was provided invalid value for agentAssignment (Field is not defined on UpdateIssueInput)

So I need to investigate.

SamMorrowDrums avatar Jan 13 '26 17:01 SamMorrowDrums

👋 @C-Ross Did this happen to be from a personal, non-staff account?

TylerDixon avatar Jan 13 '26 18:01 TylerDixon

@TylerDixon No, this is my primary staff enabled account (frankly I don't have any others). I was actively using the same account to interact with GitHub repos and used the same account to successfully assign copilot from the UI.

C-Ross avatar Jan 13 '26 18:01 C-Ross

We confirmed that this is isolated to the remote server, due to a minor difference in the GraphQL http roundtripper that means the required feature flag is not being set on the remote server only. A fix is ready and will be deployed once reviewed.

SamMorrowDrums avatar Jan 13 '26 22:01 SamMorrowDrums

All working, thanks for report!

SamMorrowDrums avatar Jan 14 '26 11:01 SamMorrowDrums