migrate-mcp-ts-template

Rewrite @/ imports to @cyanheads/mcp-ts-core and remove bundled framework files.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Migrate an existing mcp-ts-template fork to use @cyanheads/mcp-ts-core as a package dependency. It rewrites internal imports to package subpath imports and removes the bundled framework files, enabling clean upgrades to the MCP core infrastructure.

Core Features & Use Cases

  • Rewrites local framework imports (the @/ paths) to package-backed subpaths from @cyanheads/mcp-ts-core.
  • Removes embedded framework code from the repository while preserving server-specific artifacts (tools, resources, prompts, services).
  • Updates entry points and configuration to rely on the MCP core package, simplifying future upgrades and maintenance.

Quick Start

Run the migration workflow by installing @cyanheads/mcp-ts-core and following the steps to transform imports and clean up framework sources.

Frequently Asked Questions about migrate-mcp-ts-template

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

FAQPage Schema
How do I migrate a forked mcp-ts-template to use the MCP core package?

To migrate an mcp-ts-template fork, install the @cyanheads/mcp-ts-core package and rewrite internal @/ framework imports to package subpaths. The workflow updates src/index.ts to use createApp(), modifies configs, and removes bundled framework files from src/.

What happens to my custom tools and resources when refactoring imports to a package dependency?

Refactoring imports to use @cyanheads/mcp-ts-core preserves your server-specific artifacts such as tools, resources, prompts, and services. The migration only targets embedded framework code and internal @/ path imports, leaving your custom implementation files intact while simplifying future upgrades.

Do I need Bun or Node to refactor local framework imports to package subpaths?

Yes, refactoring local framework imports to package subpaths requires a Bun or Node runtime environment. The migration workflow uses these environments to install @cyanheads/mcp-ts-core, scan src/ directories for internal imports, and run dev checks verifying no local framework code remains.

Why does my mcp-ts-template fork still have local framework code after updating dependencies?

If your mcp-ts-template fork still has local framework code after updating dependencies, the embedded framework files in src/ were not removed. The migration workflow requires explicitly deleting bundled framework sources after rewriting @/ imports to @cyanheads/mcp-ts-core subpaths and updating entry points.

What is the best way to update entry points when moving from bundled framework code to an MCP core package?

The best way to update entry points when moving to an MCP core package is modifying src/index.ts to call createApp() imported from @cyanheads/mcp-ts-core. This replaces local framework initialization, aligns configuration with the package, and ensures clean upgrades to MCP infrastructure.

Can I automate the removal of bundled framework files when migrating to @cyanheads/mcp-ts-core?

The migration workflow automates scanning src/ for @/ imports and rewriting them to package subpaths, but requires manual verification to ensure no local framework code remains. It updates entry points and configs, then runs dev checks to confirm bundled framework files are successfully removed.