Skip to content

Commit 25c6d20

Browse files
author
shiraayal-tadata
committed
fix issue 66 - ascii for json dumps to support chinese
1 parent bbb7528 commit 25c6d20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastapi_mcp/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ async def _execute_api_tool(
259259
# TODO: Better typing for the AsyncClientProtocol. It should return a ResponseProtocol that has a json() method that returns a dict/list/etc.
260260
try:
261261
result = response.json()
262-
result_text = json.dumps(result, indent=2)
262+
result_text = json.dumps(result, indent=2, ensure_ascii=False)
263263
except json.JSONDecodeError:
264264
if hasattr(response, "text"):
265265
result_text = response.text

0 commit comments

Comments
 (0)