Repository navigation
Expose semantic search via MCP (search_containers method) - #322
Merged
Merged
Conversation
- Add search_containers MCP handler for AI agent semantic search access - Create combined McpServices struct for multi-service coordination - Update MCP server to support embedding-based search operations - Integrate NodeEmbeddingService with MCP protocol layer - Add search_containers to MCP capabilities schema for client discovery - Wire up embedding service from Tauri state to MCP server - Implement parameter validation (threshold range, query non-empty) - Provides 6 unit tests for search handler validation - Enables AI agents to find relevant content using natural language Supports parameters: - query (required): Natural language search query - threshold (default: 0.7): Similarity threshold 0.0-1.0 - limit (default: 20): Maximum results - exact (default: false): Use exact cosine distance instead of DiskANN This completes the AI agent workflow: search → read → understand → modify 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]>
Based on comprehensive pragmatic code review feedback: **Security & Validation Improvements:** - Fix whitespace-only query validation using .trim() - Add upper bound validation for limit parameter (max 1000) - Improve error handling granularity with specific error messages **Code Quality:** - Add authoritative defaults comment (schema vs code) - Enhance JSON schema description with usage examples - Fix clippy warnings (bool comparison, constant assertions) **Testing:** - Replace placeholder tests with 16 comprehensive validation tests - Add parameter parsing, boundary, and response structure tests - Test coverage: empty/whitespace queries, threshold validation, limit boundaries, defaults matching, parameter combinations All tests pass, quality checks pass, no lint suppressions. 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]>
Resolved conflicts by keeping both features: - get_markdown_from_node_id (from main) - search_containers (from feature branch) Both methods now registered in MCP server with proper service routing.
malibio
added a commit
that referenced
this pull request
Feb 4, 2026
* feat: Expose semantic search via MCP (search_containers method) (#321) - Add search_containers MCP handler for AI agent semantic search access - Create combined McpServices struct for multi-service coordination - Update MCP server to support embedding-based search operations - Integrate NodeEmbeddingService with MCP protocol layer - Add search_containers to MCP capabilities schema for client discovery - Wire up embedding service from Tauri state to MCP server - Implement parameter validation (threshold range, query non-empty) - Provides 6 unit tests for search handler validation - Enables AI agents to find relevant content using natural language Supports parameters: - query (required): Natural language search query - threshold (default: 0.7): Similarity threshold 0.0-1.0 - limit (default: 20): Maximum results - exact (default: false): Use exact cosine distance instead of DiskANN This completes the AI agent workflow: search → read → understand → modify 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]> * refactor: Address code review feedback for search handler (#321) Based on comprehensive pragmatic code review feedback: **Security & Validation Improvements:** - Fix whitespace-only query validation using .trim() - Add upper bound validation for limit parameter (max 1000) - Improve error handling granularity with specific error messages **Code Quality:** - Add authoritative defaults comment (schema vs code) - Enhance JSON schema description with usage examples - Fix clippy warnings (bool comparison, constant assertions) **Testing:** - Replace placeholder tests with 16 comprehensive validation tests - Add parameter parsing, boundary, and response structure tests - Test coverage: empty/whitespace queries, threshold validation, limit boundaries, defaults matching, parameter combinations All tests pass, quality checks pass, no lint suppressions. 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
malibio
added a commit
that referenced
this pull request
Feb 5, 2026
* feat: Expose semantic search via MCP (search_containers method) (#321) - Add search_containers MCP handler for AI agent semantic search access - Create combined McpServices struct for multi-service coordination - Update MCP server to support embedding-based search operations - Integrate NodeEmbeddingService with MCP protocol layer - Add search_containers to MCP capabilities schema for client discovery - Wire up embedding service from Tauri state to MCP server - Implement parameter validation (threshold range, query non-empty) - Provides 6 unit tests for search handler validation - Enables AI agents to find relevant content using natural language Supports parameters: - query (required): Natural language search query - threshold (default: 0.7): Similarity threshold 0.0-1.0 - limit (default: 20): Maximum results - exact (default: false): Use exact cosine distance instead of DiskANN This completes the AI agent workflow: search → read → understand → modify 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]> * refactor: Address code review feedback for search handler (#321) Based on comprehensive pragmatic code review feedback: **Security & Validation Improvements:** - Fix whitespace-only query validation using .trim() - Add upper bound validation for limit parameter (max 1000) - Improve error handling granularity with specific error messages **Code Quality:** - Add authoritative defaults comment (schema vs code) - Enhance JSON schema description with usage examples - Fix clippy warnings (bool comparison, constant assertions) **Testing:** - Replace placeholder tests with 16 comprehensive validation tests - Add parameter parsing, boundary, and response structure tests - Test coverage: empty/whitespace queries, threshold validation, limit boundaries, defaults matching, parameter combinations All tests pass, quality checks pass, no lint suppressions. 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
malibio
added a commit
that referenced
this pull request
Feb 26, 2026
* feat: Expose semantic search via MCP (search_containers method) (#321) - Add search_containers MCP handler for AI agent semantic search access - Create combined McpServices struct for multi-service coordination - Update MCP server to support embedding-based search operations - Integrate NodeEmbeddingService with MCP protocol layer - Add search_containers to MCP capabilities schema for client discovery - Wire up embedding service from Tauri state to MCP server - Implement parameter validation (threshold range, query non-empty) - Provides 6 unit tests for search handler validation - Enables AI agents to find relevant content using natural language Supports parameters: - query (required): Natural language search query - threshold (default: 0.7): Similarity threshold 0.0-1.0 - limit (default: 20): Maximum results - exact (default: false): Use exact cosine distance instead of DiskANN This completes the AI agent workflow: search → read → understand → modify 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]> * refactor: Address code review feedback for search handler (#321) Based on comprehensive pragmatic code review feedback: **Security & Validation Improvements:** - Fix whitespace-only query validation using .trim() - Add upper bound validation for limit parameter (max 1000) - Improve error handling granularity with specific error messages **Code Quality:** - Add authoritative defaults comment (schema vs code) - Enhance JSON schema description with usage examples - Fix clippy warnings (bool comparison, constant assertions) **Testing:** - Replace placeholder tests with 16 comprehensive validation tests - Add parameter parsing, boundary, and response structure tests - Test coverage: empty/whitespace queries, threshold validation, limit boundaries, defaults matching, parameter combinations All tests pass, quality checks pass, no lint suppressions. 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #321