mirror of
https://github.com/openai/codex.git
synced 2026-11-22 07:13:50 +00:00
Expose plugin ownership in MCP server status (#37850)
## What changed - Add `pluginId` to each `mcpServerStatus/list` result. - Populate it for MCP servers contributed by installed or selected plugins, and return `null` for servers from other sources. - Update the generated protocol schemas, TypeScript bindings, and app-server documentation. ## Testing - Cover plugin-owned servers in plugin installation and executor flows. - Verify non-plugin servers and protocol serialization return a null `pluginId`. GitOrigin-RevId: 0e4b912252cf51be56dcb63e0c1c7365a5e870ee
This commit is contained in:
1 parent
97729885d4
commit
78d3665d15
16 files changed
+107
-33
No files matched your search
@@ -1443,6 +1443,7 @@ mod tests {
|
||||
let statuses = vec![
|
||||
McpServerStatus {
|
||||
name: "docs".to_string(),
|
||||
plugin_id: None,
|
||||
server_info: None,
|
||||
tools: HashMap::from([(
|
||||
"list".to_string(),
|
||||
@@ -1463,6 +1464,7 @@ mod tests {
|
||||
},
|
||||
McpServerStatus {
|
||||
name: "disabled".to_string(),
|
||||
plugin_id: None,
|
||||
server_info: None,
|
||||
tools: HashMap::new(),
|
||||
resources: Vec::new(),
|
||||
|
||||
@@ -225,6 +225,7 @@ async fn handle_mcp_inventory_result_respects_origin_thread() {
|
||||
app.handle_mcp_inventory_result(
|
||||
Ok(vec![McpServerStatus {
|
||||
name: "docs".to_string(),
|
||||
plugin_id: None,
|
||||
server_info: None,
|
||||
tools: HashMap::new(),
|
||||
resources: Vec::new(),
|
||||
|
||||
@@ -964,6 +964,7 @@ async fn mcp_tools_output_lists_tools_for_hyphenated_server_names() {
|
||||
fn mcp_tools_output_from_statuses_renders_status_only_servers() {
|
||||
let statuses = vec![McpServerStatus {
|
||||
name: "plugin_docs".to_string(),
|
||||
plugin_id: None,
|
||||
server_info: None,
|
||||
tools: HashMap::from([(
|
||||
"lookup".to_string(),
|
||||
@@ -994,6 +995,7 @@ fn mcp_tools_output_from_statuses_renders_status_only_servers() {
|
||||
fn mcp_tools_output_from_statuses_renders_verbose_inventory() {
|
||||
let statuses = vec![McpServerStatus {
|
||||
name: "plugin_docs".to_string(),
|
||||
plugin_id: None,
|
||||
server_info: None,
|
||||
tools: HashMap::from([(
|
||||
"lookup".to_string(),
|
||||
|
||||
Reference in new issue
Block a user