api-patterns
3CX's native PBX MCP server: the per-PBX endpoint shape (every PBX is its own FQDN and its own OAuth authorization server — there is no shared mcp.3cx.com),…
Read-only M365 license visibility through CIPP: per-tenant SKU purchase vs. consumption, portfolio-wide CSP license commitments, common SKU part numbers and their friendly names, and the license-mix red flags that drive rightsizing and billing reconciliation.
$ npx -y skills add wyre-technology/msp-claude-plugins --skill licenses --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/licensesContext preview
The summary Claude sees to decide when to auto-load this skill.
Read-only M365 license visibility through CIPP: per-tenant SKU purchase vs. consumption, portfolio-wide CSP license commitments, common SKU part numbers and their friendly names, and the license-mix red flags that drive rightsizing and billing reconciliation.
name: "cipp-licenses" description: "Read-only M365 license visibility through CIPP: per-tenant SKU purchase vs. consumption, portfolio-wide CSP license commitments, common SKU part numbers and their friendly names, and the license-mix red flags that drive rightsizing and billing reconciliation." when_to_use: >- When auditing M365 license usage, finding unused/overprovisioned licenses, or reviewing CSP license inventory across the MSP portfolio. Use when: cipp license, license usage, license audit, unused licenses, csp licenses, m365 sku, license report, or rightsize licenses.
License visibility across managed tenants. Two tools cover the read surface: per-tenant assignment + usage, and portfolio CSP inventory. License *changes* (assigning, removing) flow through `cipp_create_user`, `cipp_offboard_user`, or the M365 plugin — this skill is read-only.
`cipp-users` (`cipp_create_user` assigns at create time, `cipp_offboard_user` reclaims) or the `m365` plugin's `Microsoft 365 Licensing`.
*commitments* are visible here, but procurement is the distributor; use `Pax8 Subscriptions` or `Pax8 Orders`.
the standard and its findings are in `cipp-standards`; come here only to confirm the SKU.
cipp_list_licenses(tenantFilter='contoso.onmicrosoft.com')
Returns every SKU in the tenant with `skuPartNumber`, friendly name, `prepaidUnits.enabled` (purchased), `consumedUnits` (assigned), and per-SKU service plan detail. The gap between purchased and consumed is your unused-license inventory.
cipp_list_csp_licenses()
Portfolio-wide view of CSP (Cloud Solution Provider) license commitments — what the MSP owns across all tenants. Use to reconcile what's deployed against what's billed.
| Part number | Friendly | Notes | |-------------|----------|-------| | `O365_BUSINESS_PREMIUM` | M365 Business Premium | SMB sweet spot — Exchange + EMS basics | | `SPB` | M365 Business Premium (legacy code) | Same as above on older tenants | | `SPE_E3` | M365 E3 | Mid-market, includes Intune + EMS | | `SPE_E5` | M365 E5 | E3 + Defender + advanced compliance | | `ENTERPRISEPACK` | Office 365 E3 | Apps + Exchange + SharePoint, no EMS | | `EMS` / `EMSPREMIUM` | EMS E3 / E5 | Identity + device management add-on | | `AAD_PREMIUM` / `AAD_PREMIUM_P2` | Entra ID P1 / P2 | Conditional access requires P1+ | | `EXCHANGESTANDARD` | Exchange Online Plan 1 | Mail-only, no Office apps | | `MCOMEETADV` | Teams Audio Conferencing | Per-user PSTN dial-in |
licenses = cipp_list_licenses(tenantFilter='contoso.onmicrosoft.com')
unused = [
{
'sku': sku['skuPartNumber'],
'purchased': sku['prepaidUnits']['enabled'],
'consumed': sku['consumedUnits'],
'unused': sku['prepaidUnits']['enabled'] - sku['consumedUnits']
}
for sku in licenses
if sku['prepaidUnits']['enabled'] - sku['consumedUnits'] > 0
]Anything with > 3 unused licenses or > 10% unused is worth flagging in the next QBR.
For each tenant in `cipp_list_tenants`, call `cipp_list_licenses` and tally SKUs. Cross-reference against `cipp_list_csp_licenses`. Mismatches signal:
| Pattern | Concern | |---------|---------| | Tenant has E3 + EMS E3 separately | Should be on M365 E3 — bundle is cheaper | | Multiple Business Premium tenants > 300 users | Above 300, E3 typically wins on TCO | | Entra ID P1 absent but conditional access deployed | CA requires P1; tenant is using a feature not licensed | | Defender for Office not assigned but standards expect it | Standards will report failures until licensing is fixed |
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
3CX's native PBX MCP server: the per-PBX endpoint shape (every PBX is its own FQDN and its own OAuth authorization server — there is no shared mcp.3cx.com),…
3CX's live-operations surface: read-only visibility into active calls, recordings, voicemail, department and queue membership, and forwarding/presence…
3CX's read-only directory surface: resolving a caller by email or by exact extension, searching the PBX's own phonebooks, searching contacts synced from an…
3CX's system-and-configuration surface: server time, PBX event log and application log search, service status, database schema and the read-only SELECT-only…
Abnormal Security abuse mailbox cases: user-reported email submissions, case statuses and judgments, the case lifecycle, bulk and remediation actions, and…
Abnormal Security message analysis: message retrieval, email header inspection, attachments, sender reputation, delivery context, and SPF/DKIM/DMARC…