codeant-ai-for-open-source[bot] commented on PR #38562:
URL: https://github.com/apache/superset/pull/38562#issuecomment-4047345097

   ## **Sequence Diagram**
   
   This PR changes MCP startup so clients no longer receive the full tool 
catalog on connect. Instead, the server exposes pinned tools plus search and 
call proxies, then serves compact on demand tool definitions by stripping 
output schema data from search results.
   
   ```mermaid
   sequenceDiagram
       participant MCPServer
       participant SearchTransform
       participant LLMClient
       participant ToolRegistry
   
       MCPServer->>SearchTransform: Initialize tool search transform from config
       SearchTransform-->>MCPServer: Register pinned tools plus search and call 
proxies
   
       LLMClient->>MCPServer: Request available tools
       MCPServer-->>LLMClient: Return pinned tools plus search and call
   
       LLMClient->>MCPServer: search_tools with natural language query
       MCPServer->>SearchTransform: Rank matches and serialize compact schemas
       SearchTransform-->>MCPServer: Return matched tools without output schema
   
       LLMClient->>MCPServer: call_tool with selected tool and arguments
       MCPServer->>ToolRegistry: Execute selected real tool
       ToolRegistry-->>LLMClient: Return tool result
   ```
   
   ---
   *Generated by [CodeAnt AI](https://codeant.ai)*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to