@dimassetoid/strata-mcp

Multi-framework frontend structural AST search, component graph, and route topology engine for AI agents (Vue, React, Next, Nuxt, Astro, Svelte)
2,303 2
Install
npm install @dimassetoid/strata-mcp
Latest Version:0.7.11
License:MIT
Last Updated:Oct 12, 2026
Links: GitHub  ·  npm
Maintainer: dimassetoid

Strata

Multi-Framework Frontend Structural AST Search, Component Graph & Intelligence Engine.

npm version Runtime: Bun Protocol: Model Context Protocol Database: SQLite WAL License: MIT

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 for audit --target routes)
  • strata apis [path] — Extract outbound HTTP API calls and caller mapping (shortcut for audit --target api-contracts)
  • strata dead-state [path] — Detect unused reactive state composables and stores (shortcut for audit --target dead-state)
  • strata archetype <file> — Audit page archetype and structural drift vs exemplar (shortcut for audit --target archetype-drift)
  • strata usage <component> — Search component adoption (shortcut for find --component <name>)
  • strata rule <rule-yaml> — Execute raw ast-grep YAML rule (shortcut for find --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

mcp-project-docs

Model Context Protocol server for intelligent, context-aware documentation looku...

1,390
mcp-glue-code-generator

MCP Server that generates Zod schemas to map API responses to Vue/React Design S...

2,994 1
a11y-checker

Accessibility scanner for humans and AI agents: CLI, MCP server and skill that r...

36,659 117
mta-mcp

MTA - 智能编码助手 MCP 服务器(规范 + 技能 + 诊断 + 模板 + 记忆 + 思考)

9,492

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