@bitsness/grapuco-cli
v1.12.3
Published
Grapuco CLI — Parse your code locally, sync architecture to cloud. Zero source code upload.
Maintainers
Readme
Grapuco CLI
Transform your source code into a Knowledge Graph for AI Coding Agents.
Grapuco CLI parses your codebase locally, extracts architecture metadata (functions, classes, relationships), and syncs it to the Grapuco cloud — your source code never leaves your machine.
Getting Started
# Install globally
npm install -g @bitsness/grapuco-cli
# Login with your API key (get one at https://grapuco.com/dashboard)
grapuco login --api-key YOUR_API_KEY
# Initialize in your project
cd ~/projects/my-app
grapuco init
# Parse & push your codebase
grapuco ingest
# Auto-configure MCP for your editors
grapuco setupWhat Does It Do?
- Parse — Scans your code locally using AST analysis
- Push — Syncs only architecture metadata (zero source code upload)
- Connect — Auto-configures MCP for AI coding editors so they understand your codebase
Commands
Auth
| Command | Description |
|---------|-------------|
| grapuco login | Authenticate with your Grapuco API key |
| Flag | Description |
|------|-------------|
| --api-key <key> | API key (or enter interactively) |
| --server <url> | Server URL (default: https://api.grapuco.com) |
Project Setup
| Command | Description |
|---------|-------------|
| grapuco init | Initialize Grapuco in the current project directory |
| Flag | Description |
|------|-------------|
| --name <name> | Repository name (defaults to folder name) |
| --link <repoId> | Link to existing repository instead of creating new |
| --server <url> | Override Grapuco Enterprise server URL |
Core Workflow
| Command | Description |
|---------|-------------|
| grapuco ingest | Parse all source files locally and push to cloud (embeddings + flows ON by default) |
| grapuco push | Delta sync — push only changed files since last push |
| grapuco watch | Watch for file changes and auto-push |
grapuco ingest flags:
| Flag | Description |
|------|-------------|
| --skip-embeddings | Skip AI embeddings (saves credits) |
| --skip-flows | Skip data flow analysis (saves credits) |
| --dry-run | Parse only, do not push to server |
grapuco push flags:
| Flag | Description |
|------|-------------|
| --force | Force full re-push (ignore cache) |
| --skip-embeddings | Skip AI embeddings for this push |
| --enrich-flows | Trigger AI data flow enrichment after delta sync |
grapuco watch flags:
| Flag | Description |
|------|-------------|
| --debounce <ms> | Debounce interval in ms (default: 2000) |
Info
| Command | Description |
|---------|-------------|
| grapuco status | Show sync status of current project |
| grapuco inspect | Preview what data will be sent to server |
| Flag | Description |
|------|-------------|
| --json | Output as JSON (inspect only) |
Editor Setup
| Command | Description |
|---------|-------------|
| grapuco setup | Auto-configure MCP for all of your AI editors |
| Flag | Description |
|------|-------------|
| --editor <name> | Target a specific editor |
| --api-key <key> | API key (defaults to saved credentials) |
| --endpoint <url> | Server endpoint URL |
| --print | Preview config without writing |
| --remove | Remove Grapuco config from all editors |
| --scope <scope> | Config scope: global or project (default: global) |
Supported editors:
| Editor | Config |
|--------|--------|
| Claude Code | claude mcp add CLI |
| Cursor | ~/.cursor/mcp.json |
| Windsurf | ~/.codeium/windsurf/mcp_config.json |
| VS Code Copilot | <user config>/Code/User/mcp.json |
| Codex | ~/.codex/config.toml |
| Antigravity | ~/.gemini/antigravity/mcp_config.json |
Enterprise & Custom Servers
# Environment variable
export GRAPUCO_SERVER="https://grapuco.internal.company.com"
# Or via login
grapuco login --api-key YOUR_KEY --server https://grapuco.internal.company.comLinks
- 🌐 Website: grapuco.com
- 📖 Dashboard: grapuco.com/dashboard
- 📦 npm: @bitsness/grapuco-cli
License
MIT
