Skip to content

VitePress

4.58 / 5 composite score · 100.0% API recall · 45 questions evaluated

Vue Docs MCP provides deep access to the official VitePress documentation, covering the static site generator's runtime API (composables, helpers, components), default theme config, build hooks, data loaders, deploy guides, and migration paths from VuePress.

Dogfood

This very documentation site is built with VitePress, so the MCP can answer questions about the tool you're reading right now.

Activation

VitePress is not enabled by default. Call set_framework_preferences to activate it:

set_framework_preferences(vitepress=true)

Tools

Semantic search over VitePress documentation. Uses the standard 6-step retrieval pipeline: embed query, hybrid search (dense + BM25), resolve HyPE hits, expand cross-references, rerank, and reconstruct into readable markdown.

ParameterTypeDefaultDescription
querystringDeveloper question or topic (max 2000 chars)
scopestring"all"Documentation section to search within
max_resultsinteger3Number of sections to return (1-20)

Scope values: all, guide, reference

vitepress_api_lookup

Fast exact-match API reference lookup with fuzzy fallback. Returns type signatures, descriptions, and usage examples directly from the documentation.

ParameterTypeDefaultDescription
api_namestringAPI name to look up (e.g. useData, defineConfig, createContentLoader, withBase)

Find related APIs, concepts, and documentation pages for a given API or topic.

ParameterTypeDefaultDescription
topicstringAPI name or concept to explore

Resources

URIDescription
vitepress://topicsFull table of contents
vitepress://topics/{section}TOC for a specific section (e.g. vitepress://topics/reference)
vitepress://pages/{path}Raw markdown of any doc page (e.g. vitepress://pages/reference/site-config)
vitepress://api/indexComplete API entity index grouped by type
vitepress://api/entities/{name}Details for a specific API (e.g. vitepress://api/entities/useData)
vitepress://scopesAll valid search scope values

Prompts

PromptParametersDescription
debug_vitepress_issuesymptom, code_snippet (optional)Systematic debugging workflow: identifies the concept, searches docs, looks up APIs, and provides a fix
compare_vitepress_apisitems (comma-separated)Side-by-side comparison of APIs or patterns (e.g. createContentLoader, defineLoader)
migrate_vitepress_patternfrom_pattern, to_patternMigration guide between patterns (e.g. VuePress to VitePress)

Coverage

AreaWhat's indexed
Runtime APIuseData, useRoute, useRouter, withBase, <Content>, <ClientOnly>, template globals
Site configAll top-level keys: title, head, cleanUrls, rewrites, srcDir, outDir, markdown, build hooks
Default themeSidebar, nav, search, social links, footer, edit link, last updated, outline, aside, dark mode
Theme componentsVPTeamMembers, VPTeamPage, hero/features layouts
Data loaderscreateContentLoader, defineLoader, dynamic routes
GuidesGetting started, deploy, i18n, SSR compatibility, asset handling, custom themes
CLIvitepress dev, vitepress build, vitepress preview, vitepress init
MigrationFrom VuePress, from VitePress 0.x

Benchmarks vs Context7

Evaluated on 50 VitePress questions scored by an LLM judge (Gemini, temperature 0) across 5 dimensions on a 1-5 scale.

Methodology

Each question has a ground-truth answer with expected API names and documentation paths. Both providers receive the same question and return documentation context. The judge scores the retrieved context on relevance, completeness, correctness, API coverage, and conciseness. See the eval/ directory in the repository for the full evaluation framework.

Overall Scores

MetricVue Docs MCPContext7
Relevance4.804.76
Completeness4.714.69
Correctness4.764.71
API Coverage3.674.20
Conciseness4.964.73
Composite4.584.62

Retrieval and Cost

MetricVue Docs MCPContext7
Path Recall95.6%95.6%
API Recall100.0%100.0%
Avg Response Tokens3,056779
Avg Latency0.83s1.78s
P95 Latency1.03s2.15s
Cost per Query (user-facing)Free$0.002

Notes on Fairness

  • Context7 is a general-purpose service covering 9000+ libraries. Vue Docs MCP is purpose-built for the Vue ecosystem.
  • The evaluation framework is open source in the eval/ directory. Run make eval-compare to reproduce.