typescript-mcp

brayanepv1/typescript-mcp

3.1

If you are the rightful owner of typescript-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The TypeScript Model Context Protocol (MCP) server is designed to enhance TypeScript development by providing advanced code manipulation and analysis capabilities.

typescript-mcp

typescript-mcp

⚠️ This project is under active development. APIs and features may change without notice.

Welcome to the typescript-mcp repository! This project offers a specialized TypeScript MCP server that enhances code manipulation and analysis capabilities. It aims to bridge the gap in functionality that traditional IDEs might lack, particularly in semantic refactorings like "Go to Definition" or "Rename."

Table of Contents

Motivation

Roo and Claude Code encounter issues with errors in their IDEs but struggle with semantic refactorings. This limitation can hinder productivity and lead to frustration. The typescript-mcp project addresses this by providing functionality equivalent to the Language Server Protocol (LSP).

While large language models (LLMs) excel in many areas, they often fall short in precise tasks like word counting. To remedy this, our tool counts by lines and symbols, offering a more reliable and effective solution.

Installation

Quick Setup with --init=claude

Setting up typescript-mcp in your project is straightforward. Follow these steps:

npm install typescript typescript-mcp -D
npx typescript-mcp --init=claude
# Creates/updates .mcp.json with typescript-mcp configuration
# Creates/updates .claude/settings.json with permissions

After running the initialization command, you can start using Claude with:

claude

Optional: Prompt

For those looking to optimize their refactoring process, consider the following prompt:

## CRITICAL: Tool Usage Priority for Refactoring

**When performing refactoring operations (rename, move, etc.) on...

Features

  • Advanced Code Analysis: Analyze TypeScript code with precision.
  • Semantic Refactorings: Perform operations like renaming and moving with ease.
  • Custom Configuration: Easily customize settings to fit your workflow.
  • Integration with Existing Tools: Works seamlessly with popular IDEs and editors.
  • Line and Symbol Counting: Reliable metrics for code evaluation.

Usage

After installation, you can utilize the features of typescript-mcp in your development workflow.

  1. Run Claude: Start the tool by executing claude in your terminal.
  2. Configure Settings: Adjust settings in .claude/settings.json to suit your needs.
  3. Perform Refactorings: Use the tool to perform semantic refactorings as needed.

For more advanced usage, refer to the documentation provided in the repository.

Contributing

We welcome contributions to typescript-mcp! If you have ideas for improvements or new features, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or fix.
  3. Make your changes and commit them with clear messages.
  4. Push your changes to your forked repository.
  5. Submit a pull request to the main repository.

License

This project is licensed under the MIT License. See the file for details.

Releases

To stay updated on the latest changes, please visit the Releases section. Here, you can find the latest versions and updates.


Thank you for your interest in typescript-mcp! We hope this tool enhances your TypeScript development experience. For any questions or feedback, feel free to open an issue in the repository.