mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:00:42 +00:00
Scope MCP resource reads by connector (#39244)
## What changed - Add an optional `connectorId` to `mcpServer/resource/read`. - Forward the selected connector through `x-codex-turn-metadata` for threaded and threadless resource reads, restricting hosted app resources to that connector. - Update the generated protocol schemas and app-server documentation. GitOrigin-RevId: 5cc94d703abbbb6086665910c1c9ed5dc7075210
This commit is contained in:
@@ -2331,6 +2331,7 @@ mod tests {
|
||||
origin_call_id: None,
|
||||
server: "server-a".to_string(),
|
||||
uri: "file:///tmp/resource".to_string(),
|
||||
connector_id: None,
|
||||
},
|
||||
};
|
||||
assert_eq!(
|
||||
@@ -2519,6 +2520,7 @@ mod tests {
|
||||
origin_call_id: None,
|
||||
server: "server-a".to_string(),
|
||||
uri: "file:///tmp/resource".to_string(),
|
||||
connector_id: None,
|
||||
},
|
||||
};
|
||||
assert_eq!(mcp_resource_read.serialization_scope(), None);
|
||||
|
||||
Reference in New Issue
Block a user