mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-21 13:04:18 +02:00
Update improts
This commit is contained in:
parent
eb68fb2a6d
commit
4c063bd71c
1 changed files with 4 additions and 2 deletions
|
|
@ -208,8 +208,8 @@ This was the default format in FastMCP before 2.4. While still supported, it's n
|
|||
You can configure the prefix format globally in code:
|
||||
|
||||
```python
|
||||
from fastmcp import settings
|
||||
settings.settings.resource_prefix_format = "protocol"
|
||||
import fastmcp
|
||||
fastmcp.settings.settings.resource_prefix_format = "protocol"
|
||||
```
|
||||
|
||||
Or via environment variable:
|
||||
|
|
@ -221,6 +221,8 @@ FASTMCP_RESOURCE_PREFIX_FORMAT=protocol
|
|||
Or per-server:
|
||||
|
||||
```python
|
||||
from fastmcp import FastMCP
|
||||
|
||||
# Create a server that uses legacy protocol format
|
||||
server = FastMCP("LegacyServer", resource_prefix_format="protocol")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue