@dazarodev/aft-mcp-darwin-x64 0.1.2 → 0.1.4
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.
- package/README.md +137 -0
- package/bin/aft-mcp +0 -0
- package/package.json +16 -4
package/README.md
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
# aft-mcp
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="assets/bg.jpg" alt="aft-mcp: 18,750 tokens read → 940 tokens needed" width="600" />
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
Tree-sitter powered code analysis MCP server for Claude Code.
|
|
8
|
+
|
|
9
|
+
Semantic navigation, call-graph analysis, and structural search — as MCP tools your AI agent can call directly.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## What it does
|
|
14
|
+
|
|
15
|
+
| Tool | Description |
|
|
16
|
+
| ------------ | --------------------------------------------------- |
|
|
17
|
+
| `outline` | File structure — symbols, signatures, line ranges |
|
|
18
|
+
| `zoom` | Symbol detail with call annotations |
|
|
19
|
+
| `callers` | Who calls this symbol |
|
|
20
|
+
| `call_tree` | What this symbol calls (recursive) |
|
|
21
|
+
| `impact` | What breaks if this symbol changes |
|
|
22
|
+
| `trace_to` | Execution path from entry points to a symbol |
|
|
23
|
+
| `trace_data` | Data flow analysis through a symbol |
|
|
24
|
+
| `ast_search` | Structural pattern matching via tree-sitter queries |
|
|
25
|
+
| `read` | File content with line ranges |
|
|
26
|
+
|
|
27
|
+
## Supported languages
|
|
28
|
+
|
|
29
|
+
TypeScript, TSX, JavaScript, Python, Rust, Go, Markdown, CSS, HTML, Apex, Java, Ruby, C, C++, C#, PHP
|
|
30
|
+
|
|
31
|
+
## Installation
|
|
32
|
+
|
|
33
|
+
### npx (recommended)
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
claude mcp add -s user aft-mcp -- npx -y aft-mcp@latest
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
That's it. Claude Code will download the correct binary for your platform on first run.
|
|
40
|
+
|
|
41
|
+
### One-line install
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
curl -fsSL https://raw.githubusercontent.com/dazarodev/aft-mcp/main/scripts/install.sh | bash
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Downloads the binary to `~/.claude/bin/aft-mcp`, verifies it works, and registers it as an MCP server via `claude mcp add`.
|
|
48
|
+
|
|
49
|
+
### From source
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
cargo install --git https://github.com/dazarodev/aft-mcp.git
|
|
53
|
+
claude mcp add -s user aft-mcp -- ~/.cargo/bin/aft-mcp
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Manual
|
|
57
|
+
|
|
58
|
+
Download a binary from [Releases](https://github.com/dazarodev/aft-mcp/releases), then:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
claude mcp add -s user aft-mcp -- /path/to/aft-mcp
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Usage
|
|
65
|
+
|
|
66
|
+
Once installed, Claude Code automatically discovers the MCP tools. Ask your agent to:
|
|
67
|
+
|
|
68
|
+
- "outline this file" — get the structure of any source file
|
|
69
|
+
- "who calls this function?" — trace callers across the codebase
|
|
70
|
+
- "what breaks if I change this?" — impact analysis before refactoring
|
|
71
|
+
- "trace data flow through this variable" — understand how data moves
|
|
72
|
+
|
|
73
|
+
### Teach Claude when to use aft-mcp
|
|
74
|
+
|
|
75
|
+
Add this to your project's `CLAUDE.md` (or `~/.claude/CLAUDE.md` for global):
|
|
76
|
+
|
|
77
|
+
```markdown
|
|
78
|
+
## MCP: aft-mcp
|
|
79
|
+
|
|
80
|
+
Use the `aft` MCP tool for code navigation instead of reading entire files:
|
|
81
|
+
|
|
82
|
+
- `outline` before reading a file — to understand its structure first
|
|
83
|
+
- `zoom` to read a specific symbol instead of the whole file
|
|
84
|
+
- `callers` / `call_tree` before refactoring — to understand impact
|
|
85
|
+
- `impact` before changing a function signature
|
|
86
|
+
- `ast_search` for structural code search (better than grep for code patterns)
|
|
87
|
+
|
|
88
|
+
Prefer aft tools over raw file reads when exploring unfamiliar code.
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Uninstall
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
claude mcp remove -s user aft-mcp
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
If you installed via the shell script or manually, also remove the binary:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
rm ~/.claude/bin/aft-mcp # shell script install
|
|
101
|
+
rm ~/.cargo/bin/aft-mcp # cargo install
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## Configuration
|
|
105
|
+
|
|
106
|
+
Create `aft.toml` in your **project root** (next to `package.json`, `sfdx-project.json`, etc.) or `~/.config/aft/config.toml` for global defaults. Project-level config takes priority.
|
|
107
|
+
|
|
108
|
+
```toml
|
|
109
|
+
# Activate only specific languages (default: all)
|
|
110
|
+
languages = ["typescript", "javascript", "python", "rust"]
|
|
111
|
+
|
|
112
|
+
# Project root override (default: auto-detect)
|
|
113
|
+
# root = "/path/to/project"
|
|
114
|
+
|
|
115
|
+
# Framework lifecycle methods treated as entry points for trace_to.
|
|
116
|
+
# Add methods your framework calls automatically (LWC, React, Angular, Vue, etc.)
|
|
117
|
+
# No rebuild needed — just edit this file and restart Claude Code.
|
|
118
|
+
[entry_points]
|
|
119
|
+
lifecycle = [
|
|
120
|
+
"connectedCallback", # LWC
|
|
121
|
+
"disconnectedCallback", # LWC
|
|
122
|
+
"renderedCallback", # LWC
|
|
123
|
+
"errorCallback", # LWC
|
|
124
|
+
]
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Adding language support
|
|
128
|
+
|
|
129
|
+
See [docs/ADDING-LANGUAGE.md](docs/ADDING-LANGUAGE.md) for instructions on adding new tree-sitter grammars.
|
|
130
|
+
|
|
131
|
+
## Attribution
|
|
132
|
+
|
|
133
|
+
Based on [cortexkit/aft](https://github.com/cortexkit/aft) v0.7.3 by Ufuk Altinok. Extended with MCP protocol support, pluggable language registry, and Claude Code marketplace integration.
|
|
134
|
+
|
|
135
|
+
## License
|
|
136
|
+
|
|
137
|
+
MIT — see [LICENSE](LICENSE).
|
package/bin/aft-mcp
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dazarodev/aft-mcp-darwin-x64",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "aft-mcp binary for macOS x64 (Intel)",
|
|
5
5
|
"os": [
|
|
6
6
|
"darwin"
|
|
@@ -12,12 +12,24 @@
|
|
|
12
12
|
"files": [
|
|
13
13
|
"bin/"
|
|
14
14
|
],
|
|
15
|
-
"bin": {
|
|
16
|
-
"aft-mcp": "bin/aft-mcp"
|
|
17
|
-
},
|
|
18
15
|
"engines": {
|
|
19
16
|
"node": ">=18"
|
|
20
17
|
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"mcp",
|
|
20
|
+
"mcp-server",
|
|
21
|
+
"model-context-protocol",
|
|
22
|
+
"claude",
|
|
23
|
+
"claude-code",
|
|
24
|
+
"code-analysis",
|
|
25
|
+
"code-intelligence",
|
|
26
|
+
"tree-sitter",
|
|
27
|
+
"ast",
|
|
28
|
+
"call-graph",
|
|
29
|
+
"static-analysis",
|
|
30
|
+
"code-navigation",
|
|
31
|
+
"ai-tools"
|
|
32
|
+
],
|
|
21
33
|
"license": "MIT",
|
|
22
34
|
"repository": {
|
|
23
35
|
"type": "git",
|