Show HN: XRAY MCP – AST-grep wrapped in a tiny server for code-aware AI
5 srijanshukla18 12 8/6/2025, 4:19:49 PM github.com ↗
Hi HN,
I built XRAY MCP after discovering that AI assistants were scanning my projects with plain grep and guessing. I tried direct tree-sitter integration and language servers; both felt heavy for a lightweight tool.
ast-grep hit a sweet spot: syntax-aware search in a single binary. XRAY MCP wraps it behind three endpoints—map, find, impact—so a model (or human) can answer questions like “what breaks if I change this function?” on demand.
It’s stateless, supports Python/JS/TS/Go, and installs quickly.
Repo: https://github.com/srijanshukla18/xray
Would love to know your thoughts!
Providing access to something like this via mcp might help these coding agents plan better and limit or atleast understand the blast radius for refactors.
Will try.
The whole idea behind tools like what_breaks is to give the agent that foresight before it makes a change, moving it from a reactive "change -> lint -> fix" cycle to a more proactive "plan -> analyze -> change" workflow.
Thanks for checking it out!
About the linting use case specifically, I've found claude code hooks to be very beneficial. Not sure if other tools have an equivalent. Check that out too!