Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ members = [
]

[workspace.package]
version = "2.2.1"
version = "2.2.2"
edition = "2021"
rust-version = "1.80"
license = "MIT"
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ codegraph serve --mcp
codegraph serve --mcp --http --addr 0.0.0.0:8123
```

Reset generated index data without losing `config.toml` with `codegraph clean` (or remove the whole `.codegraph/` with `codegraph deinit`).

The agent binds the workspace with `codegraph_init {"path": ...}` and gets tools like `codegraph_search_symbol`, `codegraph_flow`, `codegraph_callers`, `codegraph_impact`, `codegraph_context` — all querying over MCP.

## 📊 Comparison — Why Not X?
Expand Down Expand Up @@ -63,13 +65,12 @@ CodeGraph supports parsing both **source code** (via tree-sitter) and **configur

| Format | Extension | Parser | Access |
|--------|-----------|--------|--------|
| YAML | `.yaml`, `.yml` | YamlParser | `codegraph doc ingest` / MCP |
| JSON | `.json` | JsonParser | `codegraph doc ingest` / MCP |
| TOML | `.toml` | TomlParser | `codegraph doc ingest` / MCP |
| **HCL** (HashiCorp) | `.hcl`, `.tf` | HclParser | `codegraph doc ingest` / MCP |
| YAML | `.yaml`, `.yml` | YamlParser | MCP |
| JSON | `.json` | JsonParser | MCP |
| TOML | `.toml` | TomlParser | MCP |
| **HCL** (HashiCorp) | `.hcl`, `.tf` | HclParser | MCP |

Document files can be ingested into a **document graph** and queried via:
- **CLI**: `codegraph doc ingest <path>`, `codegraph doc search`, `codegraph doc stats`
- **MCP**: `codegraph_graphdoc_ingest`, `codegraph_graphdoc_search`, `codegraph_graphdoc_hydrate`, `codegraph_graphdoc_list`, `codegraph_graphdoc_stats`
- **GraphQL**: `docList`, `docSearch`, `docStats` queries and `docIngest`, `docSearch`, `docStats` mutations

Expand Down
Loading
Loading