maintenance_off
Turn off maintenance mode for Heroku apps to restore traffic, resume dyno operations, complete deployments, and verify application health. Specify the app name to reactivate services.
Instructions
Disable maintenance mode for Heroku applications. Use this tool when you need to: 1) Restore normal application traffic routing, 2) Resume dyno operations after maintenance, 3) Complete deployment processes, 4) Verify application health after maintenance. The tool handles service restoration and process resumption.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | The name of the Heroku app to modify maintenance mode for. This must be an existing app that you have access to. |
Implementation Reference
- src/tools/maintenance.ts:61-70 (handler)The handler function for the 'maintenance_off' tool. It constructs a Heroku CLI command 'maintenance:off' with the app name flag using CommandBuilder, executes it via the HerokuREPL, and returns the processed CLI output.async (options: MaintenanceModeOptions): Promise<McpToolResponse> => { const command = new CommandBuilder(TOOL_COMMAND_MAP.MAINTENANCE_OFF) .addFlags({ app: options.app }) .build(); const output = await herokuRepl.executeCommand(command); return handleCliOutput(output); }
- src/tools/maintenance.ts:14-16 (schema)Zod schema for input validation of the 'maintenance_off' tool, defining a required 'app' string parameter.export const maintenanceModeOptionsSchema = z.object({ app: z.string().describe('Target Heroku app name') });
- src/tools/maintenance.ts:57-71 (registration)MCP server tool registration for 'maintenance_off', specifying name, description, input schema, and inline handler function.server.tool( 'maintenance_off', 'Disable maintenance mode and restore normal app operations', maintenanceModeOptionsSchema.shape, async (options: MaintenanceModeOptions): Promise<McpToolResponse> => { const command = new CommandBuilder(TOOL_COMMAND_MAP.MAINTENANCE_OFF) .addFlags({ app: options.app }) .build(); const output = await herokuRepl.executeCommand(command); return handleCliOutput(output); } );
- src/index.ts:57-57 (registration)Invocation of the registerMaintenanceOffTool function during MCP server initialization to register the 'maintenance_off' tool.maintenance.registerMaintenanceOffTool(server, herokuRepl);
- src/utils/tool-commands.ts:15-15 (helper)Constant mapping the MAINTENANCE_OFF tool to the Heroku CLI command 'maintenance:off' used in the handler.MAINTENANCE_OFF: 'maintenance:off',