MCP Tools
Tools Overview
How Strata's five MCP tools work together in a typical AI coding workflow.
Strata exposes 5 MCP tools. They are designed to be used in a simple, predictable order so AI agents only read the code they actually need:
- Orient first (
map_workspace) — see packages, frameworks, routes, or file lists without reading file contents. - Inspect interfaces (
inspect_file) — read a file's symbol outline, TypeScript-resolved props/emits/slots, and outbound API calls without reading the full implementation. - Trace relationships (
query_graph) or find usages (search_code) — check definitions, references, component trees, state flow, or refactor impact across packages. - Read exact code (
read_slice) — fetch only the specific symbol body, SFC block, or line range using thesourceReforsymbolIdreturned by earlier tools.
Tool Summary
| Tool | Primary Purpose | Backing Engine |
|---|---|---|
map_workspace | Packages, frameworks, routes, file lists, unused component candidates | SQLite index |
inspect_file | Symbol outline, props/emits/models/slots, rendered children, HTTP calls | SQLite index + TypeScript Language Service |
query_graph | Definitions, references, call hierarchy, component tree, state flow, impact | SQLite index + TypeScript Language Service |
read_slice | Bounded, hash-verified source slices | Direct disk read + SHA-256 check |
search_code | Symbol search (FTS5), component usage, prop usage, literal text | SQLite FTS5 + in-process scanner |
Common Response Options
All tools share the same conventions:
format: Defaults to"text"(compact, token-friendly output). Pass"json"when you need structured fields.limit&cursor: Paginated tools returnnextCursor(o_<offset>) when more items are available.max_bytes: Defaults to16384UTF-8 bytes so a single tool call never floods the prompt. If a response exceeds the limit, Strata returnsBUDGET_RESPONSE_TOO_LARGEwith a suggestedretryMaxBytesor narrowing filter.