Tools
Fourteen tools in total: 10 in the indexer (vue-codebase-mcp) and 4 in the view server (vue-codebase-view-mcp). Every one of them is documented with its real JSON Schema, a real request and a real answer on two dedicated pages:
- Indexer tools — questions about the code: search, API, sources, usages, dependencies, documentation, graph.
- View server tools — the live preview: start, deep link, status, stop.
Names are accepted in any form: UiButton, ui-button, button, Button. Design-system prefixes are configured via components.namePrefixes.
Indexer tools
| Tool | Purpose |
|---|---|
get_project_overview | Project summary: index composition, roots and tsconfig of each workspace, categories, warnings |
list_entities | Entity catalogue with filters by kind, project and category |
search | Search by name, purpose, props, events and tags; understands Russian queries |
get_entity_details | Full API: props/events/slots/exposed, composable signature, store state/getters/actions, route meta |
get_source | Source of a file: a whole SFC or one section, a window of lines, guarded against escaping the project |
get_usage_examples | Real usages in the code plus example blocks from the documentation |
get_dependencies | Who uses an entity and what it uses — the blast radius of a refactor |
get_documentation | Markdown by entity, by URI, by level, or a single section |
search_docs | Full-text search over documentation with snippets |
get_knowledge_graph | Relation graph: code, documents, related from frontmatter |
Suggested order for the model:
get_project_overview → search → get_entity_details → get_documentation / get_source → get_usage_examplesView server tools
| Tool | Purpose |
|---|---|
preview_project | Starts (or reuses) the Vite dev server and returns the URL, index summary and next steps |
preview_component | Deep link straight to one component's interactive stand, plus its API summary; resolves fuzzy names across projects |
preview_status | Lists running servers: project, URL, port, uptime, index freshness, renderable count — no side effects |
preview_stop | Stops one project's server or all of them, releasing ports |
Notable parameters:
project— workspace name from the configuration; required when the configuration describes several projects;port/host— bind address; omit to let Vite pick a free port onlocalhost;open— open the URL in the default browser (leavefalsefor headless clients);mode— which view to open first:gallery,component,apiorgraph;rebuild— rebuild the index with full type resolution before starting.
Parallel calls are deduplicated: preview_project and preview_component sent together never start two servers, and an already running server for the same project is reused.
Deep links use hash routes:
http://localhost:5299/__vue-view__/#/gallery
http://localhost:5299/__vue-view__/#/component/UiButton
http://localhost:5299/__vue-view__/#/api/UiButton
http://localhost:5299/__vue-view__/#/graph/UiButtonWhat an answer looks like
One real pair, so the shape is clear before you dive into the reference pages. Request — what the assistant sends over MCP:
{ "name": "search", "arguments": { "query": "button" } }Answer of the indexer (--lang en, demo project playground/ui-library):
## Index matches (1)
- **UiButton** · component · `src/components/ui-button/ui/UiButton.vue` (stable)
Базовая кнопка дизайн-системы: варианты, размеры, состояние загрузки.
match: exact name, categoryAnd a view server call that changes state — it starts a real dev server:
{ "name": "preview_project", "arguments": { "project": "ui-library", "port": 5299, "open": false } }Preview started for **ui-library** — 7 renderable
URL: http://localhost:5299/__vue-view__/
Mode: gallery
Index: built in full mode at 2026-11-20T17:12:45.270Z — 7 components, 2 composables, 0 stores, 0 routes, 3 utils, 10 documents
What to do next:
- Open http://localhost:5299/__vue-view__/ in a browser to see the gallery
- Call preview_component with a component name for an interactive stand
- Call preview_status to list running servers, preview_stop to shut them downHow failures are reported
Every answer states where the API came from (apiSource: vue-component-meta, typescript, sfc-lite, syntax) and warns when types are unresolved, suggesting the exact command that fixes them. Failed lookups return ranked suggestions instead of an empty result: names are compared by Levenshtein distance, so buton still finds UiButton.
Real errors carry a code and, when useful, a hint in a separate paragraph:
[tools.entityNotFound] "UiButon" was not found in the index (12 entities).
Did you mean:
- UiButton · component · ui-library
- UiBadge · component · ui-library
Refine the request with the `search` tool.The codes are stable: tools.* in the indexer, preview.* and index.* in the view server, api.* in the preview HTTP API. Full lists: Indexer tools → How to read an answer and View server tools → Diagnostics.
One case has no code at all: argument validation happens inside the MCP SDK before the handler runs, so a missing required parameter or a wrong enum value comes back as
Input validation error: Invalid arguments for tool search: kinds.0: Invalid option: expected one of "component"|"composable"|"store"|"route"|"util"— in English, without a tools.* prefix.
Resources are the same data by URI
Besides tools, the indexer registers resources: component://UiButton, doc://component/UiButton, file://src/components/ui-button/ui/UiButton.vue, index://overview — 35 entries in seven schemes on the demo project. The view server has no resources on purpose. Details: Resources.
Next
- Indexer tools · View server tools — every parameter, request and diagnostic
- Recipes — the same tools assembled into answers to real questions
- Configuration — limits, prefixes and exposure settings that change the answers