Skip to main content
Glama
verify-record-exists.mcp.test.tsβ€’2.71 kB
/** * Quick verification that production records exist * Run: npm test -- /tmp/verify-record-exists.mcp.test.ts --run */ import { describe, it, beforeAll, afterAll } from 'vitest'; import { MCPTestClient } from 'mcp-test-client'; describe('Verify Production Records Exist', () => { let client: MCPTestClient; // Fake test record IDs (no real data) const KNOWN_PERSON_ID = 'test-person-id-12345'; const KNOWN_COMPANY_ID = 'test-company-id-67890'; beforeAll(async () => { client = new MCPTestClient({ serverCommand: 'node', serverArgs: ['./dist/cli.js'], }); await client.init(); }); afterAll(async () => { if (client) { await client.cleanup(); } }); it('should find person by ID', async () => { const result = await client.assertToolCall( 'get-record-details', { resource_type: 'people', record_id: KNOWN_PERSON_ID, }, (result) => { console.log('\nπŸ“‹ Person Record Result:'); if ( result.content && result.content[0] && 'text' in result.content[0] ) { console.log(result.content[0].text); } } ); }); it('should find company by ID', async () => { const result = await client.assertToolCall( 'get-record-details', { resource_type: 'companies', record_id: KNOWN_COMPANY_ID, }, (result) => { console.log('\nπŸ“‹ Company Record Result:'); if ( result.content && result.content[0] && 'text' in result.content[0] ) { console.log(result.content[0].text); } } ); }); it('should search for person by email', async () => { const result = await client.assertToolCall( 'search-records', { resource_type: 'people', query: 'john.smith@example.com', limit: 5, }, (result) => { console.log('\nπŸ” Email Search Result:'); if ( result.content && result.content[0] && 'text' in result.content[0] ) { console.log(result.content[0].text); } } ); }); it('should search for company by name', async () => { const result = await client.assertToolCall( 'search-records', { resource_type: 'companies', query: 'Test Corporation Inc', limit: 5, }, (result) => { console.log('\nπŸ” Company Search Result:'); if ( result.content && result.content[0] && 'text' in result.content[0] ) { console.log(result.content[0].text); } } ); }); });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kesslerio/attio-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server