Skip to content

Commit da374b4

Browse files
committed
fix: type MCP protocol results
1 parent d3f9e79 commit da374b4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/base/mcp.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import html
55
import io
66
import json
7+
from typing import Any
78
from html.parser import HTMLParser
89
from urllib.parse import quote, urlsplit
910

@@ -191,6 +192,7 @@ async def mcp_endpoint(request: Request):
191192
method = message["method"]
192193
if request_id is None and method.startswith("notifications/"):
193194
return Response(status_code=202)
195+
result: dict[str, Any] = {}
194196
try:
195197
if method == "initialize":
196198
result = {

0 commit comments

Comments
 (0)