Skip to main content
Glama

CodeCompass MCP

MIT License
2
  • Linux
  • Apple

transform_code

Apply syntax and structural code transformations for renaming, performance optimization, framework migration, and modernization. Supports multiple programming languages and preserves business logic.

Instructions

šŸ”§ Apply code transformations including syntax changes, structural reorganization, framework migration, and modernization. Combines syntax-level and structural changes.

Input Schema

NameRequiredDescriptionDefault
codeYesSource code to transform
languageYesProgramming language of the code
optionsNo
target_frameworkNoTarget framework (for framework migration)
target_languageNoTarget language (for language conversion)
transformationsYesList of transformations to apply

Input Schema (JSON Schema)

{ "properties": { "code": { "description": "Source code to transform", "type": "string" }, "language": { "description": "Programming language of the code", "type": "string" }, "options": { "properties": { "include_instructions": { "default": true, "description": "Include transformation instructions", "type": "boolean" }, "preserve_comments": { "default": true, "description": "Preserve code comments", "type": "boolean" }, "preserve_logic": { "default": true, "description": "Preserve business logic during transformation", "type": "boolean" }, "update_imports": { "default": true, "description": "Update import paths automatically", "type": "boolean" }, "validate_syntax": { "default": true, "description": "Validate syntax after transformation", "type": "boolean" } }, "type": "object" }, "target_framework": { "description": "Target framework (for framework migration)", "type": "string" }, "target_language": { "description": "Target language (for language conversion)", "type": "string" }, "transformations": { "description": "List of transformations to apply", "items": { "properties": { "options": { "description": "Transformation-specific options", "type": "object" }, "type": { "description": "Type of transformation", "enum": [ "naming", "modernize", "framework", "performance", "security", "structure", "migration" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "type": "array" } }, "required": [ "code", "transformations", "language" ], "type": "object" }

Other Tools from CodeCompass MCP

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TheAlchemist6/codecompass-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server