Inspect Public GitHub Repo AST X-Ray
xray_github_repoInspect a public GitHub repository via read-only static Tree-sitter AST analysis (<= 100MB source archive, strictly read-only) to retrieve its AI Hangover Score (0-100), complexity hotspots, and Day-0 baseline preview. Example: repo='go-chi/chi' returns the AST scorecard for go-chi/chi. Use when auditing a public GitHub owner/repo URL. Do NOT use when checking private repositories (private codebases require local CLI inspection via @mgantlett/nomos).
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo": "go-chi/chi"
},
"name": "xray_github_repo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Public GitHub owner/repo slug or full https://github.com/<owner>/<repo> URL. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Normalized owner/repo slug. | |
| grade | No | Structural health grade. | |
| summary | Yes | Deterministic Markdown response summary. | |
| canonicalUrl | Yes | Canonical documentation or twin URL for citation. | |
| hangoverScore | No | Composite 0-100 AI Hangover structural debt score. |