Skip to content

Content type application/json-patch+json is not supported in fastmcp version 2.14.2 #3606

@MeenakshiSachdeva

Description

@MeenakshiSachdeva

What happened?

The headers being sent in the PATCH request differ from the ones defined in the api catalog swagger.

According to the API Catalog, the expected Content-Type is:
application/json-patch+json
However, the agent is currently using:
application/json
This mismatch in Content-Type is leading to request failures.
Looks like the issue is coming from https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/utilities/openapi/director.py#L90

Example Code

Version Information

2.14.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working. Reports of errors, unexpected behavior, or broken functionality.needs MREBug reports require a copy/pastable MRE that can run as-is.openapiRelated to OpenAPI integration, parsing, or code generation features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions