From eb68fb2a6da389cc7ddfaf020fc5e86104c9e602 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Wed, 21 May 2025 12:37:54 -0400 Subject: [PATCH] Update composition.mdx --- docs/servers/composition.mdx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/servers/composition.mdx b/docs/servers/composition.mdx index b17facead..605da718c 100644 --- a/docs/servers/composition.mdx +++ b/docs/servers/composition.mdx @@ -205,11 +205,17 @@ This was the default format in FastMCP before 2.4. While still supported, it's n ### Configuring the Prefix Format -You can configure the prefix format globally: +You can configure the prefix format globally in code: ```python from fastmcp import settings -settings.settings.resource_prefix_format = "protocol" # Switch to legacy format +settings.settings.resource_prefix_format = "protocol" +``` + +Or via environment variable: + +```bash +FASTMCP_RESOURCE_PREFIX_FORMAT=protocol ``` Or per-server: