# srijanshukla18/xray [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/srijanshukla18/xray  
**GitHub Stars:** 52  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/srijanshukla18-xray

## Description
Progressive code-intelligence MCP server: map project structure, fuzzy-find symbols, and assess change-impact across Python, JS/TS, and Go (powered by ast-grep).

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "xray": {
    "command": "uvx",
    "args": ["--from","git+https://github.com/srijanshukla18/xray","xray-mcp"]
  }
}
```

## Documentation

## What srijanshukla18/xray does

The srijanshukla18/xray MCP server exposes three code-intelligence operations through MCP:

- `explore_repo` maps a project directory and can include symbol skeletons, signatures, and docstrings.
- `find_symbol` searches for functions, classes, methods, and related symbols using fuzzy matching.
- `what_breaks` reports likely references to a selected symbol and returns a count with a note describing the search basis.

The tools are intended for progressive discovery. An assistant can first inspect directory structure, then request symbol details for selected folders, locate a target symbol, and examine possible callers or references before proposing a change.

Supported languages are Python, JavaScript, TypeScript, and Go. The available symbol forms include Python functions, classes, methods, and async functions; JavaScript and TypeScript functions, classes, arrow functions, imports, interfaces, and type aliases; and Go functions, structs, interfaces, and methods.

## How it works

srijanshukla18/xray uses ast-grep, which relies on tree-sitter for syntax-aware structural searches. This avoids treating every occurrence in a comment, string, or unrelated variable as a symbol definition. The server runs ast-grep queries on demand and does not maintain a database or persistent project index.

Repository exploration accepts options such as `focus_dirs`, `include_symbols`, and `max_depth`. These allow an MCP client to begin with a small directory view and expand only the areas relevant to the task. Symbol extraction is described as cached per Git commit, while analysis remains based on the current repository contents.

Impact analysis is reference-oriented rather than a complete semantic dependency graph. After `find_symbol` returns a symbol object, that object can be passed to `what_breaks` to search for likely uses across the project.

## Setup and configuration

The srijanshukla18/xray MCP server requires Python 3.10 or newer and the ast-grep external binary. The recommended installation path uses `uv`: clone the repository, enter its directory, and run `uv tool install .`. An installation script is also provided to automate setup with `uv`.

The repository includes `mcp-config-generator.py` for producing client configuration. Its documented examples generate configurations for Cursor, Claude with Docker, and VS Code using different launch modes, including local Python and source-based setups. The README also provides a separate getting-started guide for the modern installation flow.

## Tools and capabilities

- Explore a repository tree with optional symbol information.
- Narrow exploration to selected directories or a maximum depth.
- Fuzzy-find functions, classes, and other supported symbols.
- Return symbol paths and line numbers from search results.
- Identify potential references to a selected symbol.
- Analyze code structurally across four supported language families.

As a Developer Tools listing, srijanshukla18/xray fits workflows where an MCP-enabled coding assistant needs repository orientation, symbol lookup, or preliminary change-impact checks without configuring language servers for each language.

_Full upstream README: https://allmcps.com/mcp/srijanshukla18-xray/readme_

