Skip to content

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 ​

ToolPurpose
get_project_overviewProject summary: index composition, roots and tsconfig of each workspace, categories, warnings
list_entitiesEntity catalogue with filters by kind, project and category
searchSearch by name, purpose, props, events and tags; understands Russian queries
get_entity_detailsFull API: props/events/slots/exposed, composable signature, store state/getters/actions, route meta
get_sourceSource of a file: a whole SFC or one section, a window of lines, guarded against escaping the project
get_usage_examplesReal usages in the code plus example blocks from the documentation
get_dependenciesWho uses an entity and what it uses — the blast radius of a refactor
get_documentationMarkdown by entity, by URI, by level, or a single section
search_docsFull-text search over documentation with snippets
get_knowledge_graphRelation graph: code, documents, related from frontmatter

Suggested order for the model:

text
get_project_overview → search → get_entity_details → get_documentation / get_source → get_usage_examples

View server tools ​

ToolPurpose
preview_projectStarts (or reuses) the Vite dev server and returns the URL, index summary and next steps
preview_componentDeep link straight to one component's interactive stand, plus its API summary; resolves fuzzy names across projects
preview_statusLists running servers: project, URL, port, uptime, index freshness, renderable count — no side effects
preview_stopStops 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 on localhost;
  • open — open the URL in the default browser (leave false for headless clients);
  • mode — which view to open first: gallery, component, api or graph;
  • 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:

text
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/UiButton

What 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:

json
{ "name": "search", "arguments": { "query": "button" } }

Answer of the indexer (--lang en, demo project playground/ui-library):

text
## Index matches (1)
- **UiButton** · component · `src/components/ui-button/ui/UiButton.vue` (stable)
  Базовая кнопка дизайн-системы: варианты, размеры, состояние загрузки.
  match: exact name, category

And a view server call that changes state — it starts a real dev server:

json
{ "name": "preview_project", "arguments": { "project": "ui-library", "port": 5299, "open": false } }
text
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 down

How 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:

text
[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

text
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 ​

MIT Licensed