Api patterns

From wyre-technology/msp-claude-plugins · View interactive version

Api patterns is an AI agent skill from the GitHub repository wyre-technology/msp-claude-plugins. Huntress MCP fundamentals: HTTP Basic Auth via API key/secret headers, the full MCP tool catalog, token-based pagination, the 60 req/min rate limit, and the common HTTP error codes with their causes.

How to use this skill

Skill file

Huntress MCP Tools & API Patterns

Overview

The Huntress MCP server provides AI tool integration with the Huntress managed threat detection and response platform. It exposes tools covering account management, endpoint agents, organizations, incidents, escalations, billing, signals, and user management. The API uses HTTP Basic Auth with an API key and secret.

Connection & Authentication

HTTP Basic Auth

Huntress authenticates using an API key and secret passed as HTTP headers:

| Header | Description |

|--------|-------------|

| X-Huntress-API-Key | Your Huntress API key |

| X-Huntress-API-Secret | Your Huntress API secret |

Generate credentials at: Huntress Dashboard > Settings > API Credentials

Through Conduit, paste both values into the Huntress connection; Conduit injects them as the headers above. Nothing is set on the client.

Available MCP Tools

Navigation

| Tool | Description |

|------|-------------|

| huntress_navigate | Discovery aid — lists the tool names and descriptions in one domain (accounts, agents, organizations, incidents, billing, signals, users) |

| huntress_status | Check Huntress API connection status and which domains are available |

Navigation here is stateless discovery, not a cursor. There is no

current resource and no history, so there is no "back" tool — every tool

below is callable directly at any time, and huntress_navigate is never

a prerequisite for calling one.

Read the catalog below instead.

Account

| Tool | Description |

|------|-------------|

| huntress_accounts_get | Get account details |

| huntress_accounts_actor | Get current authenticated actor info |

Agents

| Tool | Description |

|------|-------------|

| huntress_agents_list | List endpoint agents with filters |

| huntress_agents_get | Get details for a specific agent |

Organizations

| Tool | Description |

|------|-------------|

| huntress_organizations_list | List all organizations |

| huntress_organizations_get | Get organization details |

| huntress_organizations_create | Create a new organization |

| huntress_organizations_update | Update an organization |

| huntress_organizations_delete | Delete an organization |

Incidents

| Tool | Description |

|------|-------------|

| huntress_incidents_list | List incidents with filters |

| huntress_incidents_get | Get incident details |

| huntress_incidents_resolve | Resolve an incident |

| huntress_incidents_remediations | List remediations for an incident |

| huntress_incidents_remediation_get | Get specific remediation details |

| huntress_incidents_bulk_approve | Bulk approve remediations |

| huntress_incidents_bulk_reject | Bulk reject remediations |

Escalations

| Tool | Description |

|------|-------------|

| huntress_escalations_list | List escalations |

| huntress_escalations_get | Get escalation details |

| huntress_escalations_resolve | Resolve an escalation |

Reports

| Tool | Description |

|------|-------------|

| huntress_billing_reports_list | List billing reports |

| huntress_billing_reports_get | Get a specific billing report |

| huntress_summary_reports_list | List summary reports |

| huntress_summary_reports_get | Get a specific summary report |

Signals

| Tool | Description |

|------|-------------|

| huntress_signals_list | List security signals |

| huntress_signals_get | Get signal details |

Users

| Tool | Description |

|------|-------------|

| huntress_users_list | List users |

| huntress_users_get | Get user details |

| huntress_users_create | Create a user |

| huntress_users_update | Update a user |

| huntress_users_delete | Delete a user |

Pagination

The Huntress API uses token-based pagination:

Example workflow:

  1. Call huntress_agents_list with no page_token
  2. If response includes next_page_token, call again with that token
  3. Repeat until no next_page_token is returned

Rate Limiting

Huntress enforces 60 requests per minute.

Error Handling

Common Error Codes

| Code | Meaning | Resolution |

|------|---------|------------|

| 401 | Unauthorized | Check API key and secret |

| 403 | Forbidden | Insufficient permissions |

| 404 | Not Found | Resource doesn't exist or wrong ID |

| 429 | Rate Limited | Wait and retry after delay |

| 500 | Server Error | Retry; contact support if persistent |

Error Response Format

{
  "error": {
    "code": 401,
    "message": "Invalid API credentials"
  }
}

Best Practices

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.