Skip to content

vera-mcp

vera-mcp publishes the vera_mcp Python package and vera-mcp entry point. It depends on vera-doc for storage/search and vera-ingest for viewer helpers (pages, figures, regions, source export). It exposes archive and corpus retrieval as Model Context Protocol tools.

vera_search and vera_corpus_search accept pretty: true to add readable, citation-ready context while retaining their structured result arrays.

The package is a protocol adapter. Ranking, validation, and conversion remain implemented by vera-doc and vera-ingest.

Install

From PyPI:

python -m pip install "vera[mcp]>=0.3.0"

Or install the package directly:

python -m pip install "vera-mcp>=0.3.0"

From a repository checkout:

uv run --extra mcp vera mcp

The server communicates over stdio. Do not add --json or write unrelated output to stdout.

Documentation

API reference

  • vera_mcp — build_server() and the stdio entry point.

MCP intentionally does not expose conversion, index mutation, source export, or retrieval evaluation. Use vera or the Python packages for those tasks.

Desktop Agent access is a restricted entry (vera-sidecar mcp-service and mcp-connect). It serves Streamable HTTP on 127.0.0.1 for the folders in library_roots. Each folder has a name in libraries. Tools on that service accept library plus a path relative to the folder. vera mcp does not start that service and has no library parameter. See mcp.md.

Source viewer: vera_show_sources adds an Open VERA sources button beside a normally rendered answer. The user selects [C#] references inside the viewer; vera_source_page loads the highlighted passage. See the plugin source viewer for source-install requirements and preview limits.