TypeScript Migrator MCP
Migrate JavaScript files to TypeScript with customizable conversion rules.
TypeScript Migrator MCP
This MCP server let you easily converts JavaScript files to TypeScript with AI agent.
Setup
Add the following configuration to your MCP settings JSON:
{
"mcpServers": {
"typescript-migrator-mcp": {
"command": "npx",
"args": ["-y", "typescript-migrator-mcp"]
}
}
}
Usage
Once configured, your AI agent can convert JavaScript files to TypeScript by calling the conversion tool with a file path:
Convert @test/myFile.js to TypeScript
The tool will:
- Analyze the JavaScript file and its dependencies
- Generate appropriate TypeScript types and interfaces
- Preserve original logic while adding type safety
- Ensure lint and type errors are fixed
- Summarize the work of AI
Configuration
Custom Rules
To add your own conversion rules, create a custom markdown file with your rules and specify its path in the environment configuration:
{
"mcpServers": {
"typescript-migrator-mcp": {
"command": "npx",
"args": ["-y", "typescript-migrator-mcp"],
"env": {
"CUSTOM_RULES_MD_FILE_PATH": "/path/to/your/custom-rules.md"
}
}
}
}
License
Apache 2.0
Related Servers
MCP Docs Server
Provides direct access to local documentation files through a context.md file in the project root.
MCP My Mac
Exposes local Mac system information through a simple API for AI assistants.
Lingo.dev
Make your AI agent speak every language on the planet, using Lingo.dev Localization Engine.
Voiceflow MCP Client
A Node.js client that integrates with remote MCP servers to provide tools for Voiceflow Agents.
CodeToPrompt MCP Server
An MCP server for the codetoprompt library, enabling integration with LLM agents.
Clay MCP Server
An MCP server for interacting with the Clay API, which requires a Clay API key.
HiGHS MCP Server
Provides linear programming (LP) and mixed-integer programming (MIP) optimization capabilities using the HiGHS solver.
MCP SBOM Server
Performs a Trivy scan to produce a Software Bill of Materials (SBOM) in CycloneDX format.
BoostSecurity
BoostSecurity MCP acts as a safeguard preventing agents from adding vulnerable packages into projects. It analyzes every package an AI agent introduces, flags unsafe dependencies, and recommends secure, maintained alternatives to keep projects protected.
VSCode MCP
Enables AI agents and assistants to interact with Visual Studio Code through the Model Context Protocol.