Skip to content

Epic 1, Story 3: FastMCP Migration Batch 3 - Complex Analysis Tools #28

@ma3u

Description

@ma3u

Overview

Migrate the third batch of 5 complex analysis tools from FastMCP to Official MCP SDK, ensuring dynamic FAISS vector DB integration for all search operations.

Tools to Migrate

  • knowledge_search - Core semantic search with source filtering and k parameter
  • find_contradictions - Contradiction analysis across time periods
  • search_by_date_range - Temporal filtering search
  • get_vector_db_analysis - Database content statistics and analysis
  • ping - Health check endpoint

Key Requirements

  1. Dynamic FAISS Integration: All search tools must query FAISS vector DB in real-time
  2. Complex Filtering: Support source filters (books/news/forum) and date ranges
  3. Large Result Sets: Handle k values up to 50 efficiently
  4. Search Performance: Maintain acceptable performance (may exceed 3s for complex queries)
  5. Feature Flag: ENABLE_BATCH3_MIGRATION for progressive rollout
  6. Exact Compatibility: Preserve exact output format for backward compatibility

Acceptance Criteria

  • All 5 tools migrated to Official MCP SDK
  • Dynamic FAISS vector DB queries working for all search operations
  • Complex filtering (sources, dates, k parameter)
  • No regression in Batch 1 & 2 tools
  • MCP Inspector validation passing
  • Performance benchmarks documented
  • Feature flag working with all batch combinations

Technical Approach

  • Core knowledge_search is critical - must maintain exact behavior
  • Implement comprehensive inputSchema with constraints
  • Handle optional parameters gracefully
  • Preserve result ordering and format
  • Monitor memory usage with large k values

Related

Testing Focus

  • All source filter combinations
  • Date range edge cases
  • Large result sets (k=50)
  • Concurrent search requests
  • Memory usage monitoring
  • A/B testing against old implementation

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions