mirror of
https://github.com/vastsa/FileCodeBox.git
synced 2026-11-22 06:57:56 +08:00
fix: type MCP protocol results
This commit is contained in:
1 parent
d3f9e7902c
commit
da374b4595
1 file changed
+2
@@ -4,6 +4,7 @@ import binascii
|
||||
import html
|
||||
import io
|
||||
import json
|
||||
from typing import Any
|
||||
from html.parser import HTMLParser
|
||||
from urllib.parse import quote, urlsplit
|
||||
|
||||
@@ -191,6 +192,7 @@ async def mcp_endpoint(request: Request):
|
||||
method = message["method"]
|
||||
if request_id is None and method.startswith("notifications/"):
|
||||
return Response(status_code=202)
|
||||
result: dict[str, Any] = {}
|
||||
try:
|
||||
if method == "initialize":
|
||||
result = {
|
||||
|
||||
Reference in new issue
Block a user