From a stack trace to the cause
Paste an error from the log. CodeGraph finds the frames in your own code and the route, view, models and table behind them, including the column from an SQLSTATE error.
~/apps $ open CodeGraph.app
A free macOS menubar app and local MCP server. It maps your Laravel app's code and database schema, so Claude can trace a stack trace or a support ticket to the screen, route and table behind it.
// analyze_stacktrace
{
"exception": "Illuminate\\Database\\QueryException",
"sqlState": "23000",
"sqlTables": ["orders"],
"sqlColumns": ["customer_id"],
"frames": [{
"file": "app/Http/Controllers/OrderController.php",
"line": 42,
"method": { "name": "store", "line": 38 },
"screens": [{ "routes": [{
"name": "POST orders",
"attrs": { "name": "orders.store",
"middleware": "[\"auth\"]" }
}] }]
}],
"tables": [{
"table": "orders",
"models": [{ "name": "App\\Models\\Order" }],
"migrations": ["…_create_orders_table.php"]
}]
}
Paste an error from the log. CodeGraph finds the frames in your own code and the route, view, models and table behind them, including the column from an SQLSTATE error.
A customer quotes a label or a message. Full-text search over translations, views, routes, validations and messages points to the screen that shows it.
Columns, indexes, foreign keys, migrations and models of any table. Handler, middleware, view and validation of any route. Composer packages with their installed versions.
The graph lives on your Mac and stays in step with the branch you choose.
Open the .dmg and drag CodeGraph to Applications. It lives in the menubar, not in the Dock.
In Settings, add the folder of a local clone, a name and the branch on origin. The first build runs in the background.
Claude Desktop: one button in Settings. Claude Code: run the command below.
claude mcp add -s user code-graph -- '/Applications/CodeGraph.app/Contents/MacOS/CodeGraph' --mcp
Needs git and an SSH key to GitHub that works without an interactive passphrase, because fetches run in the background.
All tools only read, except rebuild. Every code reference carries file:line.
Found a bug or something does not work? Write to me with the app version and what you were doing.
No account, no subscription. If it saves you time on a bug or a ticket, you can buy me a coffee.
Start typing
Type at least 3 characters to search blog articles.
I use Google Analytics to see which articles people read. It sets cookies only if you allow it. Privacy policy