Testing

βœ… Quick Test Results

Your MCP server is fully functional! All 11 tools tested successfully:

  • βœ… search_vcons

  • βœ… get_vcon

  • βœ… create_vcon

  • βœ… add_dialog

  • βœ… add_analysis

  • βœ… add_attachment

  • βœ… delete_vcon

  • βœ… update_vcon

  • βœ… create_vcon_from_template

  • βœ… get_schema

  • βœ… get_examples

πŸ”§ Three Ways to Test

Option 1: MCP Inspector (Best for Development) 🎯

The MCP Inspector provides a GUI for testing your server.

Start the Inspector:

Then open http://localhost:5173 in your browser.

What you can do:

  • Browse available tools visually

  • Test each tool with form inputs

  • See real-time request/response logs

  • Debug tool parameters and results

Try these in the Inspector:

  1. search_vcons

  2. get_vcon


Option 2: Claude Desktop (Best for Real Usage) πŸ’¬

Integrate your MCP server directly with Claude Desktop.

Setup Steps:

  1. Copy the config file:

  2. Restart Claude Desktop

  3. Verify it loaded:

    • Look for the πŸ”Œ MCP icon in Claude Desktop

    • It should show "vcon" as an available server

    • You should see 11 tools available

Test in Claude:

Try asking Claude:

  • "Search for vCons about Chevrolet vehicles"

  • "Get the vCon with UUID 01f344c1-02c2-478f-9441-f25bdc85bdaf"

  • "Show me conversations from today"

  • "Create a new vCon for a customer support call"

Example prompts:


Option 3: Direct Script Testing (Best for Automation) πŸ€–

Run the test script directly to verify all functionality.

Run tests:

Unit test suite

Run the Vitest suite (includes search RPC method tests):

Relevant files:

  • tests/search.test.ts – RPC wiring for keyword, semantic, hybrid search

What it tests:

  1. βœ… Search vCons by subject

  2. βœ… Retrieve full vCon with all relationships

  3. βœ… Create new vCon with parties

  4. βœ… Add dialog to vCon

  5. βœ… Add AI analysis

  6. βœ… Add attachments

  7. βœ… Search by party

  8. βœ… Delete vCon

Output shows:

  • Each test step with results

  • Actual data from your database

  • Success/failure status

  • Complete validation


πŸ“Š Sample Test Data

Your database has real production data:

Example vCon UUIDs to test with:

Sample Queries:

Search by subject:

Search by party:

Date range search:


1. Quick Validation (2 minutes)

βœ… Confirms all tools work

2. Interactive Testing (10 minutes)

  • Open http://localhost:5173

  • Test each tool manually

  • Experiment with different parameters

3. Real Usage (ongoing)

  • Set up Claude Desktop integration

  • Use natural language to interact with vCons

  • Build workflows with AI assistance


πŸ” Debugging

View Server Logs

Database Queries

Check Supabase Status


πŸš€ Advanced Testing

Load Testing

Create a script to generate many vCons:

Integration Testing

Test with external systems:


πŸ“ Test Checklist

Before deploying:


πŸŽ‰ You're Ready!

Your MCP server is fully tested and operational. Choose your preferred testing method:

  • Quick validation: Run npx tsx scripts/test-mcp-tools.ts

  • Interactive testing: Use MCP Inspector

  • Production usage: Integrate with Claude Desktop

All 4,443 production vCons are loaded and accessible!

Last updated