
trngtien/vfs
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
trngtien/vfs는 https://github.com/trngtien/vfs.에서 가져온 MCP 서버 후보입니다.
개요
trngtien/vfs는 https://github.com/trngtien/vfs.에서 가져온 MCP 서버 후보입니다.
개요(AI 번역)
내보낸 함수 서명을 추출하고 본체를 제거하여 — AI 에이전트가 코드 검색마다 읽는 토큰의 60-70%를 제거하세요.
설치 • 빠른 시작 • 명령어 • AI 도구 설정 • 지원 언어 • 보안 및 개인정보 보호
vfs는 AST와 트리시터를 통해 소스 파일을 파싱하고, 내보내진 서명만 반환합니다. 이는 모든 코드베이스의 간결한 '목차’입니다. 한 명령(또는 MCP 호출 하나)이 grep-and-read-모든 것을 정확한 file:line 포인터로 대체합니다. 단일 Go 바이너리, 네트워크 접근 제로, 모든 AI 도구와 호환됩니다.
VFS가 하는 일들
| 대신에 | VFS가 |
|---|---|
grep -r "HandleLogin" . → 345줄의 성냥 |
21개의 서명선 |
| 7,979개의 선을 읽고 하나의 함수를 찾으려고 | auth.go:23: func HandleLogin(w http.ResponseWriter, r *http.Request) |
| ~48,757개의 컨텍스트 토큰 | ~570개의 토큰 |
저축 작동 원리
vfs는 모델에 도달하는 바이트 수의 소스를 측정하며, 이는 bytes / 4로 추정됩니다. 몸체는 파스 시점에 스트립되므로, 50줄의 컨텍스트가 소요되는 함수는 1줄을 사용합니다.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
vfs
Extract exported function signatures with bodies stripped – cutting 60-70% of the tokens your AI agent reads on every code search.
Install • Quick Start • Commands • Setup for AI Tools • Supported Languages • Security & Privacy
vfs parses source files via AST and tree-sitter and returns only exported signatures – a compact “table of contents” of any codebase. One command (or one MCP call) replaces grep-and-read-everything with exact file:line pointers. Single Go binary, zero network access, works with any AI tool.
What VFS Does
| Instead of | vfs returns |
|---|---|
grep -r "HandleLogin" . → 345 lines of matches |
21 signature lines |
| Reading 7,979 lines to find one function | auth.go:23: func HandleLogin(w http.ResponseWriter, r *http.Request) |
| ~48,757 tokens of context | ~570 tokens |
How Savings Work
vfs measures bytes of source that reach the model, estimated as bytes / 4. Bodies are stripped at parse time, so a function that costs 50 lines of context costs one line. The savings are real but the absolute token numbers are approximate – vfs ships no tokenizer.
On this repository (vfs bench --self, pattern "Extract"):
| Read all files | grep | vfs | |
|---|---|---|---|
| Output size | 190.5 KB | 47.5 KB | 2.2 KB |
| Lines | 7,979 | 345 | 21 |
| Est. tokens | 48,757 | 12,154 | 570 |
- 98.8% fewer tokens vs reading all files (48,757 → 570)
- 95.3% fewer tokens vs grep (12,154 → 570)
These are reductions in context tokens, not in your bill – but for a tool your agent runs on every search, they add up fast.
Installation
Pre-built binary (Linux – nothing else needed)
# x86_64
curl -L https://github.com/TrNgTien/vfs/releases/latest/download/vfs-linux-amd64.tar.gz | tar xz
sudo mv vfs /usr/local/bin/
# ARM64
curl -L https://github.com/TrNgTien/vfs/releases/latest/download/vfs-linux-arm64.tar.gz | tar xz
sudo mv vfs /usr/local/bin/
Build from source (macOS / Linux / Windows)
설치
docker run --rm -v $(pwd):/workspace -p 8080:8080 -p 3000:3000 vfs-mcp설정
{
"mcpServers": {
"vfs": {
"command": "vfs",
"args": ["mcp"]
}
}
}