Title: Use a valid role for prompts: assistant instead of system · Issue #887 · github/github-mcp-server · GitHub
Open Graph Title: Use a valid role for prompts: assistant instead of system · Issue #887 · github/github-mcp-server
X Title: Use a valid role for prompts: assistant instead of system · Issue #887 · github/github-mcp-server
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 ...
Open Graph 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...
X 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...
Opengraph URL: https://github.com/github/github-mcp-server/issues/887
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use a valid role for prompts: assistant instead of system","articleBody":"### Describe the bug\n\nPrompts return role: system. This is not valid according to the current MCP spec:\nhttps://modelcontextprotocol.io/specification/2025-06-18/server/prompts#promptmessage.\nThis causes for example the MCP inspector to throw an error\n\n### Affected version\n\nGitHub MCP Server\nVersion: v0.11.0\nCommit: 8aa3379feacb388289379d27b27692e91dd3c2ed\nBuild Date: 2025-08-08T14:34:15Z\n\n### Steps to reproduce the behavior\n#### Path 1:\n1. Check the specs https://modelcontextprotocol.io/specification/2025-06-18/server/prompts#promptmessage.\n2. Check the response of the Prompts, they claim: role: system\n\n#### Path 2:\n1. Launch the MCPInspector (https://github.com/modelcontextprotocol/inspector)\n2. List Prompts\n3. Try to get any prompt\n4. Error response: [ { \"received\": \"system\", \"code\": \"invalid_enum_value\", \"options\": [ \"user\", \"assistant\" ], \"path\": [ \"messages\", 0, \"role\" ], \"message\": \"Invalid enum value. Expected 'user' | 'assistant', received 'system'\" } ]\n\n### Expected vs actual behavior\n\nThe expectation would be to have \"role\": \"assistant\"\n","author":{"url":"https://github.com/victorRadu","@type":"Person","name":"victorRadu"},"datePublished":"2025-08-14T12:41:39Z","url":"https://github.com/github/github-mcp-server/issues/887"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5dcd3788-9a3f-d3e7-cd76-7354b2a50c4b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 962C:14394F:105B8A6:1690F16:6B06B23C |
| html-safe-nonce | 75c4875441347ae3997cbc2eda875add8844c25e8debc9d2990606a049df1430 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjJDOjE0Mzk0RjoxMDVCOEE2OjE2OTBGMTY6NkIwNkIyM0MiLCJ2aXNpdG9yX2lkIjoiODU2MTA0OTY1ODgyOTc0Njc0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 382db864420caea6c1221caa8a10407c75d92de80876ea2c481d179c3f0974ac |
| hovercard-subject-tag | issue:3322107829 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/887/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9ed998fdd6b26d7dbc23b12b6e3daafa850419801b4f149bb80a90b31a738251/github/github-mcp-server/issues/887 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9ed998fdd6b26d7dbc23b12b6e3daafa850419801b4f149bb80a90b31a738251/github/github-mcp-server/issues/887 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | victorRadu |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b2b1f32e21f9e529372294897d423fa443a20a3a37bafa95dec0f213469ebfc |
| turbo-cache-control | no-preview |
| go-import | github.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 942771284 |
| octolytics-dimension-repository_nwo | github/github-mcp-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 942771284 |
| octolytics-dimension-repository_network_root_nwo | github/github-mcp-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5402de66059e5821fab003de929c7056c92d863f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width