Skip to content

Conversation

@neilime
Copy link

@neilime neilime commented Dec 22, 2025

Summary

  • Refactored MCP tool registration to be provider-driven: server.ts now loops over a provider list and calls registerTool uniformly.
  • Added a shared Provider type to standardize provider metadata (tool name/description/schema) plus the generateImage implementation.
  • Updated each provider module to export only its provider object (single public export per provider file).

Testing

  • Made server.ts import-safe and added registerProviders() to enable unit testing without starting the server process.
  • Added unit tests using node:test (organized with describe/it).
  • Added provider-specific tests that stub external dependencies via dependency injection (no real network/API calls and no filesystem writes).
  • Updated npm test to run Node's test runner with TS support: node --import tsx --test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant