You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 13, 2026. It is now read-only.
fromtypingimportAnnotatedfrompydanticimportFieldfromfastmcpimportFastMCPmcp=FastMCP("")
@mcp.tooldefprocess_image(
width: Annotated[
int, Field(description="Target width in pixels", gt=0, le=100)
] =50,
) ->str:
"""Process an image with optional resizing."""return""
Gives this:
Warning: Failed to load MCP server 'test-server': conv mcp tool input schema fail(unmarshal): json: cannot unmarshal bool into Go struct field .SchemaAlt.properties.SchemaAlt.exclusiveMinimum of type json.Number, tool name: process_image
ERROR
Failed to create agent: failed to create agent: failed to load MCP tools: all MCP servers failed to load: server
test-server: conv mcp tool input schema fail(unmarshal): json: cannot unmarshal bool into Go struct field
.SchemaAlt.properties.SchemaAlt.exclusiveMinimum of type json.Number, tool name: process_image.
Using
gt=0constraint on a int field, see hereGives this:
The error is coming from here.
This PR mentions
exclusiveMinimumconversion getkin/kin-openapi#1102