@dimassetoid/strata-mcp
| Install | |
|---|---|
npm install @dimassetoid/strata-mcp |
|
| Latest Version: | 0.7.11 |
| License: | MIT |
| Last Updated: | Oct 12, 2026 |
| Links: | GitHub · npm |
Strata
Multi-Framework Frontend Structural AST Search, Component Graph & Intelligence Engine.
Strata delivers token-efficient structural code intelligence across Vue SFCs (.vue), Astro (.astro), and React/Next (.js, .jsx, .ts, .tsx). It indexes component hierarchies, state dependencies, and routes into an embedded SQLite graph cache (.strata/graph.db) with exact multi-language line remapping.
Installation
Install Strata globally using Bun:
bun add -g @dimassetoid/strata-mcp
Note: You can also run commands on-the-fly without global installation using
bunx @dimassetoid/strata-mcp <command>.
Quick Start
1. Initialize in Any Project
strata init
# or zero-install via bunx:
bunx @dimassetoid/strata-mcp init
Bootstraps agent harness rules/skills (Gemini/Antigravity, Claude, Cursor, Codex, OpenCode, Goose, Pi) and initializes local SQLite graph cache (.strata/graph.db).
Use --harness <name> or --agent <name> to target a specific agent harness, -f, --force to overwrite existing configuration files, and -y, --yes to accept defaults automatically.
2. Connect to AI Agent (MCP Server)
Add Strata to your MCP client (mcp.json or claude_desktop_config.json):
{
"mcpServers": {
"strata": {
"command": "strata",
"args": ["serve"]
}
}
}
(Or use "command": "bunx", "args": ["@dimassetoid/strata-mcp", "serve"] if running without global installation).
CLI Reference
Operational Commands
| Command | Description |
|---|---|
strata serve |
Launch stdio MCP daemon server for AI coding agents |
strata init [dir] [options] |
Bootstrap agent harness rules/skills & initialize graph cache (--harness, -f, --force, -y, --yes) |
strata sync [dir] |
Fast incremental delta synchronization for .strata/graph.db |
Core Analytical Commands (Aligned with 6 MCP Tools)
| Command | Primary Aliases | Description & Key Options |
|---|---|---|
strata find <pattern> |
search, usage, rule |
AST structural code search across .vue, .astro, .tsx, .jsx, .ts. Options: --component <name>, --rule <yaml>, --lang <hint>, --scope <template|script|both>, --mode <ast|auto|literal> |
strata inspect <file> |
contract |
Deep component inspection (props, emits, slots, state). Options: --symbol <name>, --audit-events, --outline, --infer-props, --resolve-globals |
strata tree [entry] |
component-tree |
Inspect component hierarchy tree or upward blast radius. Options: --route <path>, --depth <n>, --direction <downward|upward>, --alias <map>, --scope-filter <scope> |
strata trace <state-id> |
impact |
Trace reactive state blast radius and consumers. Options: --depth <n>, --direction <consumers|dependencies|both>, --role <all|mutators|readers> |
strata audit [dir] |
routes, apis, dead-state, archetype |
Audit frontend architecture. Options: --target <target>, --threshold <n>, --exemplar <file>, --ignore <globs>, --include-pages, --scope-path <dir>, --exclude-dirs <dirs> |
strata patch <file> |
patch-plan |
Generate prescriptive refactoring patch plans across callers. Options: --refactor <type>, --old <name>, --new <name> |
strata stats [dir] |
telemetry |
Display MCP tool latency percentiles (p50/p95), error rates, and items found |
Direct CLI Shortcuts
strata routes [path]— Extract route topology manifest (shortcut foraudit --target routes)strata apis [path]— Extract outbound HTTP API calls and caller mapping (shortcut foraudit --target api-contracts)strata dead-state [path]— Detect unused reactive state composables and stores (shortcut foraudit --target dead-state)strata archetype <file>— Audit page archetype and structural drift vs exemplar (shortcut foraudit --target archetype-drift)strata usage <component>— Search component adoption (shortcut forfind --component <name>)strata rule <rule-yaml>— Execute raw ast-grep YAML rule (shortcut forfind --rule <yaml>)
Global Options
-p, --path <path>: Target directory or file path (default:.)--json: Output raw JSON instead of human-readable formatted text-v, --version: Display current Strata version-h, --help: Display contextual command options and usage
Development & Contributing
# Clone and install dependencies
git clone https://github.com/Shironim/strata-mcp.git
cd strata-mcp
bun install
# Run test suite & build
bun test
bun run build
License
MIT © shironim
Related Packages
Model Context Protocol server for intelligent, context-aware documentation looku...
MCP Server that generates Zod schemas to map API responses to Vue/React Design S...
Accessibility scanner for humans and AI agents: CLI, MCP server and skill that r...
Version History
| Version | Released | License |
|---|---|---|
| 0.7.11 | MIT | |
| 0.7.10 | MIT | |
| 0.7.9 | MIT | |
| 0.7.8 | MIT | |
| 0.7.7 | MIT | |
| 0.7.6 | MIT | |
| 0.7.5 | MIT | |
| 0.7.4 | MIT | |
| 0.7.1 | MIT | |
| 0.7.0 | MIT | |
| 0.6.0 | MIT | |
| 0.5.1 | MIT | |
| 0.4.0 | MIT |