fix: change the mcp server strucutre to support github copilot (#24788)
This commit is contained in:
parent
14e7ba4818
commit
1a34ff8a67
5 changed files with 849 additions and 259 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue