MetorialDocs

Set up DeployHQ in Metorial for Claude, ChatGPT and Cursor

Share DeployHQ with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 27 tools (12 read-only).

To give your team DeployHQ in Claude, ChatGPT, Cursor and other AI clients, an admin shares the DeployHQ integration in a Metorial portal, and each person connects with an API key. Agents can automate code deployments from version control repositories to servers. The integration has 27 tools, 12 read-only, 9 write and 6 destructive, plus 2 triggers.

What you'll learn

  • How an admin shares DeployHQ in a portal and how each person connects
  • What DeployHQ asks for when you connect, and where to find it
  • How to keep the 12 read-only tools and reject the other 15

Before you start

Sign-in method

MethodTypeWhat a person provides
API KeyCustom credentialsemail and token

API Key

To connect, a person enters these values:

  • email: Your email address used as the HTTP Basic Auth username
  • token: Your DeployHQ API key (40-character string found in Settings > Security)

Setup settings

Setup also asks for:

  • accountName: Your DeployHQ account name (subdomain). This is the part before .deployhq.com in your account URL.

Admin: share DeployHQ in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose DeployHQ. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from DeployHQ.

Choose who gets it

Add the access groups that should see DeployHQ. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user DeployHQ integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search deployhq

Employee: connect DeployHQ

In the portal

Open DeployHQ in the catalog

Sign in to your portal and open DeployHQ. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API key (email and token).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search deployhq
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your DeployHQ connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list deployhq
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 12 read-only tools, such as get_server and list_zones, and lose the 9 write tools, such as create_server or update_server, and the 6 destructive tools, such as delete_server or delete_project.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list deployhq
metorial tools <integration-id>
metorial call <integration-id> list_projects -d '{}'

metorial tools lists the 27 tools, minus any you rejected. list_projects takes no input. It lists all projects in your DeployHQ account.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (12)

  • get_project: Retrieve detailed information about a specific DeployHQ project by its permalink. Needs projectPermalink.
  • list_server_groups: List all server groups for a DeployHQ project, including the servers in each group. Needs projectPermalink.
  • list_deployments: List recent deployments for a DeployHQ project. Needs projectPermalink.
  • list_scheduled_deployments: List all scheduled deployments for a DeployHQ project. Needs projectPermalink.
  • list_servers: List all servers configured for a DeployHQ project. Needs projectPermalink.
  • get_deployment: Retrieve detailed information about a specific deployment including status, timing, revision details, deployer, and file changes. Needs projectPermalink and deploymentIdentifier.
  • list_config_files: List all configuration files for a DeployHQ project. Needs projectPermalink.
  • list_projects: List all projects in your DeployHQ account.
  • list_ssh_commands: List all SSH commands configured for a DeployHQ project. Needs projectPermalink.
  • list_zones: Discover available deployment zones and their identifiers for project creation and updates.
  • get_profile: View the authenticated DeployHQ user and account details.
  • get_server: View a deployment server and its current settings.

Write tools (9)

  • create_project: Create a new DeployHQ project. Needs name.
  • create_config_file: Add a new configuration file to a DeployHQ project. Needs projectPermalink, path and body.
  • create_ssh_command: Add a new SSH command to a DeployHQ project. Needs projectPermalink, description, command, callback, timing and timeout.
  • update_config_file: Update an existing configuration file in a DeployHQ project. Needs projectPermalink and configFileIdentifier.
  • create_server: Add a new deployment server to a DeployHQ project. Needs projectPermalink, name and protocolType.
  • create_deployment: Trigger a new deployment for a DeployHQ project. Needs projectPermalink and parentIdentifier.
  • update_project: Update project name, deployment zone, and notification preferences.
  • update_ssh_command: Update an SSH command, execution stage, timeout, or enabled state.
  • update_server: Update a deployment target, connection settings, branch, or automatic deployment preferences.

Destructive tools (6)

  • delete_config_file: Remove a configuration file from a DeployHQ project. Needs projectPermalink and configFileIdentifier.
  • delete_server: Remove a server from a DeployHQ project. Needs projectPermalink and serverIdentifier.
  • delete_ssh_command: Remove an SSH command from a DeployHQ project. Needs projectPermalink and commandIdentifier.
  • delete_project: Permanently delete a DeployHQ project and all associated servers, deployments, and configuration. Needs projectPermalink.
  • cancel_scheduled_deployment: Cancel a forthcoming deployment schedule.
  • manage_deployment: Retry a completed deployment, roll back to a previous deployment, or abort a running deployment.

Triggers

DeployHQ has 2 triggers, which fire on events in DeployHQ:

  • deployment_events: Triggers when a deployment is completed or fails in a DeployHQ project.
  • inbound_webhook

Next steps