Skip to main content
Glama

Gemini MCP

by emmron

mcp__gemini__refactor_genius

Automate code refactoring with safety validation, test generation, and rollback plans to improve readability, maintainability, and performance across multiple programming languages.

Instructions

Intelligent code refactoring with automated testing, rollback capabilities, and safety validation

Input Schema

NameRequiredDescriptionDefault
codeYesCode to refactor
generate_testsNoGenerate test cases
languageNoProgramming languagejavascript
refactor_goalsNoRefactoring goals
rollback_planNoCreate rollback plan
safety_levelNoSafety levelhigh

Input Schema (JSON Schema)

{ "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "code": { "description": "Code to refactor", "type": "string" }, "generate_tests": { "default": true, "description": "Generate test cases", "type": "boolean" }, "language": { "default": "javascript", "description": "Programming language", "type": "string" }, "refactor_goals": { "default": [ "readability", "maintainability", "performance" ], "description": "Refactoring goals", "items": { "type": "string" }, "type": "array" }, "rollback_plan": { "default": true, "description": "Create rollback plan", "type": "boolean" }, "safety_level": { "default": "high", "description": "Safety level", "type": "string" } }, "required": [ "code" ], "type": "object" }

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/emmron/gemini-mcp'

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