Skip to content

Epic 1, Story 2: FastMCP Migration Batch 2 - Health Assessment Tools #27

@ma3u

Description

@ma3u

Overview

Migrate the second batch of 5 health assessment tools from FastMCP to Official MCP SDK, ensuring dynamic FAISS vector DB integration.

Tools to Migrate

  • create_health_protocol - Personalized health recommendations with optional parameters
  • analyze_supplement_stack - Supplement interaction analysis with list parameters
  • analyze_health_topic - Comprehensive topic analysis with FAISS search
  • analyze_forum_trends - Forum discussion analysis
  • trace_topic_evolution - Topic evolution over time

Key Requirements

  1. Dynamic FAISS Integration: All tools must fetch results dynamically from FAISS vector DB, not static strings
  2. Complex Parameters: Handle optional parameters, enums, and list types
  3. Search Integration: Maintain knowledge_searcher functionality
  4. Performance: Keep response time under 3 seconds
  5. Feature Flag: ENABLE_BATCH2_MIGRATION for progressive rollout

Acceptance Criteria

  • All 5 tools migrated to Official MCP SDK
  • Dynamic FAISS vector DB queries working
  • Complex parameter handling (optional, enum, list)
  • No regression in Batch 1 tools
  • MCP Inspector validation passing
  • Performance benchmarks met (<3s)
  • Feature flag working independently

Technical Approach

  • Follow patterns from Batch 1 implementation
  • Use Official MCP SDK types.Tool for registration
  • Implement in handle_call_tool() with dynamic FAISS queries
  • Ensure knowledge_searcher is properly initialized

Related

Testing

Tests will be added to validate:

  • Dynamic FAISS retrieval
  • Parameter handling variations
  • Search functionality
  • Performance metrics
  • Integration with Batch 1

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