Skip to main content
Glama
heroku

Heroku MCP server

Official
by heroku

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
NameRequiredDescriptionDefault
appYesThe name of the Heroku app to modify maintenance mode for. This must be an existing app that you have access to.

Implementation Reference

  • 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); }
  • 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') });
  • 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);
  • Constant mapping the MAINTENANCE_OFF tool to the Heroku CLI command 'maintenance:off' used in the handler.
    MAINTENANCE_OFF: 'maintenance:off',

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/heroku/heroku-mcp-server'

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