목차

, , , , , , , ,

graphify

Graphify는 codebase, 문서, database schema 등을 query 가능한 knowledge graph로 변환하는 open-source CLI 및 AI coding assistant skill이다. 공식 PyPI package 이름은 graphifyy(y 두 개)이고 설치 후 실행하는 command는 graphify다.

Summary

Installation

공식 package는 graphifyy이고 CLI command는 graphify다. PyPI의 다른 graphify* package와 혼동하지 않는다.

Debian / Ubuntu

공식 upstream 문서는 Python 3.10 이상과 uv 또는 pipx를 사용한다. distribution repository의 Python version이 요구 조건을 만족하는지 먼저 확인한다.

# upstream이 안내하는 uv installer
curl -LsSf https://astral.sh/uv/install.sh | sh
 
# Graphify 설치
uv tool install graphifyy

RHEL / Fedora

Graphify 전용 공식 RPM/DNF repository는 안내되지 않는다. Linux 공통 uv 설치 후 PyPI package를 격리 설치한다.

curl -LsSf https://astral.sh/uv/install.sh | sh
uv tool install graphifyy

macOS

brew install python@3.12 uv
uv tool install graphifyy

Windows

winget install astral-sh.uv
uv tool install graphifyy

Alternative and verification

# 대안
pipx install graphifyy
 
# 설치 확인
graphify --version
 
# update
uv tool upgrade graphifyy

Usage

# 현재 repository 분석
graphify .
 
# 변경된 파일 중심으로 갱신
graphify update .
 
# graph query
graphify query "auth와 database는 어떻게 연결되는가?"
graphify path "UserService" "DatabasePool"
graphify explain "RateLimiter"

Examples

Graph build and update

graphify .
graphify ./docs --update
graphify . --mode deep
graphify . --no-viz
graphify . --wiki
graphify . --cluster-only --resolution 1.5

Query and graph operations

graphify query "billing을 소유하는 component는?"
graphify path "ApiGateway" "RedisClient"
graphify explain "AuthService"
graphify merge-graphs a.json b.json --out merged.json

관계의 confidence는 EXTRACTED, INFERRED, AMBIGUOUS로 구분된다. 중요한 판단에는 결과의 source file과 line citation을 함께 검토한다.

AI Assistant Skill

# 감지된 assistant에 skill 등록
graphify install
 
# 현재 project에만 등록
graphify install --project
 
# Codex project-scoped 등록
graphify install --project --platform codex
 
# 제거; --purge를 추가하면 graphify-out도 삭제
graphify uninstall

MCP

# stdio server
python -m graphify.serve graphify-out/graph.json
 
# 여러 client가 공유하는 HTTP server
python -m graphify.serve graphify-out/graph.json --transport http --port 8080
 
# console script
graphify-mcp graphify-out/graph.json

MCP server는 query, node 조회, neighbor 탐색, shortest path, graph 통계, PR 영향 분석 tool을 제공한다. HTTP transport를 외부에 노출할 때는 –api-key 또는 GRAPHIFY_API_KEY를 설정하고 network 접근을 제한한다.

Config

# .graphifyignore
.env
secrets/
vendor/
generated/
graphify-out/
API key, credential file, production dump, private key를 graph input이나 repository에 넣지 않는다. Code AST 처리는 local이지만 문서·PDF·image 같은 semantic extraction은 선택한 AI backend로 content를 전송할 수 있다. data residency가 중요하면 input 범위를 제한하고 –backend ollama 같은 local backend를 검토한다.

Optional Features

필요한 기능만 extra로 설치한다.

uv tool install "graphifyy[pdf]"
uv tool install "graphifyy[office]"
uv tool install "graphifyy[mcp]"
uv tool install "graphifyy[svg]"
uv tool install "graphifyy[sql]"
uv tool install "graphifyy[terraform]"
uv tool install "graphifyy[all]"

Troubleshooting

Compatibility

Help

graphify --help

See Also

History