fix: change the mcp server strucutre to support github copilot (#24788)

This commit is contained in:
Novice
2025-08-29 18:00:58 +08:00
committed by GitHub
parent 14e7ba4818
commit 1a34ff8a67
5 changed files with 849 additions and 259 deletions

View File

@@ -138,5 +138,5 @@ def create_mcp_error_response(
error=error_data,
)
json_data = json.dumps(jsonable_encoder(json_response))
sse_content = f"event: message\ndata: {json_data}\n\n".encode()
sse_content = json_data.encode()
yield sse_content