@ivotoby/openapi-mcp-server { "mcpServers": { "openapi": { "command": "npx", "args": [ "-y", "@ivotoby/openapi-mcp-server" ], "env": { "API_BASE_URL": "https://petstore3.swagger.io/api/v3", "OPENAPI_SPEC_PATH": "https://petstore3.swagger.io/api/v3/openapi.json", "API_HEADERS": "Authorization:Bearer token123,X-API-Key:your-api-key" } } } }
Bug description com.azure.core.exception.HttpResponseException: Status code 400, "{ "error": { "message": "Invalid schema for function 'findPetsByTags': In context=('properties', 'tags'), array schema missing items.", "type": "invalid_request_error", "param": "tools[3].function.parameters", "code": "invalid_function_parameters" } }"
Comment From: zhuxj1030
Same problem
Comment From: csterwa
@zhoujh001 Can you please provide more details on the steps to reproduce? It seems like you are connecting to public Pet Store Swagger API and then you are making a call using a model interaction that tries to execute findPetsByTags
API route? Is that correct? It seems like this is an issue on the @ivotoby/openapi-mcp-server
and sending the tags
as an array during that model interaction? And it seems that the MCP server is being connected to from a Spring AI based MCP client, am I correct on this assumption, as well?
Any more details on the specific steps you followed to get this error would be useful.