Guide
Installation & CLI
Install Strata via Bun/npm or standalone binary, initialize a project, and use the CLI commands.
Strata is published on npm as @dimassetoid/strata-mcp and also ships precompiled standalone binaries for Linux, macOS, and Windows.
Install via Bun (Recommended)
bun add -g @dimassetoid/strata-mcp
Or run directly without a global install:
bunx --package @dimassetoid/strata-mcp strata --help
Install as a Standalone Binary
If you do not want a Node.js or Bun dependency on your machine:
Linux & macOS:
curl -fsSL https://raw.githubusercontent.com/Shironim/strata-mcp/master/scripts/install.sh | bash
Windows (PowerShell):
irm https://raw.githubusercontent.com/Shironim/strata-mcp/master/scripts/install.ps1 | iex
Initialize Your Project
Run strata init inside your repository root:
strata init
This creates the local SQLite index at .strata/graph.db (and adds .strata/ to .gitignore), plus optional MCP client config, agent instructions, and post-write sync hooks.
CLI Reference
Every MCP tool has a matching CLI command so you can test the exact same output from your terminal.
Operational Commands
| Command | Description |
|---|---|
strata serve | Start the MCP server over stdio for AI coding clients. |
strata init [dir] | Initialize .strata/graph.db, MCP configs, and agent playbooks. |
strata sync [dir] | Incrementally update .strata/graph.db after file changes. |
strata stats [dir] | Print local tool usage stats (latency, call counts, errors) from .strata/strata.log. |
Analysis Commands
| Command | Matching MCP Tool | Example |
|---|---|---|
strata map [dir] | map_workspace | strata map --view routes |
strata inspect <file> | inspect_file | strata inspect apps/web/pages/index.vue |
strata graph <query> [file] | query_graph | strata graph impact src/components/Button.vue |
strata read [file] | read_slice | strata read src/App.vue --block scriptSetup |
strata search <query> | search_code | strata search Button --kind component_usage |