pub struct CodexMcpServer { /* private fields */ }Expand description
Client wrapper around the stdio MCP server.
Implementations§
Source§impl CodexMcpServer
impl CodexMcpServer
Sourcepub async fn start(
config: StdioServerConfig,
client: ClientInfo,
) -> Result<Self, McpError>
pub async fn start( config: StdioServerConfig, client: ClientInfo, ) -> Result<Self, McpError>
Launch codex mcp-server, issue initialize, and return a connected handle.
Sourcepub async fn with_capabilities(
config: StdioServerConfig,
client: ClientInfo,
capabilities: Value,
) -> Result<Self, McpError>
pub async fn with_capabilities( config: StdioServerConfig, client: ClientInfo, capabilities: Value, ) -> Result<Self, McpError>
Launch with explicit capabilities to send during initialize.
Sourcepub async fn codex(
&self,
params: CodexCallParams,
) -> Result<CodexCallHandle, McpError>
pub async fn codex( &self, params: CodexCallParams, ) -> Result<CodexCallHandle, McpError>
Send a new Codex prompt via codex/codex.
Sourcepub async fn codex_reply(
&self,
params: CodexReplyParams,
) -> Result<CodexCallHandle, McpError>
pub async fn codex_reply( &self, params: CodexReplyParams, ) -> Result<CodexCallHandle, McpError>
Continue an existing conversation via codex/codex-reply.
Sourcepub async fn send_approval(
&self,
decision: ApprovalDecision,
) -> Result<(), McpError>
pub async fn send_approval( &self, decision: ApprovalDecision, ) -> Result<(), McpError>
Send an approval decision back to the MCP server.
Auto Trait Implementations§
impl Freeze for CodexMcpServer
impl !RefUnwindSafe for CodexMcpServer
impl Send for CodexMcpServer
impl Sync for CodexMcpServer
impl Unpin for CodexMcpServer
impl UnsafeUnpin for CodexMcpServer
impl !UnwindSafe for CodexMcpServer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more