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
- A portal with at least one access group
- An API key from DeployHQ for each person, or one for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in method
| Method | Type | What a person provides |
|---|---|---|
| API Key | Custom credentials | email and token |
API Key
To connect, a person enters these values:
email: Your email address used as the HTTP Basic Auth usernametoken: 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:
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
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.
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 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. NeedsprojectPermalink.list_server_groups: List all server groups for a DeployHQ project, including the servers in each group. NeedsprojectPermalink.list_deployments: List recent deployments for a DeployHQ project. NeedsprojectPermalink.list_scheduled_deployments: List all scheduled deployments for a DeployHQ project. NeedsprojectPermalink.list_servers: List all servers configured for a DeployHQ project. NeedsprojectPermalink.get_deployment: Retrieve detailed information about a specific deployment including status, timing, revision details, deployer, and file changes. NeedsprojectPermalinkanddeploymentIdentifier.list_config_files: List all configuration files for a DeployHQ project. NeedsprojectPermalink.list_projects: List all projects in your DeployHQ account.list_ssh_commands: List all SSH commands configured for a DeployHQ project. NeedsprojectPermalink.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. Needsname.create_config_file: Add a new configuration file to a DeployHQ project. NeedsprojectPermalink,pathandbody.create_ssh_command: Add a new SSH command to a DeployHQ project. NeedsprojectPermalink,description,command,callback,timingandtimeout.update_config_file: Update an existing configuration file in a DeployHQ project. NeedsprojectPermalinkandconfigFileIdentifier.create_server: Add a new deployment server to a DeployHQ project. NeedsprojectPermalink,nameandprotocolType.create_deployment: Trigger a new deployment for a DeployHQ project. NeedsprojectPermalinkandparentIdentifier.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. NeedsprojectPermalinkandconfigFileIdentifier.delete_server: Remove a server from a DeployHQ project. NeedsprojectPermalinkandserverIdentifier.delete_ssh_command: Remove an SSH command from a DeployHQ project. NeedsprojectPermalinkandcommandIdentifier.delete_project: Permanently delete a DeployHQ project and all associated servers, deployments, and configuration. NeedsprojectPermalink.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
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use DeployHQ there
- Tool permissions: tool filters and what employees see
- DeployHQ on metorial.com: the integration overview