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:
- Too much noise in context — reading full
.vue,.tsx, or.sveltefiles just to check props, emits, or routes wastes tokens. - Missed references across files — plain
grepcannot reliably tell the difference between an import, a component render site, a barrel re-export, or a Nuxt auto-import. - Stale line numbers — reading a file by guessed line numbers after edits leads to broken patches.
Strata solves this with five focused tools:
| Tool | What it does |
|---|---|
map_workspace | Lists packages, frameworks, routes, files, and potentially unused components without reading file bodies. |
inspect_file | Returns a file's symbol outline, TypeScript-resolved props/emits/slots, rendered children, and outbound HTTP calls. |
query_graph | Finds definitions, references, call chains, component trees, state readers/writers, and refactor impact across packages. |
read_slice | Reads a targeted line range, symbol body, or SFC block (template, scriptSetup, style) with file-hash checks. |
search_code | Searches 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 inomissionsfor 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.