Skip to main content
Glama

Smart Connections MCP Server

by msdanyg
TEST-RESULTS.md7.79 kB
# Smart Connections MCP Server - Test Results **Test Date**: October 12, 2025 **Test Status**: ✅ ALL TESTS PASSING ## Test Summary All 6 MCP tools have been successfully tested and verified working correctly. ### Knowledge Base Statistics - **Total Notes**: 131 - **Total Blocks**: 12,500 - **Embedding Dimension**: 384 (TaylorAI/bge-micro-v2) - **Model Key**: TaylorAI/bge-micro-v2 --- ## Individual Tool Tests ### ✅ TEST 1: `get_stats` **Status**: PASSED **Purpose**: Get knowledge base statistics **Results**: ```json { "totalNotes": 131, "totalBlocks": 12500, "embeddingDimension": 384, "modelKey": "TaylorAI/bge-micro-v2" } ``` **Key Validation**: - ✓ Embedding dimension shows 384 (not 0) - ✓ Model key correctly identified as "TaylorAI/bge-micro-v2" - ✓ All notes loaded successfully --- ### ✅ TEST 2: `get_similar_notes` **Status**: PASSED **Purpose**: Semantic similarity search using embeddings **Test Query**: Find notes similar to `CLAUDE.md` **Results**: 1. **tags.md** - Similarity: 0.821 2. **Vault Structure and Organization.md** - Similarity: 0.796 3. **Meetings/Untitled 1.md** - Similarity: 0.758 4. **Claude Personas/README.md** - Similarity: 0.734 5. **Meetings/Vic-Daniel meeting 090425.md** - Similarity: 0.732 **Key Validation**: - ✓ Returns semantically similar notes (not just keyword matches) - ✓ Similarity scores are realistic (0.7-0.9 range) - ✓ Includes available blocks for each note - ✓ No "No embeddings found" errors --- ### ✅ TEST 3: `get_connection_graph` **Status**: PASSED **Purpose**: Build multi-level knowledge graphs **Test Query**: Build connection graph from `CLAUDE.md` with depth 2 **Results**: - Root: CLAUDE.md - Total connections: 6 - Depth levels: 1-2 **Sample Connections**: 1. **tags.md** - Similarity: 0.821, Depth: 1 2. **Vault Structure and Organization.md** - Similarity: 0.816, Depth: 2 3. **Main Navigation Hub.md** - Similarity: 0.783, Depth: 2 **Key Validation**: - ✓ Builds multi-level relationship graphs - ✓ Correctly tracks depth levels - ✓ Returns non-empty connections - ✓ Prevents cycles by tracking visited nodes --- ### ✅ TEST 4: `search_notes` **Status**: PASSED **Purpose**: Keyword-based search across vault **Test Query**: Search for "competitive intelligence" **Results**: 1. **Competition/00-Competitive Intelligence Master MOC.md** - Score: 0.600 2. **Resources/GTM Hub Internal resources.md** - Score: 0.500 3. **CLAUDE.md** - Score: 0.400 4. **Competition/Competitor list.md** - Score: 0.400 5. **Main Navigation Hub.md** - Score: 0.400 **Key Validation**: - ✓ Finds notes containing keywords - ✓ Returns relevance scores - ✓ Correctly ranks by match frequency - ✓ Case-insensitive matching --- ### ✅ TEST 5: `get_note_content` **Status**: PASSED **Purpose**: Retrieve full note content with metadata **Test Query**: Get content of `CLAUDE.md` **Results**: - Path: CLAUDE.md - Content length: 3,528 characters - Available blocks: 64 **Sample Content**: ``` # CLAUDE.md This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. ## Repository Overview This is an Obsidian vault containing ActivTrak's product marketing, competitive intelligence, and sales enablement documentation... ``` **Key Validation**: - ✓ Returns complete note content - ✓ Includes note path - ✓ Lists all available blocks/headings - ✓ Content matches actual markdown file --- ### ✅ TEST 6: `get_embedding_neighbors` **Status**: PASSED **Purpose**: Advanced vector similarity search with custom embeddings **Test Query**: Find neighbors for CLAUDE.md's embedding vector **Results**: 1. **CLAUDE.md** - Similarity: 1.000 (self) 2. **tags.md** - Similarity: 0.821 3. **Vault Structure and Organization.md** - Similarity: 0.796 4. **Meetings/Untitled 1.md** - Similarity: 0.758 5. **Claude Personas/README.md** - Similarity: 0.734 **Key Validation**: - ✓ Accepts 384-dimensional embedding vectors - ✓ Performs cosine similarity calculations - ✓ Returns k nearest neighbors - ✓ Respects similarity threshold --- ## Critical Bugs Fixed ### 1. Embedding Model Key Mismatch ✅ FIXED **Problem**: Code looked for embeddings under `"transformers"` but they were stored under `"TaylorAI/bge-micro-v2"` **Fix Location**: `src/smart-connections-loader.ts:131-147` **Result**: Embeddings now accessible, dimension shows 384 instead of 0 ### 2. Null Path Entries ✅ FIXED **Problem**: Some source entries had null paths causing crashes **Fix Location**: `src/smart-connections-loader.ts:88-91` **Result**: Parse errors eliminated ### 3. Return Type Consistency ✅ FIXED **Problem**: Some functions returned inconsistent object structures **Fixes**: - Updated `getConnectionGraph()` to return flat connection list with root - Updated `getNoteWithContext()` to include path and blocks array - Added proper TypeScript interfaces **Result**: All MCP tools return consistent, well-structured JSON --- ## Performance Metrics - **Initialization Time**: ~2 seconds - **Load Time**: 131 sources from 135 files - **Embedding Lookups**: < 100ms per query - **Similarity Calculations**: < 500ms for 131-note comparison - **Graph Building**: < 1s for depth-2 graph --- ## Example Queries That Work ### Semantic Discovery ``` "Find notes similar to the ActivTrak ICP document" "What notes are conceptually related to competitive analysis?" "Show me content similar to product positioning" ``` ### Knowledge Graphs ``` "Build a connection graph from the competitive intelligence hub" "Show me how product features connect to each other" "Map the relationships around workforce analytics" ``` ### Keyword Search ``` "Search for all notes mentioning enterprise buyers" "Find references to Horizon Three strategy" "What notes discuss hybrid work?" ``` ### Content Retrieval ``` "Get the content of the main navigation hub" "Show me the CLAUDE.md instructions" "Read the competitive battlecard for Teramind" ``` --- ## Next Steps ### For Development Use (Standalone) The server works perfectly in standalone mode. Run tests anytime: ```bash cd ~/smart-connections-mcp node test-all-tools.mjs ``` ### For Claude Desktop Integration To use with Claude Desktop: 1. **Kill orphaned servers**: ```bash pkill -f "smart-connections-mcp" ``` 2. **Quit Claude Desktop completely** (Cmd+Q, not just close windows) 3. **Wait 5 seconds**, then reopen Claude Desktop 4. **Test in Claude Desktop**: ``` Use get_stats to show Smart Connections statistics ``` 5. **Verify**: Should show `embeddingDimension: 384` --- ## Files Reference - **Source Code**: `~/smart-connections-mcp/src/` - **Built Server**: `~/smart-connections-mcp/dist/index.js` - **Test Scripts**: - `test-search.mjs` - Quick semantic search test - `test-all-tools.mjs` - Comprehensive 6-tool test suite - **Documentation**: - `FIXED.md` - Details of bugs fixed - `TROUBLESHOOTING.md` - Debugging guide - `RESTART-INSTRUCTIONS.md` - Claude Desktop restart procedure - `TEST-RESULTS.md` - This file --- ## Configuration **Claude Desktop Config**: `~/Library/Application Support/Claude/claude_desktop_config.json` ```json { "mcpServers": { "smart-connections": { "command": "node", "args": [ "/Users/dglickman@bgrove.com/smart-connections-mcp/dist/index.js" ], "env": { "SMART_VAULT_PATH": "/Users/dglickman@bgrove.com/Obsidian Vault for ActivTrak" } } } } ``` --- ## Success! 🎉 All 6 MCP tools are **fully functional** and **thoroughly tested**: ✅ get_stats ✅ get_similar_notes ✅ get_connection_graph ✅ search_notes ✅ get_note_content ✅ get_embedding_neighbors The Smart Connections MCP Server is ready for production use!

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/msdanyg/smart-connections-mcp'

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