- Notifications
You must be signed in to change notification settings - Fork2.7k
Change role from "system" to "user" in prompt messages forAssignCodingAgentPrompt
andIssueToFixWorkflowPrompt
#897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
…ingAgentPrompt` and `IssueToFixWorkflowPrompt`. Role "system" is not allowed by Claude Code in MCP provided prompt (allowed only role "user" and "assistant")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Pull Request Overview
This PR fixes a compatibility issue with Claude Code in MCP by changing the role from "system" to "user" in prompt messages for two GitHub MCP server features.
- Changes the role field from "system" to "user" in
AssignCodingAgentPrompt
andIssueToFixWorkflowPrompt
- Enables Claude Code compatibility without affecting functionality
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
File | Description |
---|---|
pkg/github/workflow_prompts.go | Updates role from "system" to "user" in IssueToFixWorkflowPrompt |
pkg/github/issues.go | Updates role from "system" to "user" in AssignCodingAgentPrompt |
Tip: Customize your code reviews with copilot-instructions.md.Create the file orlearn how to get started.
Issue Description
Role "system" is not allowed by Claude Code in MCP provided prompts (they allow only role "user" and "assistant").

In Claude Code terminal, when user try to use
/gh:AssignCodingAgent (MCP)
or/gh:IssueToFixWorkflow (MCP)
provided by Github MCP server, they will face the below error:Solution
Simply change the role from "system" to "user" fix this issue without impacting the functionality of the features:

/gh:AssignCodingAgent
and/gh:IssueToFixWorkflow
.Claude Code now accept the prompt from Github MCP server and proceed as expected.
Remark:
I couldn't find any existing issue on Github Repo for this yet. If an issue is required to merge this changes. Let me know i will create a new one.