(
protocol: &str,
params: BTreeMap<String, QueryMatcherDef>,
)
| 570 | } |
| 571 | |
| 572 | fn split_tool_param( |
| 573 | protocol: &str, |
| 574 | params: BTreeMap<String, QueryMatcherDef>, |
| 575 | ) -> (Option<QueryMatcherDef>, BTreeMap<String, QueryMatcherDef>) { |
| 576 | // Only MCP has the tool-name convention. Non-MCP protocols preserve proto |
| 577 | // params on round-trip without inventing MCP semantics. |
| 578 | if !is_mcp_protocol(protocol) { |
| 579 | return (None, params); |
| 580 | } |
| 581 | |
| 582 | let mut params = params; |
| 583 | let tool = params.remove("name"); |
| 584 | (tool, params) |
| 585 | } |
| 586 | |
| 587 | fn allow_proto_to_def( |
| 588 | protocol: &str, |
no test coverage detected