v0.12.1

Introduction

Local frontend code analysis MCP server and CLI for Vue, Nuxt, React, Next.js, Svelte, and Astro.

Strata (@dimassetoid/strata-mcp) is a local MCP server and CLI that helps AI coding agents understand frontend and fullstack JS/TS projects without reading entire files blindly.

Instead of running repeated text searches or stuffing full single-file components into the prompt, agents query a local SQLite index (.strata/graph.db) paired with the TypeScript Language Service. Everything runs locally in-process with no external binaries.

Why Strata Exists

In real frontend repositories, AI agents often hit three problems:

  1. Too much noise in context — reading full .vue, .tsx, or .svelte files just to check props, emits, or routes wastes tokens.
  2. Missed references across files — plain grep cannot reliably tell the difference between an import, a component render site, a barrel re-export, or a Nuxt auto-import.
  3. Stale line numbers — reading a file by guessed line numbers after edits leads to broken patches.

Strata solves this with five focused tools:

ToolWhat it does
map_workspaceLists packages, frameworks, routes, files, and potentially unused components without reading file bodies.
inspect_fileReturns a file's symbol outline, TypeScript-resolved props/emits/slots, rendered children, and outbound HTTP calls.
query_graphFinds definitions, references, call chains, component trees, state readers/writers, and refactor impact across packages.
read_sliceReads a targeted line range, symbol body, or SFC block (template, scriptSetup, style) with file-hash checks.
search_codeSearches symbols (SQLite FTS5), component usages, prop usages, or literal text in-process.

Supported Frameworks

  • Vue 2 & 3: .vue, .ts, .js (Composition & Options API, defineProps, defineEmits, defineModel, slots, provide/inject, Vue Router, Pinia).
  • Nuxt: pages/, app/pages/, layers/**/pages/, layouts, server/api/ routes, auto-imported components (Lazy*), and composables (use*, useState, $fetch, useFetch, useAsyncData).
  • React & Next.js: .tsx, .jsx, .ts, .js (function/class components, hooks, Context, Zustand, useSWR, useQuery, App Router, Pages Router, API routes).
  • Svelte 4 & 5: .svelte, .ts, .js (Svelte 5 runes $state, $derived, $props, $bindable, Svelte 4 reactive statements, SvelteKit routes).
  • Astro: .astro, .ts, .js (frontmatter props, slots, component imports, client:* islands, file-based routes).

What Strata Does Not Do

Strata performs static analysis on your source files and TypeScript configuration. It does not run your application in a browser or Node server.

  • Dynamic props spreads (v-bind="attrs", {...props}) cannot be resolved statically, so Strata flags them explicitly in omissions for manual review.
  • Dynamic HTTP methods or runtime-built URLs are marked with diagnostics rather than guessed.
  • Always run your project's own typecheck, tests, and browser checks before shipping changes.