CodexWrapper.Commands.McpServer (CodexWrapper v0.4.0)

Copy Markdown View Source

Start Codex as an MCP server over stdio.

Wraps codex mcp-server.

Options

  • :config - list of "key=value" config overrides (-c)
  • :enable - list of feature flags to enable (--enable)
  • :disable - list of feature flags to disable (--disable)

Summary

Functions

Start Codex as an MCP server.

Functions

start(config, opts \\ [])

@spec start(
  CodexWrapper.Config.t(),
  keyword()
) :: {:ok, String.t()} | {:error, term()}

Start Codex as an MCP server.

Options

  • :config - list of "key=value" config overrides
  • :enable - list of feature flags to enable
  • :disable - list of feature flags to disable

Examples

config = CodexWrapper.Config.new()
CodexWrapper.Commands.McpServer.start(config)
CodexWrapper.Commands.McpServer.start(config, config: ["model=\"gpt-5\""], enable: ["web-search"])