mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-23 05:54:19 +02:00
Improve code-mode docs formatting; add docs formatting guideline
This commit is contained in:
parent
75d6e2fc10
commit
0afd990ee6
1 changed files with 5 additions and 5 deletions
|
|
@ -145,11 +145,11 @@ The default `MontySandboxProvider` can enforce execution limits on sandboxed cod
|
|||
```python
|
||||
from fastmcp.experimental.transforms import CodeMode, MontySandboxProvider
|
||||
|
||||
mcp.add_transform(CodeMode(
|
||||
sandbox_provider=MontySandboxProvider(
|
||||
limits={"max_duration_secs": 10, "max_memory": 50_000_000},
|
||||
),
|
||||
))
|
||||
sandbox = MontySandboxProvider(
|
||||
limits={"max_duration_secs": 10, "max_memory": 50_000_000},
|
||||
)
|
||||
|
||||
mcp = FastMCP("Server", transforms=[CodeMode(sandbox_provider=sandbox)])
|
||||
```
|
||||
|
||||
All keys are optional — omit any to leave that dimension uncapped:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue