Add a getUserAgent MCP method (#3320)

This will allow the extension to pass this user agent + a suffix for its
requests
This commit is contained in:
Gabriel Peal
2025-09-08 10:30:13 -07:00
committed by GitHub
parent 0525b48baa
commit 5c1416d99b
6 changed files with 73 additions and 0 deletions

View File

@@ -247,6 +247,11 @@ impl McpProcess {
self.send_request("getUserSavedConfig", None).await
}
/// Send a `getUserAgent` JSON-RPC request.
pub async fn send_get_user_agent_request(&mut self) -> anyhow::Result<i64> {
self.send_request("getUserAgent", None).await
}
/// Send a `listConversations` JSON-RPC request.
pub async fn send_list_conversations_request(
&mut self,