An MCP server that validates code suggestions from LLMs against your actual codebase.
When an LLM suggests a method that doesn't exist, a class that isn't imported, or a CSS class that doesn't match your project, Oracolo catches it before you waste time debugging.
Oracolo runs locally alongside your LLM client. When the LLM proposes code changes, it validates:
- TypeScript / JavaScript: Uses
ts-morphto verify methods, properties, and imports exist in your codebase - PHP: Runs ReflectionClass calls against your actual PHP files to confirm methods and class existence
- HTML/CSS: Uses
html-validatefor HTML validation and scans your project's CSS files for class names
If it finds a mismatch, it tells the LLM to correct itself. No stack traces to paste back, no manual debugging cycles.
npm install -g mcp-oracoloOr use directly with npx (no installation required):
npx -y mcp-oracolo --languages=typescript,php,htmlAdd to your MCP client configuration file:
Create .roo/mcp.json in your project root:
{
"mcpServers": {
"oracolo": {
"command": "npx",
"args": ["-y", "mcp-oracolo", "--languages=typescript,php,html"]
}
}
}macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"oracolo": {
"command": "npx",
"args": ["-y", "mcp-oracolo", "--languages=typescript,php,html"]
}
}
}Add to your Cursor MCP settings:
{
"mcpServers": {
"oracolo": {
"command": "npx",
"args": ["-y", "mcp-oracolo", "--languages=typescript,php,html"]
}
}
}On Windows, wrap npx in cmd:
{
"mcpServers": {
"oracolo": {
"command": "cmd",
"args": ["/c", "npx", "-y", "mcp-oracolo", "--languages=typescript,php,html"]
}
}
}Use --languages to enable only the analyzers you need (e.g. --languages=typescript).
LLMs hallucinate code. Not because they're malicious, but because they don't know what's actually in your project until you show them. Oracolo closes that gap by running static analysis on the LLM's suggestions before they become your problem.
- TypeScript / JavaScript (via ts-morph AST)
- PHP (via ReflectionClass and PHPDoc analysis)
- HTML / CSS (via html-validate + local CSS scanning)
npm install
npm run build
npm test