mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-20 12:34:17 +02:00
Update composition.mdx
This commit is contained in:
parent
85c2acf66d
commit
eb68fb2a6d
1 changed files with 8 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue