From 2ab8beb195a743f2a1cd02efd4a27c563305c19e Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Mon, 2 Mar 2026 16:36:24 -0500 Subject: [PATCH] Remove system role references from docs (#3356) The MCP spec only supports "user" and "assistant" roles for prompt messages. Fixes #3160. Co-authored-by: Marvin Context Protocol <41898282+Marvin Context Protocol@users.noreply.github.com> Co-authored-by: Jeremiah Lowin --- docs/clients/prompts.mdx | 6 +++--- docs/servers/transforms/prompts-as-tools.mdx | 2 +- docs/v2/clients/prompts.mdx | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/clients/prompts.mdx b/docs/clients/prompts.mdx index 2bf8c3c19..bb50d475f 100644 --- a/docs/clients/prompts.mdx +++ b/docs/clients/prompts.mdx @@ -90,9 +90,9 @@ async with client: "expertise": "python programming" }) - # Typically returns messages with role="system" - system_message = result.messages[0] - print(f"System prompt: {system_message.content}") + # Access the returned messages + message = result.messages[0] + print(f"Prompt: {message.content}") ``` Conversation templates generate multi-turn flows: diff --git a/docs/servers/transforms/prompts-as-tools.mdx b/docs/servers/transforms/prompts-as-tools.mdx index f0b499fc8..b68c0891d 100644 --- a/docs/servers/transforms/prompts-as-tools.mdx +++ b/docs/servers/transforms/prompts-as-tools.mdx @@ -116,7 +116,7 @@ result = await client.call_tool( ## Message Format Rendered prompts return a messages array following the standard MCP format. Each message includes: -- `role`: The message role (typically "user", "assistant", or "system") +- `role`: The message role ("user" or "assistant") - `content`: The message text content Multi-message prompts are supported - the array will contain all messages in order. diff --git a/docs/v2/clients/prompts.mdx b/docs/v2/clients/prompts.mdx index a6d6e155b..291503f7b 100644 --- a/docs/v2/clients/prompts.mdx +++ b/docs/v2/clients/prompts.mdx @@ -190,9 +190,9 @@ async with client: "expertise": "python programming" }) - # Typically returns messages with role="system" - system_message = result.messages[0] - print(f"System prompt: {system_message.content}") + # Access the returned messages + message = result.messages[0] + print(f"Prompt: {message.content}") ``` ### Conversation Templates