srijanshukla18/xray
XRAY MCP provides progressive code intelligence and navigation capabilities for AI assistants through structural code analysis using ast-grep
Platform-specific configuration:
{
"mcpServers": {
"xray": {
"command": "npx",
"args": [
"-y",
"xray"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
[](https://python.org) [](https://modelcontextprotocol.io) [](https://ast-grep.github.io)
AI assistants struggle with codebase understanding. You get:
XRAY gives AI assistants code navigation capabilities. Add use XRAY tools to your prompt:
Analyze the UserService class and show me what would break if I change the authenticate method. use XRAY toolsFind all functions that call validate_user and show their dependencies. use XRAY toolsXRAY provides three focused tools:
explore_repo) - See project structure with symbol skeletonsfind_symbol) - Locate functions and classes with fuzzy searchwhat_breaks) - Find where a symbol is referenced# Install uv if you don't have it
curl -LsSf https://astral.sh/uv/install.sh | sh
# Clone and install XRAY
git clone https://github.com/srijanshukla18/xray.git
cd xray
uv tool install .For the quickest setup, this script automates the uv installation process.
curl -fsSL https://raw.githubusercontent.com/srijanshukla18/xray/main/install.sh | bash# Get config for your tool
python mcp-config-generator.py cursor local_python
python mcp-config-generator.py claude docker
python mcp-config-generator.py vscode sourceXRAY uses ast-grep, a tree-sitter powered structural search tool, providi
Loading reviews...