Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Fix MDX parse error: escape curly braces in upgrade guide prompts (#3227)

Jeremiah Lowin08387157bb21
diff --git a/docs/getting-started/upgrading/from-fastmcp-2.mdx b/docs/getting-started/upgrading/from-fastmcp-2.mdx
index 7c4b391d6..bed6ed7d7 100644
--- a/docs/getting-started/upgrading/from-fastmcp-2.mdx
+++ b/docs/getting-started/upgrading/from-fastmcp-2.mdx
@@ -60,7 +60,7 @@ BREAKING CHANGES (will crash at import or runtime):
4. PROMPTS: mcp.types.PromptMessage replaced by fastmcp.prompts.Message.
Before: PromptMessage(role="user", content=TextContent(type="text", text="Hello"))
After: Message("Hello") # role defaults to "user", accepts plain strings
- Also: if prompts return raw dicts like {"role": "user", "content": "..."}, these must become Message objects.
+ Also: if prompts return raw dicts like `{"role": "user", "content": "..."}`, these must become Message objects.
v2 silently coerced dicts; v3 requires typed Message objects or plain strings.
5. AUTH PROVIDERS: No longer auto-load from env vars. Pass client_id, client_secret explicitly via os.environ.
diff --git a/docs/getting-started/upgrading/from-mcp-sdk.mdx b/docs/getting-started/upgrading/from-mcp-sdk.mdx
index 4ec319baf..4d1c2ddfc 100644
--- a/docs/getting-started/upgrading/from-mcp-sdk.mdx
+++ b/docs/getting-started/upgrading/from-mcp-sdk.mdx
@@ -48,7 +48,7 @@ STEP 3 β€” PROMPTS (only if using PromptMessage directly or returning dicts):
mcp.types.PromptMessage is replaced by fastmcp.prompts.Message.
Before: `PromptMessage(role="user", content=TextContent(type="text", text="Hello"))`
After: `Message("Hello")` β€” role defaults to "user", accepts plain strings.
-Also: if prompts return raw dicts like {"role": "user", "content": "..."}, these must become Message objects or plain strings.
+Also: if prompts return raw dicts like `{"role": "user", "content": "..."}`, these must become Message objects or plain strings.
The MCP SDK's FastMCP 1.0 silently coerced dicts; standalone FastMCP requires typed returns.
STEP 4 β€” OTHER MCP IMPORTS (only if importing from mcp.* directly):