add-provider

Add a storage or service provider to MCP core with interface and registration steps.

148|28|Updated Mar 20, 2025
One-click install
npx skills add https://github.com/cyanheads/mcp-ts-core --skill add-provider-cyanheads
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-provider
Source: https://github.com/cyanheads/mcp-ts-core/tree/main/skills/add-provider
Command: npx skills add https://github.com/cyanheads/mcp-ts-core --skill add-provider-cyanheads

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Providers require a structured approach to add new backends; this Skill guides implementing a new backend provider (e.g., for StorageService) and how to integrate it into MCP core.

Core Features & Use Cases

  • Defines the provider interfaces for Storage, LLM, and Speech, and shows file conventions.
  • Demonstrates lazy-loading of Tier 3 dependencies and the required runtime registration.
  • Walks through updating factories and worker lists to incorporate the new provider.

Quick Start

Create a new provider file following the conventions, implement the interface, register it in the appropriate factory, and run bun run devcheck.

Frequently Asked Questions about add-provider

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a new storage provider to a TypeScript backend?

To add a new storage provider, create a provider file, implement the required interface, register it in the appropriate factory, and update worker lists if needed. This structured approach ensures the new backend integrates correctly into the MCP core system.

What is lazy-loading for Tier 3 dependencies when implementing a provider?

Lazy-loading for Tier 3 dependencies defers loading non-critical modules until runtime, reducing initial overhead. When adding a new provider, this technique ensures required runtime registration occurs efficiently without unnecessarily impacting core startup performance.

How do I register a new LLM or Speech provider in the factory?

Registering a new LLM or Speech provider requires implementing the specific provider interface, adding it to the correct factory registration, and running type checks. You must also update worker lists to incorporate the new provider into the active backend workflow.

Does adding a new service provider require a YAML frontmatter in SKILL.md?

Yes, adding a new service provider requires a YAML frontmatter containing the name and description fields in SKILL.md. This metadata documents the provider's purpose and integrates it properly into the MCP core architecture.

What steps are needed to verify a new backend provider implementation?

To verify a new backend provider implementation, run the bun run devcheck command. This validates that interface definitions, factory registrations, and worker list updates are type-safe and correctly integrated into the StorageService architecture.

Can I use this approach to implement backends beyond StorageService?

Yes, this approach applies to implementing new backends for StorageService as well as new providers for LLM or Speech. It defines interfaces, file conventions, and registration steps that standardize adding any provider type to the MCP core.