Skip to main content
Glama
README.md2.25 kB
# Debug & Diagnostic Tests **⚠️ These tests are NOT part of the regular test suite and are NEVER run in hooks/CI.** ## Purpose These tests are diagnostic tools for analyzing specific issues: - **search-query-analysis.mcp.test.ts**: Comprehensive analysis of search query patterns for Issue #781 - Tests 14 different query patterns (multi-field, partial matching, phone variations, etc.) - Hits live Attio API to validate real-world behavior - Expected: ~57% pass rate (8/14) - identifies gaps in query parsing - **verify-record-exists.mcp.test.ts**: Baseline verification that test records exist - Quick sanity check before running comprehensive tests - Should always pass (4/4) if test data is in workspace ## Running Debug Tests **Never use `npm test` - these tests are excluded from default runs!** ### Run all debug tests: ```bash npm run test:debug:issue-781 ``` ### Run specific test: ```bash E2E_MODE=true npx vitest run --config vitest.config.debug.ts debug-tests/verify-record-exists.mcp.test.ts ``` ### Run with specific test case: ```bash E2E_MODE=true npx vitest run --config vitest.config.debug.ts debug-tests/search-query-analysis.mcp.test.ts -t "Email only" ``` ## Test Data Tests intentionally reference anonymized placeholder records that map to real IDs in the production workspace: - **Person**: Alex Rivera (ID: a63f2a17-d534-5ab7-9c74-6ab24bb29eb2) - **Company**: Example Medical Group (ID: a4a7b1d4-d35d-5c44-bf08-b58711ca5939) - **Phone**: +1 555 010 4477 (sanitized reference) > These labels exist solely for documentation/debugging. Never substitute > real customer data when expanding the suite. ## Why Separate? 1. **Too slow for hooks**: 30-60s runtime, hits live API 2. **Expected failures**: Designed to show gaps, not validate working code 3. **Diagnostic purpose**: For analysis, not CI validation 4. **Manual execution**: Run when needed, not automatically ## Issue #781 Context The search-query-analysis test documents and quantifies the limitations described in Issue #781: - 6/14 query patterns fail (42.9%) - Multi-field queries don't parse - Phone number normalization missing - Location/context tokens not handled See: https://github.com/kesslerio/attio-mcp-server/issues/781

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