Skip to content

Phase 10: Implement full MCP wrapper synchronization #70

@aberemia24

Description

@aberemia24

Context: Daily sync feature currently has stub implementations for Phase 10.

Tasks:

  1. Integrate with MCPClientPool.discoverMCPTools() for schema fetching
  2. Implement full schema hashing algorithm (normalize, sort, SHA-256)
  3. Reconstruct MCPServerSelection from wrapper entries
  4. Implement full wrapper regeneration

Locations:

  • src/cli/daily-sync.ts:322 - Schema fetching TODO
  • src/cli/daily-sync.ts:334 - Hash computation TODO
  • src/cli/daily-sync.ts:351 - MCPServerSelection reconstruction TODO
  • src/cli/daily-sync.ts:363 - Wrapper regeneration TODO

Priority: Enhancement (Phase 10, post-v1.0.0)

Current Behavior: Stub implementations return deterministic test data.

Desired Behavior: Full integration with MCP discovery and wrapper generation.

Dependencies: Phase 8 (wrapper-generator) completion

Algorithm (from code comments):

  1. Call discoverMCPTools({ search: [mcpName] })
  2. Extract tools array, sort by name (deterministic order)
  3. JSON.stringify with sorted keys
  4. Compute SHA-256 hash
  5. Reconstruct config and regenerate wrappers

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions