oracle-mcp is a minimal MCP stdio server that mirrors the Oracle CLI. It shares session storage with the CLI (~/.oracle/sessions or ORACLE_HOME_DIR) so you can mix and match: run with the CLI, inspect or re-run via MCP, or vice versa.
- Inputs:
prompt(required),files?: string[](globs),model?: string(defaults to CLI),engine?: "api" | "browser"(CLI auto-defaults),slug?: string. - Browser-only extras:
browserAttachments?: "auto"|"never"|"always",browserBundleFiles?: boolean,browserThinkingTime?: "light"|"standard"|"extended"|"heavy",browserKeepBrowser?: boolean,browserModelLabel?: string. - Behavior: starts a session, runs it with the chosen engine, returns final output + metadata. Background/foreground follows the CLI (e.g., GPT‑5 Pro detaches by default).
- Logging: emits MCP logs (
infoper line,debugfor streamed chunks with byte sizes). If browser prerequisites are missing, returns an error payload instead of running.
- Inputs:
{id?, hours?, limit?, includeAll?, detail?}mirroringoracle status/oracle session. - Behavior: without
id, returns a bounded list of recent sessions. Withid/slug, returns a summary row; setdetail: trueto fetch full metadata, log, and stored request body.
oracle-session://{id}/{metadata|log|request}— read-only resources that surface stored session artifacts via MCP resource reads.
- Same as the CLI: heavy models (e.g., GPT‑5 Pro) detach by default; reattach via
oracle session <id>/oracle status. MCP does not expose extra background flags.
- Installed from npm:
- One-off:
npx @steipete/oracle oracle-mcp - Global:
oracle-mcp
- One-off:
- From the repo (contributors):
pnpm buildpnpm mcp(ororacle-mcpin the repo root)
- mcporter example (stdio):
{ "name": "oracle", "type": "stdio", "command": "npx", "args": ["@steipete/oracle", "oracle-mcp"] } - Project-scoped Claude (.mcp.json) example:
{ "mcpServers": { "oracle": { "type": "stdio", "command": "npx", "args": ["@steipete/oracle", "oracle-mcp"] } } } - Bridge helper snippets:
- Codex CLI:
oracle bridge codex-config - Claude Code:
oracle bridge claude-config
- Codex CLI:
- Tools and resources operate on the same session store as
oracle status|session. - Defaults (model/engine/etc.) come from your Oracle CLI config; see
docs/configuration.mdor~/.oracle/config.json.