Oracle MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Oracle MCP Server What's the best way to structure a TypeScript MCP server for tool integration?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Oracle MCP Server
A Model Context Protocol (MCP) server that provides a unified interface for consulting oracle AI models (Codex or Claude) via CLI.
Features
Unified Oracle Tool: Single
consult_oracletool that works with either Codex or Claude CodeConfigurable Models: Supports custom oracle models and reasoning levels via
~/.oracle-mcp.jsonTestable Architecture: Pure functions for argument construction and CLI invocation
Proper Error Handling: Comprehensive error handling with descriptive messages
Type Safe: Full TypeScript with explicit typing and safe error handling
Related MCP server: Codex Bridge
Setup
# Install dependencies
bun install
# Build TypeScript
bun run build
# Run the server
bun run startDevelopment
# Run directly with hot reload
bun run dev
# Run test suite
bun testTools
consult_oracle
Consult the oracle for expert reasoning and analysis on complex problems.
When to use:
Planning complex tasks with multiple tradeoffs
You are ≤90% confident in your approach
You need analysis of architectural decisions or design patterns
Parameters:
prompt(string, required): The question or problem to consult the oracle about. Be specific about context, constraints, and what decision or analysis you need.
Example prompts:
"What's the best approach to structure a TypeScript MCP server for tool integration?"
"Should we use a monolithic or microservices architecture for this new feature?"
"What are the tradeoffs between different error handling patterns?"
Configuration
The server reads ~/.oracle-mcp.json if it exists to customize behavior. If the file doesn't exist, defaults are used.
Default Configuration
{
"model": "gpt-5.1-codex-mini",
"reasoning": "medium",
"command": "codex"
}Example with Codex
{
"oracle": {
"model": "gpt-5.1-codex-mini",
"reasoning": "high",
"command": "codex"
}
}Example with Claude Code
{
"oracle": {
"model": "opus",
"command": "claude"
}
}Implementation Details
CLI Invocation Formats
Codex:
codex exec --model <model> [-c reasoning_level=<level>] "<prompt>"Claude:
claude -p --model <model> "<prompt>"Architecture
Single-file server (
src/index.ts) implementing the MCP protocolPure functions for testability:
buildOracleArgs(): Constructs CLI arguments as an array (avoiding shell escaping issues)invokeOracle(): Executes CLI viaspawnSyncand returns structured result
MCP Handlers:
ListToolsRequestSchema: Describesconsult_oracletool with dynamic descriptions based on configCallToolRequestSchema: Handles tool invocation, captures stdout, and returns properly formatted responses
Error Handling: Try-catch with fallback to
String(error)for non-Error objectsResponse Format: All responses wrapped as
{ content: [{ type: "text", text: string }], isError?: boolean }
Dependencies
@modelcontextprotocol/sdk: Official MCP protocol implementation and stdio transport
Testing
Comprehensive test suite (42+ tests) covering:
Argument construction for both Codex and Claude
Special character handling (quotes, backticks, dollar signs, newlines)
Configuration loading and defaults
Tool description generation
Error handling and response formatting
Type safety and MCP protocol compliance
Available Tools
1 toolconsult_oracleA
Consult the oracle (gpt-5.1-codex-mini) via codex CLI with medium-level reasoning. The oracle provides expert reasoning and analysis for complex problem-solving. Use when: (1) planning complex tasks with multiple tradeoffs, (2) you are <=90% confident in your approach, (3) you need analysis of architectural decisions or design patterns.
Inputs: prompt (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool has a clear, singular purpose: consulting an oracle for expert reasoning and analysis.
Since there is only one tool, naming consistency is inherently perfect. The tool name 'consult_oracle' follows a clear verb_noun pattern and stands alone without any conflicting naming conventions.
A single tool is generally too few for a server's purpose, as it limits functionality and scope. While the tool is well-defined, the server likely has a narrow or incomplete surface, making it feel thin and underdeveloped for typical MCP server use cases.
The server's domain appears to be oracle consultation for problem-solving, but with only one tool, there are significant gaps. For example, there are no tools for managing sessions, retrieving past consultations, or handling different reasoning levels, which limits agent workflows and creates dead ends.
Maintenance
Related MCP Connectors
Source-checked CLI guides and model-aware planning for Claude Code, Codex, and Grok Build.
Your AI apps as one team: hand work to Codex or Claude Code on your Mac, with a shared logbook.
Unified API to query AWS, GCP, Azure and generate Terraform/CLI execution kits for AI agents.
Give your AI agent persistent, governed memory for every project. At task start it recalls the approved decisions, conventions, risks and architecture (semantic search, ranked by importance); at close it proposes what was learned as typed memories that you review and approve — governance, not a notes dump. Agents propose, humans govern: edits go back to pending and deletion is human-only by design. Connect Claude Code, Cursor, Claude Desktop or any MCP client in two minutes with just your API key — hosted (nothing to install) or locally via `uvx solucortex-mcp`. Built by SoluAI and dogfooded daily: SoluCortex is developed using its own living memory.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables comprehensive codebase analysis using Google's Gemini AI through CLI integration. Provides architectural reviews and targeted code analysis with code2prompt integration for efficient context extraction.122 npm2Apache 2.0
- AlicenseAqualityBmaintenanceEnables AI coding assistants to interact with OpenAI's Codex AI through the official CLI. Provides direct integration for code analysis, file review, and batch processing with zero API costs.3120MIT
- AlicenseCqualityDmaintenanceConnects AI assistants like Claude to the Codex CLI for code analysis, editing, and execution. Supports file references with @ syntax, sandboxed code execution with approval workflows, and structured code changes for automated refactoring and documentation.888 npm176MIT
- AlicenseAqualityDmaintenanceBridges Claude and OpenAI's Codex CLI for AI-powered code analysis, generation, and review, with support for session management, web search, and structured output.61,352 npm648ISC