A Python tool for locating code using Gemini 2.5 Flash. Capable of shifting through large amounts of code to locate the answer to your query.
- Uses AI to help locate code in a codebase
uv install
uv run main.py
To use Code Oracle as a Model Context Protocol (MCP) server in Cursor:
- Clone this repository
- Have
uv
installed - Create an
mcp.json
file in your Cursor configuration directory with the following content:
{
"mcpServers": {
"code-oracle": {
"command": "/path/to/run_mcp.sh",
"env": {
"GEMINI_API_KEY": "your-gemini-key"
}
}
}
}
Make sure to:
- Replace
/path/to/run_mcp.sh
with the actual path to therun_mcp.sh
script in this repo - Set your Gemini API key in the environment variables
After configuration, Code Oracle will be available as a tool when using Cursor.