From da374b459537ee079e1d03da121a935c8fb18f0e Mon Sep 17 00:00:00 2001 From: vastsa Date: Sat, 10 Oct 2026 19:03:51 +0800 Subject: [PATCH] fix: type MCP protocol results --- apps/base/mcp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/base/mcp.py b/apps/base/mcp.py index bb5fb50..690c0a7 100644 --- a/apps/base/mcp.py +++ b/apps/base/mcp.py @@ -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 = {