fix: type MCP protocol results

This commit is contained in:
vastsa committed 2026-10-10 19:03:51 +08:00
1 parent d3f9e7902c
commit da374b4595
1 file changed
+2
+2
View File
@@ -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 = {