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

Overview

Practical examples and code snippets for using the vCon MCP Server.

Overview

This section provides real-world examples of:

  • Basic CRUD operations

  • Search and query patterns

  • Plugin development

  • System integration

  • System instruction assets for Claude and other agents

Quick Examples

Create a vCon

import { VConQueries } from 'vcon-mcp';
import { createClient } from '@supabase/supabase-js';

const supabase = createClient(url, key);
const queries = new VConQueries(supabase);

const vcon = await queries.createVCon({
  vcon: '0.4.0',
  uuid: crypto.randomUUID(),
  created_at: new Date().toISOString(),
  subject: 'Customer Support Call',
  parties: [
    { name: 'Agent', mailto: 'agent@example.com' },
    { name: 'Customer', tel: '+1-555-0100' }
  ]
});

Search vCons

Add Analysis

Example Categories

Basic Operations

  • Creating vCons

  • Reading vCons

  • Updating vCons

  • Deleting vCons

  • Adding components (dialog, analysis, attachments)

Search Examples

  • Keyword search

  • Semantic search

  • Hybrid search

  • Tag filtering

  • Date range queries

  • Complex filters

Plugin Examples

  • Simple logging plugin

  • Access control plugin

  • Audit trail plugin

  • Custom tool plugin

  • Data transformation plugin

Integration Examples

  • Claude Desktop integration

  • REST API wrapper

  • Webhook integration

  • CRM integration

  • Real-time updates

System Instruction Assets

  • Long reusable system instruction block

  • Short reusable system instruction block

  • Compact CLAUDE.md version

  • Stricter policy-style version

Use Case Examples

Contact Center

Sales Team

Running Examples

Next Steps

Last updated