Spaces:
Running
Running
Jeremiah Lowin commited on
Commit ·
97d16bb
1
Parent(s): b45adb7
Update composition.mdx
Browse files
docs/servers/composition.mdx
CHANGED
|
@@ -205,11 +205,17 @@ This was the default format in FastMCP before 2.4. While still supported, it's n
|
|
| 205 |
|
| 206 |
### Configuring the Prefix Format
|
| 207 |
|
| 208 |
-
You can configure the prefix format globally:
|
| 209 |
|
| 210 |
```python
|
| 211 |
from fastmcp import settings
|
| 212 |
-
settings.settings.resource_prefix_format = "protocol"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 213 |
```
|
| 214 |
|
| 215 |
Or per-server:
|
|
|
|
| 205 |
|
| 206 |
### Configuring the Prefix Format
|
| 207 |
|
| 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:
|
| 216 |
+
|
| 217 |
+
```bash
|
| 218 |
+
FASTMCP_RESOURCE_PREFIX_FORMAT=protocol
|
| 219 |
```
|
| 220 |
|
| 221 |
Or per-server:
|