feat(extensions): support Unix domain socket transport for StreamableHttp MCP (#7860)
This commit is contained in:
@@ -1174,6 +1174,7 @@ fn configure_streamable_http_extension() -> anyhow::Result<()> {
|
||||
headers,
|
||||
description,
|
||||
timeout: Some(timeout),
|
||||
socket: None,
|
||||
bundled: None,
|
||||
available_tools: Vec::new(),
|
||||
},
|
||||
|
||||
@@ -166,6 +166,7 @@ mod tests {
|
||||
env_keys: vec!["GITHUB_TOKEN".to_string(), "GITHUB_API_URL".to_string()],
|
||||
description: "github-mcp".to_string(),
|
||||
timeout: None,
|
||||
socket: None,
|
||||
bundled: None,
|
||||
available_tools: Vec::new(),
|
||||
headers: HashMap::new(),
|
||||
@@ -262,6 +263,7 @@ mod tests {
|
||||
env_keys: vec!["API_KEY".to_string()],
|
||||
description: "service-a".to_string(),
|
||||
timeout: None,
|
||||
socket: None,
|
||||
bundled: None,
|
||||
available_tools: Vec::new(),
|
||||
headers: HashMap::new(),
|
||||
@@ -321,6 +323,7 @@ mod tests {
|
||||
env_keys: vec!["PARENT_TOKEN".to_string()],
|
||||
description: "parent-ext".to_string(),
|
||||
timeout: None,
|
||||
socket: None,
|
||||
bundled: None,
|
||||
available_tools: Vec::new(),
|
||||
headers: HashMap::new(),
|
||||
|
||||
@@ -369,6 +369,7 @@ impl CliSession {
|
||||
headers: HashMap::new(),
|
||||
description: goose::config::DEFAULT_EXTENSION_DESCRIPTION.to_string(),
|
||||
timeout: Some(timeout),
|
||||
socket: None,
|
||||
bundled: None,
|
||||
available_tools: Vec::new(),
|
||||
}
|
||||
@@ -2160,6 +2161,7 @@ mod tests {
|
||||
headers: HashMap::new(),
|
||||
description: goose::config::DEFAULT_EXTENSION_DESCRIPTION.to_string(),
|
||||
timeout: Some(300),
|
||||
socket: None,
|
||||
bundled: None,
|
||||
available_tools: vec![],
|
||||
}
|
||||
@@ -2175,6 +2177,7 @@ mod tests {
|
||||
headers: HashMap::new(),
|
||||
description: goose::config::DEFAULT_EXTENSION_DESCRIPTION.to_string(),
|
||||
timeout: Some(300),
|
||||
socket: None,
|
||||
bundled: None,
|
||||
available_tools: vec![],
|
||||
}
|
||||
@@ -2190,6 +2193,7 @@ mod tests {
|
||||
headers: HashMap::new(),
|
||||
description: goose::config::DEFAULT_EXTENSION_DESCRIPTION.to_string(),
|
||||
timeout: Some(300),
|
||||
socket: None,
|
||||
bundled: None,
|
||||
available_tools: vec![],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user