gographctx 0.1.0__py3-none-win_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: gographctx
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: AST call graph & blast radius intelligence MCP server for Python, TypeScript, and Go.
|
|
5
|
+
Home-page: https://github.com/roshankumar0036singh/gographctx
|
|
6
|
+
Project-URL: Repository, https://github.com/roshankumar0036singh/gographctx
|
|
7
|
+
Project-URL: Issues, https://github.com/roshankumar0036singh/gographctx/issues
|
|
8
|
+
License: MIT
|
|
9
|
+
Requires-Python: >=3.8
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
|
|
12
|
+
<div align="center">
|
|
13
|
+
|
|
14
|
+
<p>
|
|
15
|
+
<strong>English</strong> ·
|
|
16
|
+
<a href="README.zh-CN.md">简体中文</a> ·
|
|
17
|
+
<a href="README.ja.md">日本語</a> ·
|
|
18
|
+
<a href="README.ko.md">한국어</a> ·
|
|
19
|
+
<a href="README.es.md">Español</a> ·
|
|
20
|
+
<a href="README.pt-BR.md">Português (BR)</a> ·
|
|
21
|
+
<a href="README.de.md">Deutsch</a> ·
|
|
22
|
+
<a href="README.fr.md">Français</a>
|
|
23
|
+
</p>
|
|
24
|
+
|
|
25
|
+
<img src="docs/assets/hero-banner.png" alt="GoGraphCtx — Single-Binary Code Graph Indexer and Confidence-Aware MCP Server" width="100%"/>
|
|
26
|
+
|
|
27
|
+
<h1>GoGraphCtx</h1>
|
|
28
|
+
|
|
29
|
+
<p>
|
|
30
|
+
<strong>Single-Binary, Zero-Dependency Code Graph Indexer & Confidence-Aware MCP Server for AI Coding Agents</strong>
|
|
31
|
+
</p>
|
|
32
|
+
|
|
33
|
+
<p>
|
|
34
|
+
<a href="https://m8ven.ai/mcp/roshankumar0036singh-gographctx-8guk9w?s=readme"><img src="https://m8ven.ai/badge/mcp/roshankumar0036singh-gographctx-8guk9w?v=dd88a7ba9bd13a16b4f7c9a81a71be13" alt="M8ven Score" height="20"></a>
|
|
35
|
+
<a href="https://github.com/roshankumar0036singh/gographctx/actions/workflows/unit-tests.yml"><img src="https://github.com/roshankumar0036singh/gographctx/actions/workflows/unit-tests.yml/badge.svg" alt="Unit Tests"></a>
|
|
36
|
+
<a href="https://github.com/roshankumar0036singh/gographctx/actions/workflows/lint-security.yml"><img src="https://github.com/roshankumar0036singh/gographctx/actions/workflows/lint-security.yml/badge.svg" alt="Lint & Security"></a>
|
|
37
|
+
<img src="https://img.shields.io/badge/Go-1.25+-00ADD8?logo=go&logoColor=white" alt="Go 1.25+">
|
|
38
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-green.svg" alt="MIT License"></a>
|
|
39
|
+
<img src="https://img.shields.io/badge/Binary-15.8%20MB%20Static-22c55e" alt="15.8 MB Static Binary">
|
|
40
|
+
<img src="https://img.shields.io/badge/Database-Zero%20External%20DB-0ea5e9" alt="Zero External DB">
|
|
41
|
+
<img src="https://img.shields.io/badge/MCP-7%20Focused%20Tools-8b5cf6" alt="7 MCP Tools">
|
|
42
|
+
<a href="CONTRIBUTING.md"><img src="https://img.shields.io/badge/PRs-Welcome-brightgreen.svg" alt="PRs Welcome"></a>
|
|
43
|
+
</p>
|
|
44
|
+
|
|
45
|
+
<p>
|
|
46
|
+
<em>Give Claude Code, Cursor, Windsurf, VS Code Copilot, and Cline an accurate, token-budgeted call graph, blast-radius analysis, and repository structure—in <strong>533ms</strong> with <strong>zero Neo4j, Docker, or Python dependencies</strong>.</em>
|
|
47
|
+
</p>
|
|
48
|
+
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Short Interactive Demo
|
|
54
|
+
|
|
55
|
+
<p align="center">
|
|
56
|
+
<img src="docs/assets/terminal-demo.svg" alt="GoGraphCtx Terminal Demo: 533ms indexing, get_impact MCP response, and 22.8ms live file watch" width="100%"/>
|
|
57
|
+
</p>
|
|
58
|
+
|
|
59
|
+
<details>
|
|
60
|
+
<summary><strong>View Architecture & Comparison Visual</strong></summary>
|
|
61
|
+
<p align="center">
|
|
62
|
+
<img src="docs/assets/demo-preview.png" alt="Why GoGraphCtx vs Grep and Legacy Graph DBs Infographic" width="100%"/>
|
|
63
|
+
</p>
|
|
64
|
+
</details>
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Why Use GoGraphCtx?
|
|
69
|
+
|
|
70
|
+
AI coding agents struggle on real codebases for three reasons:
|
|
71
|
+
|
|
72
|
+
1. **The "Context Tax" of `grep` and `glob`:** Agents waste thousands of tokens and dozens of round-trips scanning comments, imports, and homonyms (`Service.run` vs `Job.run`) instead of traversing actual cross-file call chains.
|
|
73
|
+
2. **Silent Guesses in Heuristic Graph Tools:** Legacy code-graph tools often emit fallback guesses (substring path matches or alphabetical-first matches) as verified call edges, causing agents to miss callers or refactor the wrong function.
|
|
74
|
+
3. **Heavy Infrastructure:** Python/Cypher graph servers require Neo4j/FalkorDB/Docker containers, ~90 pip dependencies, or brittle per-language LSP setups, taking seconds per query and hundreds of megabytes of RAM.
|
|
75
|
+
|
|
76
|
+
**GoGraphCtx solves all three in one 15.8 MB static binary:**
|
|
77
|
+
- **Pure-Go AST & Resolution Engine:** Compiled-in `gotreesitter` parsers (`CGO_ENABLED=0`) for **Go, Python, TypeScript/TSX, JavaScript/JSX, Rust, and Java**.
|
|
78
|
+
- **8-Tier Confidence Model:** Every edge carries explicit confidence (`certain` vs `LIKELY_CALLS` vs `CallSite` evidence). Speculative guesses are never misrepresented as verified facts.
|
|
79
|
+
- **Zero External Graph Database:** Builds an indexed in-memory graph and persists an atomic, zstd-compressed binary snapshot + CRC32C Write-Ahead Log (`.ggctx/index.ggctx`).
|
|
80
|
+
- **7 Token-Budgeted MCP Tools:** Designed around strict LLM context budgets (`default: 4000` tokens) with binary-search shrinking, repo-relative paths, and confidence summaries—instead of 30–50 noisy overlapping tools.
|
|
81
|
+
- **Real-Time Incremental Watcher (`~22.8ms`):** `fsnotify` re-indexes changed files and affected reverse-dependents in milliseconds alongside live MCP serving.
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## 30-Second Quickstart
|
|
86
|
+
|
|
87
|
+
### 1. Install (No Go Required)
|
|
88
|
+
|
|
89
|
+
**macOS / Linux:**
|
|
90
|
+
```bash
|
|
91
|
+
curl -fsSL https://raw.githubusercontent.com/roshankumar0036singh/gographctx/main/scripts/install.sh | sh
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
**Windows (PowerShell):**
|
|
95
|
+
```powershell
|
|
96
|
+
irm https://raw.githubusercontent.com/roshankumar0036singh/gographctx/main/scripts/install.ps1 | iex
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
**Go toolchain (`Go 1.25+`) or [GitHub Releases](https://github.com/roshankumar0036singh/gographctx/releases):**
|
|
100
|
+
```bash
|
|
101
|
+
go install github.com/roshankumar0036singh/gographctx/cmd/gographctx@latest
|
|
102
|
+
```
|
|
103
|
+
*(Or build locally from source: `git clone https://github.com/roshankumar0036singh/gographctx.git && cd gographctx && make build`.)*
|
|
104
|
+
|
|
105
|
+
### 2. Index & Query Any Repository
|
|
106
|
+
```bash
|
|
107
|
+
# Index a repository in ~0.5s (creates .ggctx/index.ggctx)
|
|
108
|
+
gographctx index ./your-repo
|
|
109
|
+
|
|
110
|
+
# Check index statistics & resolution coverage
|
|
111
|
+
gographctx stats ./your-repo
|
|
112
|
+
|
|
113
|
+
# Run an impact analysis query directly from CLI
|
|
114
|
+
gographctx query get_impact pkg::Service::Handle --path ./your-repo
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### 3. Connect Your AI Coding Agent (MCP)
|
|
118
|
+
|
|
119
|
+
<details open>
|
|
120
|
+
<summary><strong>Claude Code</strong></summary>
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
claude mcp add gographctx -- gographctx watch /absolute/path/to/your/repo
|
|
124
|
+
```
|
|
125
|
+
</details>
|
|
126
|
+
|
|
127
|
+
<details>
|
|
128
|
+
<summary><strong>Cursor / Windsurf / Claude Desktop / Cline</strong></summary>
|
|
129
|
+
|
|
130
|
+
Add to `~/.cursor/mcp.json` or `claude_desktop_config.json`:
|
|
131
|
+
```json
|
|
132
|
+
{
|
|
133
|
+
"mcpServers": {
|
|
134
|
+
"gographctx": {
|
|
135
|
+
"command": "gographctx",
|
|
136
|
+
"args": ["watch", "/absolute/path/to/your/repo"]
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
</details>
|
|
142
|
+
|
|
143
|
+
<details>
|
|
144
|
+
<summary><strong>VS Code Copilot MCP (<code>.vscode/mcp.json</code>)</strong></summary>
|
|
145
|
+
|
|
146
|
+
```json
|
|
147
|
+
{
|
|
148
|
+
"servers": {
|
|
149
|
+
"gographctx": {
|
|
150
|
+
"type": "stdio",
|
|
151
|
+
"command": "gographctx",
|
|
152
|
+
"args": ["serve", "${workspaceFolder}"]
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
</details>
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## Measured Benchmarks & Multi-Tool Comparison
|
|
162
|
+
|
|
163
|
+
All GoGraphCtx numbers below were measured directly via [`cmd/ggctx-bench`](cmd/ggctx-bench/main.go) (`go1.25.1`, `windows/amd64`, 16 vCPUs):
|
|
164
|
+
|
|
165
|
+
| Benchmark Metric | Measured Result | Target SLA |
|
|
166
|
+
|---|---|---|
|
|
167
|
+
| **Flask-scale Python repo** (83 `.py` files, 705 nodes, 2,208 edges) | **533.39 ms** / **51.02 MB RSS** | `< 1s` / `< 80 MB` |
|
|
168
|
+
| **Go monorepo** (1,000 `.go` files, 6,002 nodes, 8,000 edges) | **1,401.70 ms** / **116.92 MB RSS** | `< 3s` / `< 150 MB` |
|
|
169
|
+
| **Flask strong-tier call edge ratio** | **100.0%** (`TierStructural..TierSamePackage`) | `>= 85%` |
|
|
170
|
+
| **Incremental file update** (body edit / export change, p50) | **22.78 ms** / **22.77 ms** | `< 50ms` / `< 100ms` |
|
|
171
|
+
| **MCP tool query latency** (warm stdio, p95) | **3.80 ms** | `< 10 ms` |
|
|
172
|
+
| **CLI cold startup** (`gographctx version`, p50) | **22.80 ms** | `< 50 ms` |
|
|
173
|
+
| **Stripped static binary** (`CGO_ENABLED=0`) | **15.79 MB** | `< 30 MB` |
|
|
174
|
+
|
|
175
|
+
### How GoGraphCtx Compares Against Other Code Intelligence Tools
|
|
176
|
+
|
|
177
|
+
| Tool | Category | Runtime / Setup | Call Graph | Impact BFS | Confidence Tiers | Key Trade-off vs GoGraphCtx |
|
|
178
|
+
|---|---|---|---|---|---|---|
|
|
179
|
+
| **GoGraphCtx** | Code-Graph MCP | **15.8 MB static Go binary**, zero external DB | Yes | Yes (`get_impact`) | **Yes** (8 tiers + `LIKELY_CALLS` + `unresolved_hints`) | **98.4% Flask precision**, sub-second index, zero DB setup (trades aggressive speculative guesses for high-precision edges + explicit unresolved disclosure) |
|
|
180
|
+
| **CodeGraphContext (CGC)** | Code-Graph MCP | Python + ~90 pip deps + Neo4j / FalkorDB / Kuzu | Yes | Yes | Partial (emits Tier 7–8 guesses as facts; ~61% of edges) | **69.2% Flask precision**, higher heuristic recall (~70% vs Jedi), requires Cypher DB & Python env |
|
|
181
|
+
| **SCIP** (`scip-python`, `scip-go`) | Compiler Oracle | Node/Python/Go toolchain + full dependency install | Yes | External script | Exact compiler oracle | Requires buildable env & project deps installed |
|
|
182
|
+
| **Universal Ctags** | Tag Indexer | Native CLI binary | No | No | No | No cross-file call graph or receiver type resolution |
|
|
183
|
+
| **ast-grep (`sg`)** | AST Search CLI | Rust binary | No | No | Exact syntax match | Great ad-hoc syntax search, no persistent call/impact graph |
|
|
184
|
+
| **Serena** | LSP MCP Server | Python + live language servers (`pyright`, `gopls`) | Yes | Limited | Type-checker-backed | Heavier LSP warmup & 50+ tool context footprint |
|
|
185
|
+
| **ripgrep (`rg`)** | Lexical Search | Rust binary | No | No | Text only | Fast regex, high noise on homonyms/imports/comments |
|
|
186
|
+
|
|
187
|
+
See [docs/benchmarks.md](docs/benchmarks.md) for reproduction commands (`ggctx-bench`), SCIP ground-truth evaluation details, and CI release regression workflows.
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## 7 Focused MCP Tools
|
|
192
|
+
|
|
193
|
+
| Tool | Purpose | Key Parameters |
|
|
194
|
+
|---|---|---|
|
|
195
|
+
| `find_symbol` | Pattern/kind/file/language symbol lookup | `name`, `kind`, `file`, `language`, `exported_only`, `limit` |
|
|
196
|
+
| `get_callers` | Direct callers with confidence tier & call sites | `symbol`, `file`, `include_likely`, `limit` |
|
|
197
|
+
| `get_callees` | Direct callees with confidence tier & call sites | `symbol`, `file`, `include_likely`, `limit` |
|
|
198
|
+
| `get_impact` | Transitive reverse-dependency blast radius | `symbol`, `file`, `max_depth`, `limit` |
|
|
199
|
+
| `file_outline` | Structured imports, classes, functions, fields, vars | `file`, `include_private` |
|
|
200
|
+
| `search_code` | Multi-filter query with cyclomatic complexity | `name_pattern`, `qname_pattern`, `kinds`, `min_complexity`, `max_complexity` |
|
|
201
|
+
| `repo_overview` | Repo metrics, language mix & coverage summary | `include_top_complex`, `limit` |
|
|
202
|
+
|
|
203
|
+
Full JSON schemas and envelope examples are documented in [docs/mcp-tools.md](docs/mcp-tools.md).
|
|
204
|
+
|
|
205
|
+
---
|
|
206
|
+
|
|
207
|
+
## Comprehensive Documentation
|
|
208
|
+
|
|
209
|
+
- **[MCP Tools Reference](docs/mcp-tools.md)** — Complete schemas, confidence summaries, and token-budget truncation behavior
|
|
210
|
+
- **[CLI, Configuration & IDE Setup](docs/cli-and-config.md)** — `index`, `serve`, `watch`, `query`, `stats`, `.ggctxrc`, `.ggctxignore`, `GGCTX_*` env vars, and editor configs
|
|
211
|
+
- **[Architecture & Storage](docs/architecture.md)** — In-memory `Graph`/`ReadView`, compact `.ggctx` binary snapshots, CRC32C WAL, 8-tier resolver, and `fsnotify` watcher
|
|
212
|
+
- **[Language Support Matrix](docs/languages.md)** — Go, Python, TypeScript/TSX, JavaScript/JSX, Rust, and Java AST + resolution capabilities
|
|
213
|
+
- **[Benchmarks & SCIP Validation](docs/benchmarks.md)** — Reproducible benchmark methodology and multi-tool comparison suite
|
|
214
|
+
- **[Contributing Guide](CONTRIBUTING.md)** · **[Security Policy](SECURITY.md)** · **[Code of Conduct](CODE_OF_CONDUCT.md)** · **[MIT License](LICENSE)**
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
## Roadmap (`v0.2`)
|
|
219
|
+
|
|
220
|
+
- Package manager distribution (Homebrew tap formula, Scoop manifest, container image)
|
|
221
|
+
- Expanded Python/TS/Rust framework idioms and cross-package trait/protocol resolution
|
|
222
|
+
- Multi-repository workspace graph linking and richer CLI query presets
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## Contributing & Community
|
|
227
|
+
|
|
228
|
+
Contributions of all sizes are welcome! Check [CONTRIBUTING.md](CONTRIBUTING.md) to set up your local environment, add new language resolvers, or run `make bench-suite`.
|
|
229
|
+
|
|
230
|
+
If GoGraphCtx saves tokens and time for your AI coding workflow, please consider giving the repository a **Star**!
|
|
231
|
+
|
|
232
|
+
<!-- mcp-name: io.github.roshankumar0036singh/gographctx -->
|
|
233
|
+
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
gographctx-0.1.0.data/scripts/gographctx.exe,sha256=gPgcWVugfqqaOcu0iCSUrAD9R4j8IhhGmxHCmmMiPcU,15449088
|
|
2
|
+
gographctx-0.1.0.dist-info/METADATA,sha256=Z4M7W-lpp-Db9zyOkfznjKeClbiv-V_Rn44K7nQM4VE,12030
|
|
3
|
+
gographctx-0.1.0.dist-info/WHEEL,sha256=YH-Gv0ZYGabwUR6x6Q78DkbwFjI9aJ1VwR06wxnj0Z4,106
|
|
4
|
+
gographctx-0.1.0.dist-info/RECORD,,
|