mirror of
https://github.com/xszyou/Fay.git
synced 2026-03-12 17:51:28 +08:00
Update mcp_server.py
修复fay作用mcp服务端时,广播工具的编码问题。
This commit is contained in:
@@ -149,7 +149,7 @@ def _build_aggregated_tools() -> List[Tool]:
|
||||
|
||||
async def _send_broadcast(payload: Dict[str, Any]) -> Tuple[bool, str]:
|
||||
def _post() -> Tuple[bool, str]:
|
||||
body = json.dumps(payload, ensure_ascii=False).encode("utf-8")
|
||||
body = json.dumps(payload, ensure_ascii=True).encode("utf-8")
|
||||
resp = requests.post(
|
||||
DEFAULT_API_URL,
|
||||
data=body,
|
||||
|
||||
Reference in New Issue
Block a user