Skip to content

Commit f3fa394

Browse files
committed
Initial release v2.0.0 — semantic code intelligence MCP server
16 MCP tools, TF-IDF semantic search, call graph, impact analysis, dead code detection, circular deps, complexity analysis, path finding. Supports 13 languages via tree-sitter. Works with Claude Code, Cursor, Windsurf.
0 parents  commit f3fa394

24 files changed

Lines changed: 7208 additions & 0 deletions

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI/CD
2+
3+
on:
4+
push:
5+
branches: [main]
6+
tags: ['v*']
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
node-version: [16, 18, 20, 22]
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- run: npm install
22+
- run: npm run build
23+
- run: npm test
24+
25+
publish:
26+
needs: test
27+
runs-on: ubuntu-latest
28+
if: startsWith(github.ref, 'refs/tags/v')
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: actions/setup-node@v4
32+
with:
33+
node-version: 20
34+
registry-url: 'https://registry.npmjs.org'
35+
- run: npm install
36+
- run: npm run build
37+
- run: npm publish --access public
38+
env:
39+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Dependencies
2+
node_modules/
3+
4+
# Build output
5+
dist/
6+
7+
# CodeXRay local index
8+
.codexray/
9+
10+
# OS files
11+
.DS_Store
12+
Thumbs.db
13+
14+
# IDE
15+
.vscode/
16+
.idea/
17+
*.swp
18+
*.swo
19+
20+
# Logs
21+
*.log
22+
npm-debug.log*
23+
24+
# Environment
25+
.env
26+
.env.local

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=true

CLAUDE.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# CodeXRay — AI Agent Instructions
2+
3+
This project uses CodeXRay for semantic code intelligence. Use these MCP tools instead of scanning files.
4+
5+
## Workflow
6+
7+
1. **codexray_overview** → project structure, languages, key symbols (START HERE)
8+
2. **codexray_context** → task-relevant code + snippets (replaces 5-10 file reads)
9+
3. **codexray_search** → find symbols by name/keyword (faster than grep/glob)
10+
4. **codexray_semantic** → find code by meaning ("authentication" → login, validateToken)
11+
5. **codexray_node** → detailed symbol info + full source code
12+
6. **codexray_callers/callees** → trace call relationships
13+
7. **codexray_deps** → full dependency tree of any symbol
14+
8. **codexray_path** → shortest connection between two symbols
15+
9. **codexray_impact** → blast radius analysis before changes
16+
10. **codexray_hotspots** → most critical/connected symbols
17+
11. **codexray_deadcode** → find unused functions/classes
18+
12. **codexray_circular** → detect circular dependencies
19+
13. **codexray_complexity** → find high-complexity functions
20+
14. **codexray_files** → browse file structure with stats
21+
15. **codexray_status** → index health check
22+
23+
## Key Principle
24+
Query the graph instead of scanning files. One `codexray_context` call replaces 5-10 file reads.

0 commit comments

Comments
 (0)