Supports configuration management through .env files, specifically for storing and accessing API keys such as those needed for Gemini integration.
Enables the automated generation of unit tests using the Jest testing framework, with support for creating high-coverage test suites for TypeScript code.
Supports project dependency management through npm, including installation of required packages for the MCP server functionality.
Provides specialized tools for TypeScript code analysis, refactoring, and maintenance, allowing for code improvements, test generation, and documentation creation for TypeScript files.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Servergenerate unit tests for src/mcp-patterns/service.ts using jest"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Server (TypeScript)
Como rodar o projeto
Instale as dependências:
npm installConfigure sua chave Gemini no arquivo
.env:GEMINI_API_KEY=YOUR_GEMINI_API_KEY_HERECompile o projeto TypeScript:
npx tscRode o servidor:
node build/index.js
Related MCP server: TypeScript MCP
Funcionalidades MCP
O servidor expõe ferramentas (tools) para automação de tarefas de código:
Refatoração: Refatora arquivos conforme instruções.
Geração de Testes: Cria testes unitários de alta cobertura.
Geração de Documentação: Gera documentação detalhada para o código.
Assistente de Debug: Analisa código e mensagens de erro, sugerindo correções.
Navegação de Código: Responde perguntas sobre arquivos de código.
Exemplos de uso das tools
Cada ferramenta pode ser chamada via MCP Server, passando os parâmetros necessários:
Observações
As ferramentas MCP funcionam sobre arquivos TypeScript do projeto.
Os exemplos acima podem ser adaptados conforme a necessidade.
Consulte os arquivos em
src/modules/para detalhes de implementação de cada ferramenta.