-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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 parametersanalyze_supplement_stack- Supplement interaction analysis with list parametersanalyze_health_topic- Comprehensive topic analysis with FAISS searchanalyze_forum_trends- Forum discussion analysistrace_topic_evolution- Topic evolution over time
Key Requirements
- Dynamic FAISS Integration: All tools must fetch results dynamically from FAISS vector DB, not static strings
- Complex Parameters: Handle optional parameters, enums, and list types
- Search Integration: Maintain knowledge_searcher functionality
- Performance: Keep response time under 3 seconds
- Feature Flag:
ENABLE_BATCH2_MIGRATIONfor 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
- Prerequisite: Phase 1b: Official SDK Tool Registration Completion #7 (Batch 1 completion)
- Epic: Epic: MCP Server Stability Fix - Complete FastMCP Elimination #1 (FastMCP to Official MCP SDK Migration)
- Story: docs/stories/epic-1-story-2-fastmcp-migration-batch2.md
Testing
Tests will be added to validate:
- Dynamic FAISS retrieval
- Parameter handling variations
- Search functionality
- Performance metrics
- Integration with Batch 1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request