Use alias when model dumping a response (#613)

This commit is contained in:
Eric Gustin 2025-10-09 16:46:45 -07:00 committed by GitHub
parent b5c68baa05
commit 3ba60fdaab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -376,7 +376,7 @@ class ServerSession:
# Send response if any
if response and self.write_stream:
if hasattr(response, "model_dump_json"):
response_data = response.model_dump_json(exclude_none=True)
response_data = response.model_dump_json(exclude_none=True, by_alias=True)
else:
response_data = json.dumps(response)

View file

@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "arcade-mcp-server"
version = "1.2.0"
version = "1.2.1"
description = "Model Context Protocol (MCP) server framework for Arcade.dev"
readme = "README.md"
authors = [{ name = "Arcade.dev" }]