Mark tool search RPC as debug-only

This commit is contained in:
Steven Lee
2026-07-06 20:02:28 +00:00
parent 266e55bcd7
commit d256e7b01c
2 changed files with 28 additions and 3 deletions
@@ -969,8 +969,8 @@ client_request_definitions! {
response: v2::ListMcpServerStatusResponse,
},
#[experimental("toolSearch/search")]
ToolSearchSearch => "toolSearch/search" {
#[experimental("toolSearch/debug/search")]
ToolSearchSearch => "toolSearch/debug/search" {
params: v2::ToolSearchSearchParams,
serialization: thread_id(params.thread_id),
response: v2::ToolSearchSearchResponse,
@@ -3012,6 +3012,31 @@ mod tests {
Ok(())
}
#[test]
fn serialize_tool_search_debug_search() -> Result<()> {
let request = ClientRequest::ToolSearchSearch {
request_id: RequestId::Integer(9),
params: v2::ToolSearchSearchParams {
thread_id: "thread-123".to_string(),
query: "openai_topics.list_topics".to_string(),
limit: Some(8),
},
};
assert_eq!(
json!({
"method": "toolSearch/debug/search",
"id": 9,
"params": {
"threadId": "thread-123",
"query": "openai_topics.list_topics",
"limit": 8
}
}),
serde_json::to_value(&request)?,
);
Ok(())
}
#[test]
fn serialize_environment_add() -> Result<()> {
let request = ClientRequest::EnvironmentAdd {