Skip to content

Parsing MCP response from request to server when using OpenAPI spec #195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
joostsijm opened this issue Apr 17, 2025 · 0 comments
Open

Comments

@joostsijm
Copy link

joostsijm commented Apr 17, 2025

Thanks for this nice project! I am trying out a FastMCP using from_openapi and made a connection through VS Copilot. But when an MCP action is executed, I receive an error of the following kind. I am looking for advice how to start debug this exception, does this relates to an issue in my OpenAPI spec? I run the server with sse as transport option.

Error: tool parameters do not match JSON schema: /properties/kind/enum must NOT have duplicate items

In the MCP inspector, when I call an endpoint, I receive the following error.

MCP error 0: 2 validation errors for ReadResourceResult contents.0.TextResourceContents
Input should be a valid dictionary or instance of TextResourceContents [type=model_type, input_value=None, input_type=NoneType] 
For further information visit https://errors.pydantic.dev/2.11/v/model_type contents.0.BlobResourceContents
Input should be a valid dictionary or instance of BlobResourceContents [type=model_type, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.11/v/model_type

This uses version 2.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant