find-contact
Resolve a 3CX contact or extension by email, extension, or name
Search for HaloPSA clients by name, domain, or other attributes
$ npx -y skills add wyre-technology/msp-claude-plugins --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/search-clientsContext preview
What this command does when you run it.
Search for HaloPSA clients by name, domain, or other attributes
description: Search for HaloPSA clients by name, domain, or other attributes argument-hint: "<query> [client_type] [active] [include_sites] [limit]" arguments: [query, client_type, active, include_sites, limit]
Search for HaloPSA clients by name, domain, or other attributes for quick lookups.
1. **Authenticate with OAuth 2.0**
# Get OAuth token
TOKEN=$(curl -s -X POST "{base_url}/auth/token?tenant={tenant}" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "client_id={client_id}" \
-d "client_secret={client_secret}" \
-d "scope=all" | jq -r '.access_token')2. **Build search query**
3. **Execute client search**
curl -s -X GET "{base_url}/api/Client?search={query}&page_size={limit}" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json"4. **Fetch sites (if requested)**
# For each client, fetch sites
curl -s -X GET "{base_url}/api/Site?client_id={client_id}" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json"5. **Format and display results**
| Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | query | string | Yes | - | Search term (name, domain, partial) | | client_type | string | No | - | Customer/Prospect/Vendor | | active | boolean | No | true | Active clients only | | include_sites | boolean | No | false | Include site details | | limit | integer | No | 10 | Maximum results (max 100) |
/search-clients "Acme"
/search-clients "acme.com"
/search-clients "Acme" --client_type Customer
/search-clients "Acme Corp" --include_sites true
/search-clients "Old Company" --active false
/search-clients "Tech" --limit 25
/search-clients "Microsoft" --client_type Vendor
Found 3 clients matching "Acme" ┌─────────┬────────────────────────┬──────────────┬────────────┬───────────┐ │ ID │ Name │ Type │ Status │ Domain │ ├─────────┼────────────────────────┼──────────────┼────────────┼───────────┤ │ 123 │ Acme Corporation │ Customer │ Active │ acme.com │ │ 124 │ Acme Industries │ Customer │ Active │ acmei.com │ │ 125 │ Acme Labs LLC │ Prospect │ Active │ acmelabs.io│ └─────────┴────────────────────────┴──────────────┴────────────┴───────────┘ Quick Actions: - View client: /search-clients --id <id> - Client tickets: /search-tickets --client <id> - Create ticket: /create-ticket <id> "Summary"
Found 2 clients matching "Acme Corp" ================================================================================ Acme Corporation (ID: 123) ================================================================================ Type: Customer Status: Active Domain: acme.com Phone: +1 555-123-4567 Address: 123 Main Street, New York, NY 10001 Contract: Managed Services Agreement (Active) SLA: Premium Account Mgr: John Manager Sites (3): ┌─────────┬──────────────────────┬────────────────────────────────┬───────────┐ │ ID │ Name │ Address │ Primary │ ├─────────┼──────────────────────┼────────────────────────────────┼───────────┤ │ 456 │ Main Office │ 123 Main St, New York, NY │ Yes │ │ 457 │ West Coast Office │ 456 Oak Ave, Los Angeles, CA │ No │ │ 458 │ Remote Workers │ Various Locations │ No │ └─────────┴──────────────────────┴────────────────────────────────┴───────────┘ Users: 47 active contacts Assets: 156 managed devices -------------------------------------------------------------------------------- ================================================================================ Acme Industries (ID: 124) ================================================================================ Type: Customer Status: Active Domain: acmei.com Phone: +1 555-987-6543 Address: 789 Industrial Way, Chicago, IL 60601 Contract: Pay-As-You-Go SLA: Standard Account Mgr: Jane Manager Sites (1): ┌─────────┬──────────────────────┬────────────────────────────────┬───────────┐ │ ID │ Name │ Address │ Primary │ ├─────────┼──────────────────────┼────────────────────────────────┼───────────┤ │ 459 │ Headquarters │ 789 Industrial Way, Chicago │ Yes │ └─────────┴──────────────────────┴────────────────────────────────┴───────────┘ Users: 23 active contacts Assets: 45 managed devices ================================================================================
================================================================================ Client Details: Acme Corporation ================================================================================ BASIC INFORMATION -------------------------------------------------------------------------------- ID: 123 Name: Acme Corporation Type: Customer Status: Active Created: 2022-01-15 CONTACT INFORMATION ---------------------------------------
One command to supercharge Claude Code for MSP workflows. Then restart Claude Code. That's it. Documentation: mcp.wyre.ai
Repo: wyre-technology/msp-claude-plugins
Resolve a 3CX contact or extension by email, extension, or name
Search for specific threat patterns in Abnormal Security by sender, recipient, attack type, or keywords
Triage recent email threats detected by Abnormal Security by severity and attack type