For the complete documentation index, see llms.txt. This page is also available as Markdown.

Overview

Complete API documentation for the vCon MCP Server.

Overview

The vCon MCP Server provides a comprehensive API for managing virtual conversations through the Model Context Protocol (MCP). All interfaces are fully compliant with IETF vCon Core specification.

For new MCP clients, start with the redesigned contract surface: vcon_capabilities, vcon_taxonomy, vcon_search, vcon_fetch, and describe_response_shape. The older tools remain available for backward compatibility and specialized workflows.


API Components

🌐 REST API

Full HTTP REST API with parity to all MCP tools (30+ endpoints):

  • vCon CRUD - Create, read, update, delete + batch ingest

  • Discovery + Filtered Reads - Discover live categories, then read by attachment purpose or analysis type

  • Sub-resources - Read or append analysis and attachments, append dialog

  • Tags - Per-vCon tag management + tag discovery

  • Search - Keyword, semantic, and hybrid search

  • Database - Schema shape, stats, size, health monitoring

  • Analytics - Growth, content, tag, and attachment analytics

  • Infrastructure - Health, version, schema, examples

View REST API Reference →


🛠️ Tools

46 MCP tools for vCon operations:

  • Redesigned Contract Tools - Discovery-first search, fetch, and aggregation with predictable envelopes

  • Core Operations - Create, read, update, delete vCons

  • Component Management - Add, update, and remove parties, dialog, analysis, attachments

  • Search & Query - Keyword, semantic, and hybrid search

  • Tag Management - Organize with key-value metadata

  • Database Tools - Inspect and optimize database

  • Schema & Examples - Get schemas and example vCons

View Tools Reference →


🔗 Resources

URI-based access to vCon data:

  • vcon://v1/discovery/attachments/purposes - Discover live attachment purposes

  • vcon://v1/discovery/attachments/types - Discover legacy attachment types

  • vcon://v1/discovery/analysis/types - Discover live analysis types

  • vcon://v1/vcons/recent - Get recent vCons

  • vcon://v1/vcons/recent/ids - Lightweight ID lists

  • vcon://v1/vcons/ids - Paginated ID browsing

  • vcon://v1/vcons/{uuid} - Get specific vCon

  • vcon://v1/vcons/{uuid}/metadata - Get metadata only

  • vcon://v1/vcons/{uuid}/attachments/purpose/{purpose} - Read attachments by purpose

  • vcon://v1/vcons/{uuid}/attachments/type/{type} - Read attachments by legacy type

  • vcon://v1/vcons/{uuid}/analysis/type/{type} - Read analysis by type

View Resources Reference →


💬 Prompts

9 query template prompts:

  • find_by_exact_tags - Exact tag matching

  • find_by_semantic_search - AI-powered meaning search

  • find_by_keywords - Keyword/phrase search

  • find_recent_by_topic - Recent conversations by topic

  • find_by_customer - Search by party/customer

  • discover_available_tags - Explore available tags

  • complex_search - Multi-criteria searches

  • find_similar_conversations - Find similar vCons

  • help_me_search - Query strategy guidance

View Prompts Reference →


📘 Types

TypeScript type definitions:

  • VCon - Main conversation object

  • Party - Conversation participants

  • Dialog - Conversation segments

  • Analysis - AI/ML analysis results

  • Attachment - Additional files/data

  • Input/Output Types - Tool parameters and responses

View Types Reference →


🗄️ Database Schema

PostgreSQL/Supabase schema:

  • Core Tables - vcons, parties, dialog, analysis, attachments

  • Search Tables - vcon_embeddings, vcon_tags_mv

  • Privacy Tables - privacy_requests (GDPR/CCPA)

  • RPC Functions - search_vcons_keyword, search_vcons_semantic, search_vcons_hybrid

  • Indexes - Performance optimization

View Schema Reference →


Quick Start Examples

Create a vCon

Search vCons

Access via Resources

Use Query Prompts


Architecture

Protocol Flow

Data Flow

  1. Client Request - Client calls MCP tool/resource

  2. Validation - Zod schema validation

  3. Database Query - PostgreSQL operations

  4. Processing - Business logic, search, embeddings

  5. Response - Formatted JSON response


API Capabilities

Search Modes

Mode
Best For
Performance
Accuracy

Metadata

Exact filters

Fast (~50ms)

Exact match

Keyword

Specific words

Medium (~100ms)

High precision

Semantic

Concepts/meaning

Slower (~200ms)

Contextual

Hybrid

Best of both

Slower (~300ms)

Balanced

Tag

Categories

Fast (~50ms)

Exact match

Operations

Operation
Tool
Resource
Prompt

Create

Read

Update

Delete

Search

Browse


Standards Compliance

vCon Specification

Draft IETF vCon Core 00

  • All required fields supported

  • Optional extensions available

  • Group references implemented

  • Redaction/appending supported

MCP Protocol

Model Context Protocol 1.0

  • Tools interface

  • Resources interface

  • Prompts interface

  • Standard error handling

Database

PostgreSQL 15+

  • Full SQL compliance

  • JSONB support

  • Array operations

  • GIN/GiST/HNSW indexes

pgvector Extension

  • Vector similarity search

  • Cosine distance

  • HNSW indexing


Authentication & Security

Supabase Authentication

The server uses Supabase authentication:

Row Level Security (RLS)

Optional RLS policies can be enabled:

API Key Management

For production deployments:

  1. Use service role key for server

  2. Use anon key for clients

  3. Implement RLS policies

  4. Enable database audit logging


Error Handling

All API responses include error information:

Common Error Codes

  • VALIDATION_ERROR - Invalid input parameters

  • NOT_FOUND - vCon or resource not found

  • DATABASE_ERROR - Database operation failed

  • PERMISSION_DENIED - Insufficient permissions


Versioning

API Version

Current: 1.2.0

The API follows semantic versioning:

  • Major - Breaking changes

  • Minor - New features (backward compatible)

  • Patch - Bug fixes

vCon Version

Current: 0.4.0

Follows IETF vCon specification versions.


Next Steps

For Users

For Developers

Resources

Last updated