refactor-code
Refactor code snippets by applying specific instructions, using optional file context for precision. Supports multiple programming languages to enhance code quality and maintainability.
Instructions
Refactors a given code snippet based on specific instructions, optionally using surrounding file context.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
codeContent | Yes | The actual code snippet to be refactored. | |
contextFilePath | No | Optional relative path to a file whose content provides broader context for the refactoring task. | |
language | Yes | The programming language of the code snippet (e.g., 'typescript', 'python', 'javascript') | |
refactoringInstructions | Yes | Specific instructions on how the code should be refactored (e.g., 'extract the loop into a separate function', 'improve variable names', 'add error handling', 'convert promises to async/await'). |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from Vibe Coder MCP
Related Tools
- @freshtechbro/vibe-coder-mcp
- @sammcj/mcp-llm
- @sammcj/mcp-llm
- @formulahendry/mcp-server-code-runner
- @ngeojiajun/mcp-code-snippets