mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-28 02:10:38 +02:00
Update docs/servers/server.mdx(Fix "FastMCP Constructor Parameters")
Fix description of "FastMCP Constructor Parameters": Remove parameters `on_duplicate_tools`, `on_duplicate_resources` and `on_duplicate_prompts`, which are no longer accepted by FastMCP(). Add the new parameter `on_duplicate` and its description.
This commit is contained in:
parent
c96c0400f3
commit
9344224452
1 changed files with 2 additions and 10 deletions
|
|
@ -76,16 +76,8 @@ The `FastMCP` constructor accepts several configuration options. The most common
|
|||
Hide components with any matching tag
|
||||
</ParamField>
|
||||
|
||||
<ParamField body="on_duplicate_tools" type='Literal["error", "warn", "replace"]' default="error">
|
||||
How to handle duplicate tool registrations
|
||||
</ParamField>
|
||||
|
||||
<ParamField body="on_duplicate_resources" type='Literal["error", "warn", "replace"]' default="warn">
|
||||
How to handle duplicate resource registrations
|
||||
</ParamField>
|
||||
|
||||
<ParamField body="on_duplicate_prompts" type='Literal["error", "warn", "replace"]' default="replace">
|
||||
How to handle duplicate prompt registrations
|
||||
<ParamField body="on_duplicate" type='Literal["warn", "error", "replace", "ignore"]' default="warn">
|
||||
How to handle duplicate component registrations
|
||||
</ParamField>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue