Jeremiah Lowin commited on
Commit
239377d
·
1 Parent(s): 97d16bb

Update improts

Browse files
Files changed (1) hide show
  1. docs/servers/composition.mdx +4 -2
docs/servers/composition.mdx CHANGED
@@ -208,8 +208,8 @@ This was the default format in FastMCP before 2.4. While still supported, it's n
208
  You can configure the prefix format globally in code:
209
 
210
  ```python
211
- from fastmcp import settings
212
- settings.settings.resource_prefix_format = "protocol"
213
  ```
214
 
215
  Or via environment variable:
@@ -221,6 +221,8 @@ FASTMCP_RESOURCE_PREFIX_FORMAT=protocol
221
  Or per-server:
222
 
223
  ```python
 
 
224
  # Create a server that uses legacy protocol format
225
  server = FastMCP("LegacyServer", resource_prefix_format="protocol")
226
 
 
208
  You can configure the prefix format globally in code:
209
 
210
  ```python
211
+ import fastmcp
212
+ fastmcp.settings.settings.resource_prefix_format = "protocol"
213
  ```
214
 
215
  Or via environment variable:
 
221
  Or per-server:
222
 
223
  ```python
224
+ from fastmcp import FastMCP
225
+
226
  # Create a server that uses legacy protocol format
227
  server = FastMCP("LegacyServer", resource_prefix_format="protocol")
228