We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 480ae29 commit fa1bfcfCopy full SHA for fa1bfcf
src/mcp/server/auth/json_response.py
@@ -4,5 +4,7 @@
4
5
6
class PydanticJSONResponse(JSONResponse):
7
+ # use pydantic json serialization instead of the stock `json.dumps`,
8
+ # so that we can handle serializing pydantic models like AnyHttpUrl
9
def render(self, content: Any) -> bytes:
10
return content.model_dump_json(exclude_none=True).encode("utf-8")
0 commit comments