Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Update docs/servers/server.mdx(Fix "FastMCP Constructor Parameters")

Wang Yiyang9344224452b4
diff --git a/docs/servers/server.mdx b/docs/servers/server.mdx
index e3624ea4f..fe1b38541 100644
--- a/docs/servers/server.mdx
+++ b/docs/servers/server.mdx
@@ -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>