codeant-ai-for-open-source[bot] commented on PR #38562:
URL: https://github.com/apache/superset/pull/38562#issuecomment-4033253633
## **Sequence Diagram**
This PR configures the MCP server to apply a FastMCP tool search transform
(BM25 or regex) so that clients see only synthetic search and call tools plus
pinned tools, discover other tools on demand, and receive search results
without output schemas to minimize token usage.
```mermaid
sequenceDiagram
participant Client
participant MCPServer
participant ToolSearchTransform
MCPServer->>ToolSearchTransform: Initialize with MCP tool search config
Client->>MCPServer: list_tools
MCPServer->>ToolSearchTransform: Provide tool list
ToolSearchTransform-->>Client: Synthetic search and call tools plus
pinned tools
Client->>MCPServer: search_tools with query
MCPServer->>ToolSearchTransform: Find matching tools and strip output
schema
ToolSearchTransform-->>Client: Matching tools with input schemas
Client->>MCPServer: call_tool with selected tool
MCPServer->>ToolSearchTransform: Proxy to underlying tool
ToolSearchTransform-->>Client: Tool execution 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]