Skip to main content

Crate vera2_mcp

Crate vera2_mcp 

Source
Expand description

Vera MCP Server — Model Context Protocol interface for Vera.

Exposes Vera’s indexing and retrieval capabilities as MCP tools over JSON-RPC 2.0 with stdio transport:

  • search_code — hybrid search (auto-indexes and watches on first use)
  • get_stats — retrieve index statistics
  • get_overview — summarize project structure
  • regex_search — regex search over indexed files

§Usage

Start the server with vera mcp. The server reads JSON-RPC messages from stdin and writes responses to stdout. Logs go to stderr.

Modules§

protocol
JSON-RPC / MCP protocol types.
saved_config
Load saved CLI runtime config for MCP-mode behavior.
server
MCP server: stdio event loop and message dispatch.
staleness
Stale-index detection for MCP tool results.
tools
MCP tool definitions and handler dispatch.
watcher
Background file watcher for automatic index updates in MCP mode.