Skip to content

Use a valid role for prompts: assistant instead of system #887

@victorRadu

Description

@victorRadu

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:

  1. Check the specs https://modelcontextprotocol.io/specification/2025-06-18/server/prompts#promptmessage.
  2. Check the response of the Prompts, they claim: role: system

Path 2:

  1. Launch the MCPInspector (https://github.com/modelcontextprotocol/inspector)
  2. List Prompts
  3. Try to get any prompt
  4. 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

No one assigned

    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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy