Skip to main content
Glama

Strata

Frontend Structural Analysis & Component Graph Engine for AI Coding Agents.

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

Strata provides fast structural code search, component dependency graphs, and route mapping for modern frontend applications: Vue, Nuxt, React, Next.js, Astro, and Svelte.

Instead of loading thousands of lines of raw templates and components into AI context windows, Strata extracts compact component contracts, state dependencies, routes, and API endpoints directly into an embedded SQLite cache (.strata/graph.db).


Supported Frameworks

Framework

Extensions

Capabilities

Vue.js (2 & 3)

.vue, .ts, .js

Props, emits, slots, v-model, Composition & Options API, Pinia stores

Nuxt.js

.vue, .ts, .js

File-system routing (pages/), layouts (layouts/), server routes (server/api/), composables ($fetch, useAsyncData)

React.js

.tsx, .jsx, .ts, .js

Function & class components, JSX elements, React hooks (useState, useReducer), Context & Zustand stores

Next.js

.tsx, .jsx, .ts, .js

App Router (app/**), Pages Router (pages/**), Server & Client components ('use client'), API routes

Astro

.astro, .ts, .js

Islands architecture (client:* directives), component imports, frontmatter props & slots

Svelte (4 & 5)

.svelte, .ts, .js

Svelte 5 Runes ($state, $derived, $props, $bindable), Svelte 4 reactive statements ($:), SvelteKit routes (+page.svelte, +server.ts)


Related MCP server: code-intel

Installation

Standalone Binary (Zero Dependencies)

Download and install the compiled single binary without needing Node.js or Bun installed locally:

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

Via Bun Package Manager

bun add -g @dimassetoid/strata-mcp

(You can also run commands directly with bunx @dimassetoid/strata-mcp <command>)


Quick Start & AI Agent Setup

Run strata init in your project root to set up MCP configuration and AI agent skills:

strata init

You can target a specific AI harness directly:

strata init --harness antigravity   # Google Antigravity (.gemini/)
strata init --harness claude         # Claude Code (.claude/)
strata init --harness codex          # OpenAI Codex (.codex/)
strata init --harness opencode       # OpenCode (opencode/)
strata init --harness agents         # Universal Agent Harness (.agents/)

MCP Tools Reference

Strata provides 6 tools via the Model Context Protocol (MCP):

Tool

Description

find_code

Search structural code patterns across templates and scripts without loading entire files into context

inspect_component

Extract public component interfaces (props, emits, slots, state) and retrieve specific code slices

get_component_tree

Inspect component hierarchies, parent-child trees, and find all callers of a component

trace_state

Trace reactive state dependencies and locate all components reading or mutating a given state store

audit_frontend

Scan application routes, outbound HTTP API calls, and detect unused reactive state

generate_patch_plan

Generate safe refactoring plans when renaming props, events, or component names across consumers


CLI Reference

Common Commands

Command

Description

strata serve

Start the MCP server over stdio for AI coding agents

strata init [dir]

Initialize agent rules, skills, and graph cache

strata sync [dir]

Update the .strata/graph.db index with file changes

strata stats [dir]

View MCP performance telemetry (latency, request counts, errors)

Analysis Commands

Command

Description

strata find <pattern>

Search code patterns across .vue, .svelte, .astro, .tsx, .jsx, .ts, .js

strata inspect <file>

Inspect component props, emits, slots, and state

strata tree [entry]

View component hierarchy tree or dependent callers (--direction upward)

strata trace <state-name>

Trace where a reactive state or store is used

strata routes [dir]

List application routes and page mappings

strata apis [dir]

List outbound HTTP API calls and their caller components

strata dead-state [dir]

Find unused reactive state composables or stores

strata patch <file>

Generate refactoring plans for prop or event renames


Development

# 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 MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Enables AI assistants to understand and navigate codebases through structural analysis. Provides code mapping, symbol search, and impact analysis using ast-grep for accurate parsing of Python, JavaScript, TypeScript, and Go projects.
    4
    52
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides semantic code search and code insights via a knowledge graph, enabling AI to understand, navigate, and modify complex projects with deep dependency and architecture analysis.
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI agents to navigate and refactor a codebase through an AST index, offering project overviews, symbol and usage search, module dependency exploration, and LSP-backed operations such as rename, go-to-definition, diagnostics, and extract-method. Supports TypeScript/JavaScript and C# with automatic reindexing and watch mode.
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables AI agents and terminal users to query codebases for callers, impact, tests, dependencies, and refactor previews using static AST analysis, with every match accounted for and uncertain relationships clearly marked.
    747 npm
    2
    MIT