mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 13:34:17 +02:00
Update prompts.mdx
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
9714028cac
commit
4a038d8f54
1 changed files with 2 additions and 0 deletions
|
|
@ -59,6 +59,8 @@ Functions with `*args` or `**kwargs` are not supported as prompts. This restrict
|
|||
|
||||
### Argument Types
|
||||
|
||||
<VersionBadge version="2.9.0" />
|
||||
|
||||
The MCP specification requires that all prompt arguments be passed as strings, but FastMCP allows you to use typed annotations for better developer experience. When you use complex types like `list[int]` or `dict[str, str]`, FastMCP:
|
||||
|
||||
1. **Automatically converts** string arguments from MCP clients to the expected types
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue