-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Prompts return role: system. This is not valid according to the current MCP spec:
https://modelcontextprotocol.io/specification/2025-06-18/server/prompts#promptmessage.
This causes for example the MCP inspector to throw an error
Affected version
GitHub MCP Server
Version: v0.11.0
Commit: 8aa3379
Build Date: 2025-08-08T14:34:15Z
Steps to reproduce the behavior
Path 1:
- Check the specs https://modelcontextprotocol.io/specification/2025-06-18/server/prompts#promptmessage.
- Check the response of the Prompts, they claim: role: system
Path 2:
- Launch the MCPInspector (https://github.com/modelcontextprotocol/inspector)
- List Prompts
- Try to get any prompt
- Error response: [ { "received": "system", "code": "invalid_enum_value", "options": [ "user", "assistant" ], "path": [ "messages", 0, "role" ], "message": "Invalid enum value. Expected 'user' | 'assistant', received 'system'" } ]
Expected vs actual behavior
The expectation would be to have "role": "assistant"
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working