Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions codex-rs/codex-mcp/src/connection_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,19 @@ impl McpConnectionManager {
.server_supports_sandbox_state_meta_capability)
}

pub async fn server_supports_subspan_tracing_for_tool(
&self,
server: &str,
tool: &str,
) -> Result<bool> {
Ok(self
.client_by_name(server)
.await?
.subspan_tracing_capability
.as_ref()
.is_some_and(|capability| capability.supports_tool(tool)))
}

/// List resources from the specified server.
pub async fn list_resources(
&self,
Expand Down
3 changes: 3 additions & 0 deletions codex-rs/codex-mcp/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
pub use connection_manager::McpConnectionManager;
pub use rmcp_client::MCP_SANDBOX_STATE_META_CAPABILITY;
pub use rmcp_client::MCP_SUBSPAN_TRACING_CAPABILITY;
pub use rmcp_client::MCP_SUBSPAN_TRACING_TRANSPORT_STDERR_JSONL;
pub use rmcp_client::MCP_SUBSPAN_TRACING_VERSION;
pub use runtime::McpRuntimeEnvironment;
pub use runtime::SandboxState;
pub use tools::ToolInfo;
Expand Down
Loading
Loading