Skip to main content
Glama
codedrop-codes

Refactory

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
refactory_analyzeB

Analyze a source file for decomposition. Returns health score, function count, dependency graph, and recommended split points.

refactory_planA

Generate a decomposition plan — module boundaries, function assignments, dependency order. Uses AST analysis + LLM reasoning.

refactory_extractC

Extract one module from the monolith according to the plan. Routes to the cheapest capable free LLM API.

refactory_verifyB

Verify a decomposed module: loads without errors, exports match plan, no circular deps, tests pass.

refactory_metricsB

Calculate before/after metrics and the Refactory Score (0-1). Measures health improvement, module quality, test preservation.

refactory_reportA

Generate a decomposition report with metrics, dependency graphs, and Refactory Score. Outputs Markdown or HTML.

refactory_depmapA

Map dependencies for a file — who requires it (consumers), what it requires (dependencies), detect circular deps.

refactory_characterizeA

Generate characterization tests and golden export snapshot BEFORE decomposition. Captures behavioral contract.

refactory_verify_exportsA

Compare post-decomposition module against golden export snapshot. Reports missing, added, or type-changed exports.

refactory_fix_importsA

Mechanically fix broken require() paths after module extraction. No LLM needed — pure path resolution.

refactory_decomposeA

Full decomposition pipeline in one call: analyze, depmap, characterize, plan, extract ALL modules, fix-imports, verify, metrics, re-export, report. The 'just do it' tool.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/codedrop-codes/refactory'

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