# Triggercmd — how to use (mcp.ai)

Connect your Triggercmd account and use 5 tools for developer tools straight from your AI agent. Connect with your own API key. TRIGGERcmd is a cloud service that allows you to securely and remotely run commands on your computers.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_triggercmd?ms=1787291460000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `triggercmd_list_commands_v2`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/triggercmd`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/triggercmd/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/triggercmd/list/commands/v2` — Tool to list all available commands for the authenticated user. Use when you need to retrieve all commands configured on your computers.
- `POST https://api.mcp.ai/api/triggercmd/list/computers` — Tool to list all computers associated with your TriggerCMD account. Use after authenticating with your token to retrieve connected machines.
- `POST https://api.mcp.ai/api/triggercmd/list/panel/buttons` — Tool to retrieve all panel buttons configured in your TriggerCMD account. Use when you need to browse available panel buttons before triggering them.
- `POST https://api.mcp.ai/api/triggercmd/trigger/command` — Tool to trigger a specified command on a target computer. Use when you want to remotely execute a pre-configured command after authentication. Values for `computer` and `command` must exactly match id
  - body: { params?: string, command: string, computer: string }
- `POST https://api.mcp.ai/api/triggercmd/trigger/panel/button` — Tool to trigger a specific panel button. Panels allow grouping related commands for easier organization and triggering. Use when you want to execute a command that's part of a panel configuration.
  - body: { panel: string, button: string, params?: string }

## Example prompts
- "What can I do in Triggercmd?"
- "Show me a summary of my Triggercmd account"

## More
- Page: https://mcp.ai/triggercmd
- Agent spec (llms.txt): https://mcp.ai/triggercmd/llms.txt
- Postman collection: https://mcp.ai/triggercmd/postman.json
