chore: improved type annotations in MCP-related codes (#23984)

This commit is contained in:
Will
2025-08-15 15:19:30 +08:00
committed by GitHub
parent 4031a46572
commit 658157e9a1
3 changed files with 43 additions and 13 deletions

View File

@@ -16,13 +16,14 @@ from extensions.ext_database import db
from models.model import App, AppMCPServer, AppMode, EndUser
from services.app_generate_service import AppGenerateService
"""
Apply to MCP HTTP streamable server with stateless http
"""
logger = logging.getLogger(__name__)
class MCPServerStreamableHTTPRequestHandler:
"""
Apply to MCP HTTP streamable server with stateless http
"""
def __init__(
self, app: App, request: types.ClientRequest | types.ClientNotification, user_input_form: list[VariableEntity]
):