Index

map_workspace

Orient in a frontend project or monorepo without reading file contents.

map_workspace gives an AI agent a quick map of the project from the SQLite index (typically under 30ms once indexed). It works across single-repo apps, fullstack projects, monoliths, and monorepos.

Parameters

ParameterTypeDefaultDescription
rootstringsession rootWorkspace root directory.
view'overview' | 'packages' | 'routes' | 'files' | 'health''overview'Which view to return.
packagestring—Filter to a single monorepo package (e.g. apps/web, packages/ui).
path_prefixstring—Relative folder prefix filter (used with view: "files").
limitinteger (1..500)100Maximum items returned per page.
cursorstring—Pagination cursor (o_<offset>) from a previous call.
format'text' | 'json''text'Output format.
max_bytesinteger (>= 512)16384Maximum UTF-8 response size.

Available Views

  • overview / packages: Lists workspace packages (detected from pnpm-workspace.yaml, package.json#workspaces, or root), detected framework and router per package, and file/symbol/route totals. In MCP clients that support MCP Apps, this also opens the interactive Strata Explorer UI.
  • routes: Lists page routes and API routes with URL paths, target files, route params, layouts, and render boundary (client, server, island, universal).
  • files: Lists tracked frontend files per package without reading file bodies.
  • health: Lists components that appear unused statically (excluding framework entrypoints like app.vue and error.vue), along with static-analysis caveats.

Example

{
  "view": "routes",
  "package": "apps/web",
  "limit": 50
}