{"repo":"NousResearch/hermes-agent","public_id":"10234","display_label":"MCP json.dumps ensure_ascii handling for non-ASCII results","summary":"One issue reports that Chinese MCP tool results use about three times as many tokens, attributing this to ensure_ascii being set to True in json.dumps in mcp_tool.py. The two pull requests both change ensure_ascii in MCP json.dumps calls, but one titles it as adding True and the other as False, so their intended settings appear to differ.","subsystem":null,"counts":{"members":3,"open_issues":0,"open_issues_distinct":0,"open_prs":0,"closed_issues":1,"merged_prs":1,"attempt_prs":1},"landed_fix":{"status":"merged_to_main","basis":"structural","pr":10512,"merged_at":"2026-04-15T20:59:57+00:00"},"resolution":{"state":"resolved","by":"pr-10512"},"freshness":{"state":"stale","last_verified_at":"2026-04-15T20:59:57+00:00","is_stale":true},"grouping":{"backbone":"STRUCTURAL_SPANNING","link_density":0.6666666666666666},"fix_edges":[{"issue_number":10234,"pr_number":10512,"tier":"verified","basis":"closing_ref","confidence":0.95,"recoverable_from_timeline":true,"pr_merged_at":"2026-04-15T20:59:57+00:00"}],"members":[{"kind":"issue","number":10234,"title":"When Hermes calls the MCP tool, if the returned result is in Chinese, it will consume three times as many tokens. This is because the ensure_ascii parameter in json.dumps within mcp_tool.py is set to True.","url":null,"state":"closed"},{"kind":"pr","number":10329,"title":"fix(mcp): add ensure_ascii=True to all json.dumps calls (#10234)","url":null,"state":"closed","close_reason":{"refs":[{"kind":"pr","value":"#10512","number":10512}],"category":"superseded_by_pr","implication":"superseded"},"merged":false},{"kind":"pr","number":10512,"title":"fix: add ensure_ascii=False to all MCP json.dumps calls","url":null,"state":"merged","close_reason":{"category":"merged"},"merged":true,"is_fix_pr":true,"fix_tier":"verified","files_changed":["tools/mcp_tool.py"]}],"trust":{"default_tier":"verified","includes_suggested":false}}