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
| Parameter | Type | Default | Description |
|---|---|---|---|
root | string | session root | Workspace root directory. |
view | 'overview' | 'packages' | 'routes' | 'files' | 'health' | 'overview' | Which view to return. |
package | string | — | Filter to a single monorepo package (e.g. apps/web, packages/ui). |
path_prefix | string | — | Relative folder prefix filter (used with view: "files"). |
limit | integer (1..500) | 100 | Maximum items returned per page. |
cursor | string | — | Pagination cursor (o_<offset>) from a previous call. |
format | 'text' | 'json' | 'text' | Output format. |
max_bytes | integer (>= 512) | 16384 | Maximum UTF-8 response size. |
Available Views
overview/packages: Lists workspace packages (detected frompnpm-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 likeapp.vueanderror.vue), along with static-analysis caveats.
Example
{
"view": "routes",
"package": "apps/web",
"limit": 50
}