
srijanshukla18/xray
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
srijanshukla18/xray는 MCP 서버 후보가 https://github.com/srijanshukla18/xray.에서 수입됩니다
개요
srijanshukla18/xray는 MCP 서버 후보가 https://github.com/srijanshukla18/xray.에서 수입됩니다
개요(AI 번역)
** 코딩 에이전트가 코드베이스의 모양을 볼 수있는 MCP 서버 - 레이아웃, 서명, 정의, 참조 - 전체 파일을 읽지 않고. **
왜
코딩 에이전트는 이미 grep, glob 및 파일 읽기. 그들은 컨텍스트를 점화하는 곳:
- ** 3개의 기능 서명을 배우기 위하여 1,500 줄 파일을 읽기. **
read_interface]는 파일의 API를 반환합니다 — 각 종류, 방법, 기능 및 그것의 서명과 유형, 1 선 doc 및 선 수 — 그래서 대리인은 그것을 필요로 하는 선만 읽습니다. - **문서, 문자열 및 부분 일치를 통해 이름과 wading을 작성합니다. **
find_symbol는 정의를 반환하고, 순위를 매겨, fuzzy.what_breaks는 주석과 문자열 리터럴로 식별자를 반환합니다.
| grep / rg | 크래프트 | LSP | |—|—|||||| | 설정 | none | [T3] | 언어별 서버 | | 정의만 찾기 | ≡ | ✓ | | 사단법인 주식회사 | ✓ | ✓ | | 시체없이 API | ┃ | ✓ | 부분(문자 기호) | | 유형 인식 참조 | 😀 | ≡ | ✓ |
XRAY는 두 개 사이에 앉아 : 트리 인서트를 통해 구문 인식, 0 언어 설정, 유형의 해결되지 않는 정직.
설치
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
XRAY
An MCP server that lets coding agents see a codebase’s shape — layout, signatures, definitions, references — without reading whole files.
Why
Coding agents already have grep, glob and file reads. Where they burn context is:
- Reading a 1,500-line file to learn three function signatures.
read_interfacereturns the file’s API — every class, method, function and type with its signature, one-line doc and line number — so the agent reads only the lines it needs. - Grepping a name and wading through comments, strings and partial matches.
find_symbolreturns definitions only, ranked, fuzzy.what_breaksreturns identifier references with comments and string literals excluded.
| grep / rg | XRAY | LSP | |
|---|---|---|---|
| Setup | none | uv tool install |
a server per language |
| Finds definitions only | ✗ | ✓ | ✓ |
| Skips comments & strings | ✗ | ✓ | ✓ |
| File API without the bodies | ✗ | ✓ | partial (document symbols) |
| Type-aware references | ✗ | ✗ (name-based) | ✓ |
XRAY sits between the two: syntax-aware via tree-sitter, zero per-language setup, and honest about not resolving types.
Install
uv tool install git+https://github.com/srijanshukla18/xray
Then register the xray-mcp command with your client.
Claude Code
claude mcp add xray -s user -- xray-mcp
Claude Desktop, Cursor, VS Code, others — add to the client’s MCP config:
{ "mcpServers": { "xray": { "command": "xray-mcp" } } }
To run without installing: uvx --from git+https://github.com/srijanshukla18/xray xray-mcp.
There is also install.sh, which installs uv if needed and then runs the command above.
Tools
All paths in results are absolute. root_path is the project directory.
explore_repo(root_path, max_depth=None, include_symbols=False, focus_dirs=None, max_symbols_per_file=5)
Directory tree honouring .gitignore (via git ls-files, or a .gitignore parser outside git). Directories cut off by max_depth show their file count. Output is capped at 1,000 lines.
explore_repo("/home/me/xray", max_depth=2)
/home/me/xray/
├── src/
│ └── xray/ (6 files)
├── tests/
│ ├── __init__.py
│ └── test_xray.py
├── pyproject.toml
└── README.md
focus_dirs takes paths relative to the root; with include_symbols=True each file lists its signatures:
explore_repo("/home/me/xray", focus_dirs=["src/xray/core"], include_symbols=True, max_symbols_per_file=3)
/home/me/xray/
└── src/
└── xray/
└── core/
├── files.py
│ ├── def list_files(root: Path) -> List[str] # Return POSIX paths, relative to root, of every non-ignored…
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{ "mcpServers": { "xray": { "command": "xray-mcp" } } }