Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
feat: support ping method for MCP server (#22144)
非法操作7b2cab576775
diff --git a/api/core/mcp/server/streamable_http.py b/api/core/mcp/server/streamable_http.pyindex 6b422ae4aea..37eec3cd9c6 100644--- a/api/core/mcp/server/streamable_http.py+++ b/api/core/mcp/server/streamable_http.py@@ -89,6 +89,7 @@ class MCPServerStreamableHTTPRequestHandler:types.ListToolsRequest: self.list_tools,types.CallToolRequest: self.invoke_tool,types.InitializedNotification: self.handle_notification,+ types.PingRequest: self.handle_ping,}try:if self.request_type in handle_map:@@ -105,6 +106,9 @@ class MCPServerStreamableHTTPRequestHandler:def handle_notification(self):return "ping"+ def handle_ping(self):+ return types.EmptyResult()+def initialize(self):request = cast(types.InitializeRequest, self.request.root)client_info = request.params.clientInfo