mcp-server
v1.2.15Heroku Platform MCP Server
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_apps
List Heroku apps: owned, collaborator access, team/space filtering
| Parameter | Type | Description |
|---|---|---|
all | boolean | Show owned apps and collaborator access. Default: owned only |
personal | boolean | List personal account apps only, ignoring default team |
space | string | Filter by private space name. Excludes team param |
team | string | Filter by team name. Excludes space param |
get_app_info
Get app details: config, dynos, addons, access, domains
| Parameter | Type | Description |
|---|---|---|
app * | string | Target app name. Requires access permissions |
json | boolean | JSON output with full metadata. Default: text format |
create_app
Create app: custom name, region (US/EU), team, private space
| Parameter | Type | Description |
|---|---|---|
app | string | App name. Auto-generated if omitted |
region | string | Region: us/eu. Default: us. Excludes space param |
space | string | Private space name. Inherits region. Excludes region param |
team | string | Team name for ownership |
rename_app
Rename app: validate and update app name
| Parameter | Type | Description |
|---|---|---|
app * | string | Current app name. Requires access |
newName * | string | New unique app name |
maintenance_on
Enable maintenance mode and redirect traffic for a Heroku app
| Parameter | Type | Description |
|---|---|---|
app * | string | Target Heroku app name |
maintenance_off
Disable maintenance mode and restore normal app operations
| Parameter | Type | Description |
|---|---|---|
app * | string | Target Heroku app name |
get_app_logs
App logs: monitor/debug/filter by dyno/process/source
| Parameter | Type | Description |
|---|---|---|
app * | string | Heroku app name. Requires: permissions, Cedar-gen |
dynoName | string | Format: web.1/worker.2. Excludes processType |
processType | string | web|worker. All instances. Excludes dynoName |
source | string | app=application, heroku=platform. Default: all |
list_private_spaces
Lists Heroku Private Spaces with CIDR blocks, regions, compliance and capacity details. JSON output supported.
| Parameter | Type | Description |
|---|---|---|
json | boolean | JSON output for detailed space metadata, text output if false/omitted |
list_teams
Lists accessible Heroku Teams. Use for: viewing teams, checking membership, getting team metadata, and verifying access. JSON output available.
| Parameter | Type | Description |
|---|---|---|
json | boolean | Output format control - true for detailed JSON with team metadata, false/omitted for simplified text |
list_addons
List add-ons: all apps or specific app, detailed metadata
| Parameter | Type | Description |
|---|---|---|
all | boolean | List all add-ons across accessible apps. Overrides app param, shows full status |
app | string | Filter by app name. Shows add-ons and attachments. Uses Git remote default if omitted |
get_addon_info
Get add-on details: plan, state, billing
| Parameter | Type | Description |
|---|---|---|
addon * | string | Add-on identifier: UUID, name (postgresql-curved-12345), or attachment name (DATABASE) |
app | string | App context for add-on lookup. Required for attachment names. Uses Git remote default |
create_addon
Create add-on: specify service, plan, custom names
| Parameter | Type | Description |
|---|---|---|
app * | string | Target app for add-on. Must have write access. Region/space affects availability |
serviceAndPlan * | string | Format: service_slug:plan_slug (e.g., heroku-postgresql:essential-0) |
as | string | Custom attachment name. Used for config vars prefix. Must be unique in app |
name | string | Global add-on identifier. Must be unique across all Heroku add-ons |
list_addon_services
List available add-on services and features
| Parameter | Type | Description |
|---|---|---|
json | boolean | JSON output with sharing options and app generation support. Default: basic text |
list_addon_plans
List service plans: features, pricing, availability
| Parameter | Type | Description |
|---|---|---|
service * | string | Service slug (e.g., heroku-postgresql). Get from list_addon_services |
json | boolean | JSON output with pricing, features, space compatibility. Default: text format |
pg_psql
Execute SQL queries: analyze, debug, modify schema, manage data
| Parameter | Type | Description |
|---|---|---|
app * | string | app to run command against |
command | string | SQL command. Single line. Ignored if file provided |
credential | string | credential to use |
database | string | Database identifier: config var, name, ID, alias. Format: APP_NAME::DB for other apps. Default: DATABASE_URL |
file | string | SQL file path. Ignored if command provided |
pg_info
View database status: config, metrics, resources, health
| Parameter | Type | Description |
|---|---|---|
app * | string | Target app name |
database | string | Database identifier. Format: APP_NAME::DB for other apps. Default: all databases |
pg_ps
Monitor active queries: progress, resources, performance
| Parameter | Type | Description |
|---|---|---|
app * | string | Target app name |
database | string | Database identifier. Format: APP_NAME::DB for other apps. Default: DATABASE_URL |
verbose | boolean | Show query plan and memory usage |
pg_locks
Analyze locks: blocked queries, deadlocks, concurrency
| Parameter | Type | Description |
|---|---|---|
app * | string | Target app name |
database | string | Database identifier. Format: APP_NAME::DB for other apps. Default: DATABASE_URL |
truncate | boolean | Truncate queries to 40 chars |
pg_outliers
Find resource-heavy queries: performance, patterns, optimization
| Parameter | Type | Description |
|---|---|---|
app * | string | Target app name |
database | string | Database identifier. Format: APP_NAME::DB for other apps. Default: DATABASE_URL |
num | number | Number of queries to show. Default: 10 |
reset | boolean | Reset pg_stat_statements stats |
truncate | boolean | Truncate queries to 40 chars |
pg_credentials
Manage access: credentials, permissions, security, monitoring
| Parameter | Type | Description |
|---|---|---|
app * | string | Target app name |
database | string | Database identifier. Format: APP_NAME::DB for other apps. Default: DATABASE_URL |
pg_kill
Stop processes: stuck queries, blocking transactions, runaway operations
| Parameter | Type | Description |
|---|---|---|
app * | string | Target app name |
pid * | number | Process ID to terminate |
database | string | Database identifier. Format: APP_NAME::DB for other apps. Default: DATABASE_URL |
force | boolean | Force immediate termination |
pg_maintenance
Track maintenance: windows, schedules, progress, planning
| Parameter | Type | Description |
|---|---|---|
app * | string | Target app name |
database | string | Database identifier. Format: APP_NAME::DB for other apps. Default: DATABASE_URL |
pg_backups
Manage backups: schedules, status, verification, recovery
| Parameter | Type | Description |
|---|---|---|
app * | string | Target app name |
pg_upgrade
Upgrade PostgreSQL: version migration, compatibility, safety
| Parameter | Type | Description |
|---|---|---|
app * | string | Target app name |
confirm | string | Confirmation for destructive operation |
database | string | Database identifier. Format: APP_NAME::DB for other apps. Default: DATABASE_URL |
version | string | PostgreSQL version target |
ps_list
List and monitor Heroku app dynos. View running dynos, check status/health, monitor process states, verify configurations.
| Parameter | Type | Description |
|---|---|---|
app * | string | App name to list processes for |
json | boolean | Output process info in JSON format |
ps_scale
Scale Heroku app dynos. Adjust quantities, change sizes, view formation details, manage resources.
| Parameter | Type | Description |
|---|---|---|
app * | string | App name to scale |
dyno | string | Dyno type and quantity (e.g., web=3:Standard-2X, worker+1). Omit to show current formation |
ps_restart
Restart Heroku app processes. Restart specific dynos, process types, or all dynos. Reset dyno states selectively.
| Parameter | Type | Description |
|---|---|---|
app * | string | App name to restart processes for |
dyno-name | string | Specific dyno to restart (e.g., web.1). Omit both options to restart all |
process-type | string | Dyno type to restart (e.g., web). Omit both options to restart all |
pipelines_create
Creates new Heroku deployment pipeline with configurable stages, apps, and team settings
| Parameter | Type | Description |
|---|---|---|
name * | string | Pipeline name |
stage * | string | Initial pipeline stage |
app | string | App to add to pipeline |
team | string | Team owning the pipeline |
pipelines_promote
Promotes apps between pipeline stages with configurable target applications
| Parameter | Type | Description |
|---|---|---|
app * | string | Source app for promotion |
to | string | Target apps for promotion (comma-separated) |
pipelines_list
Lists accessible Heroku pipelines with ownership and configuration details
| Parameter | Type | Description |
|---|---|---|
json | boolean | Enable JSON output |
pipelines_info
Displays detailed pipeline configuration, stages, and connected applications
| Parameter | Type | Description |
|---|---|---|
pipeline * | string | Target pipeline name |
json | boolean | Enable JSON output |
deploy_to_heroku
Use for all deployments. Deploys new/existing apps, with or without teams/spaces, and env vars to Heroku. Ask for app name if missing. Requires valid app.json via appJson param.
| Parameter | Type | Description |
|---|---|---|
appJson * | string | App.json config for deployment. Must follow schema: {"default":{"$schema":"http://json-schema.org/draft-07/schema#","title":"Heroku app.json Schema","description":"app.json is a manifest format for de… |
name * | string | App name for deployment. Creates new app if not exists. |
rootUri * | string | Workspace root directory path. |
env | object | Environment variables overriding app.json values |
internalRouting | boolean | Enable internal routing in private spaces. |
spaceId | string | Private space ID for space deployments. |
tarballUri | string | URL of deployment tarball. Creates from rootUri if not provided. |
teamId | string | Team ID for team deployments. |
deploy_one_off_dyno
Run code/commands in Heroku one-off dyno with network and filesystem access. Requirements: - Show command output - Use app_info for buildpack detection - Support shell setup commands - Use stdout/stderr Features: - Network/filesystem access - Environment variables - File operations - Temp directory handling Usage: 1. Use Heroku runtime 2. Proper syntax/imports 3. Organized code structure 4. Package management: - Define dependencies - Minimize external deps - Prefer native modules Example package.json: ```json { "type": "module", "dependencies": { "axios": "^1.6.0" } } `…
| Parameter | Type | Description |
|---|---|---|
command * | string | Command to run in dyno. |
name * | string | Target Heroku app name. |
env | object | Dyno environment variables. |
size | string | Dyno size. |
sources | array | Source files to include in dyno. |
timeToLive | number | Dyno lifetime in seconds. |