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
commit 1a34ff8a67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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