mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
022f81df1f
## Why The visibility cleanup in the base PR reduced what `codex-mcp` exposes, but several files still made reviewers read private support machinery before the public or crate-facing entry points. This ordering pass makes each file easier to scan: exported API first, crate-visible MCP internals next, then private helpers in breadth-first order from the higher-level MCP flows to leaf utilities. ## What Changed - Reordered `codex-mcp` exports so the runtime, configuration, snapshot, auth, and helper surfaces are grouped by visibility and reader importance. - Moved public and crate-visible MCP items ahead of private helpers in the auth, MCP planning/snapshot, connection manager, and tool-name modules. - Kept the change mechanical, with no behavior changes intended. ## Verification - `cargo check -p codex-mcp`
44 lines
1.5 KiB
Rust
44 lines
1.5 KiB
Rust
pub use mcp_connection_manager::MCP_SANDBOX_STATE_META_CAPABILITY;
|
|
pub use mcp_connection_manager::McpConnectionManager;
|
|
pub use mcp_connection_manager::McpRuntimeEnvironment;
|
|
pub use mcp_connection_manager::SandboxState;
|
|
pub use mcp_connection_manager::ToolInfo;
|
|
|
|
pub use mcp::CODEX_APPS_MCP_SERVER_NAME;
|
|
pub use mcp::McpConfig;
|
|
pub use mcp::ToolPluginProvenance;
|
|
|
|
pub use mcp_connection_manager::CodexAppsToolsCacheKey;
|
|
pub use mcp_connection_manager::codex_apps_tools_cache_key;
|
|
|
|
pub use mcp::configured_mcp_servers;
|
|
pub use mcp::effective_mcp_servers;
|
|
pub use mcp::tool_plugin_provenance;
|
|
pub use mcp::with_codex_apps_mcp;
|
|
|
|
pub use mcp::McpServerStatusSnapshot;
|
|
pub use mcp::McpSnapshotDetail;
|
|
pub use mcp::collect_mcp_server_status_snapshot_with_detail;
|
|
pub use mcp::collect_mcp_snapshot_from_manager;
|
|
pub use mcp::read_mcp_resource;
|
|
|
|
pub use mcp::McpAuthStatusEntry;
|
|
pub use mcp::McpOAuthLoginConfig;
|
|
pub use mcp::McpOAuthLoginSupport;
|
|
pub use mcp::McpOAuthScopesSource;
|
|
pub use mcp::ResolvedMcpOAuthScopes;
|
|
pub use mcp::compute_auth_statuses;
|
|
pub use mcp::discover_supported_scopes;
|
|
pub use mcp::oauth_login_support;
|
|
pub use mcp::resolve_oauth_scopes;
|
|
pub use mcp::should_retry_without_scopes;
|
|
|
|
pub use mcp::mcp_permission_prompt_is_auto_approved;
|
|
pub use mcp::qualified_mcp_tool_name_prefix;
|
|
pub use mcp_connection_manager::declared_openai_file_input_param_names;
|
|
pub use mcp_connection_manager::filter_non_codex_apps_mcp_tools_only;
|
|
|
|
pub(crate) mod mcp;
|
|
pub(crate) mod mcp_connection_manager;
|
|
pub(crate) mod mcp_tool_names;
|