/immybot:api-patternsfrom immybot
Covers ImmyBot API patterns: Entra ID OAuth 2.0 client-credentials auth, immybot_<domain>_<action> tool naming, two-step desired-state deployment model, destructive operations requiring confirmation, task/session polling cadence, and HTTP error codes.
Ships in immybot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
ImmyBot is a desired-state software deployment platform for Windows endpoints. You configure what should be installed at the tenant or computer level, then a maintenance session reconciles the live state to the desired state. The MCP surface mirrors that model — listing and configuring desired state is one set of tools; running and inspecting maintenance sessions is another.
microsoft-graph-connection.immybot-maintenance-sessions.ImmyBot uses Microsoft Entra ID (Azure AD) OAuth 2.0 client credentials. Four fields are required, all stored on the ImmyBot connection in Conduit (nothing is set on the client):
| Conduit field | Description |
|---|---|
| Instance Subdomain | Your ImmyBot instance subdomain (e.g. acme for acme.immy.bot) |
| Tenant ID | Microsoft Entra tenant UUID |
| Client ID | App registration client ID |
| Client Secret | App registration client secret |
The gateway exchanges these for a token automatically. Token cache is managed gateway-side; you should not need to think about token refresh.
| Tool | Purpose |
|---|---|
immybot_navigate | Discover available domains |
immybot_back | Pop back to the prior context |
immybot_status | Health/status check |
Tools follow immybot_<domain>_<action>. Domains:
computers - Enrolled Windows endpointssoftware - Software catalog (per-tenant + global)deployments - Desired-state assignments (the "what should be installed")scripts - PowerShell scripts and execution historytenants - MSP-level tenant scopingmaintenance_sessions - The reconciliation runs (active, paused, etc.)tasks - Lower-level work units inside sessionsThis is the most important concept in ImmyBot. Software does not get installed by a single API call. Instead:
immybot_deployments_create
(or update an existing deployment) to assert: "Software X should
be installed at version Y on this scope."immybot_maintenance_sessions_start) and brings
the endpoints in scope into compliance with the desired state.If you skip step 2, nothing happens on the endpoint. If you skip step 1 and try to "install software directly," there is no API for that — the platform is desired-state by design.
The following tools mutate live customer infrastructure. Always confirm with a human before invoking:
immybot_scripts_run - Executes a PowerShell script on endpointsimmybot_deployments_trigger - Forces deployment evaluationimmybot_software_install - Triggers software install via desired stateimmybot_maintenance_sessions_start - Starts a reconciliation runFor all four, log who approved, the scope (computer / tenant), and the expected outcome before calling.
immybot_maintenance_sessions_start and similar tools return
quickly with a session/task ID. Actual progress is observed by
polling:
immybot_maintenance_sessions_get - Snapshot of one sessionimmybot_maintenance_sessions_logs - Log lines so farimmybot_maintenance_sessions_results - Final outcomeimmybot_tasks_get, immybot_tasks_logs - Lower-level task detailReasonable cadence: 10-15s while a session is running, stop once it
reaches a terminal state.
| Status | Meaning | Action |
|---|---|---|
| 401 | Bad client credentials or expired token | Recheck the four creds; gateway refreshes tokens |
| 403 | App registration lacks the right ImmyBot permissions | Check ImmyBot RBAC for the app |
| 404 | Unknown computer / software / deployment | Re-list to confirm |
| 409 | Conflicting maintenance session already running | Wait or cancel the existing one |
| 429 | Rate limit | Back off and retry |
immybot_tenants_get) and
pivot down — never modify deployments without confirming the
tenant.immybot_maintenance_sessions_results after a session
to see which endpoints succeeded vs failed.What SKILL.md sets; muted values are Claude Code's defaults
When working with ImmyBot authentication (Entra ID OAuth client credentials), the desired-state model, destructive write operations, or task / maintenance-session polling. Use when: immybot api, immybot authentication, immybot oauth, immybot entra, immybot mcp, immybot desired state, or immybot maintenance session.
Three short reads, in order
6 skills in this plugin
/endpoint-managementImmyBot Endpoint ManagementImmyBot computers/endpoints and their tenant grouping: the computer tool surface, workflows for surveying a tenant fleet, locating a device, auditing inventory against desired state, onboarding a new computer record, and forcing an agent check-in, plus the filtering caveats around online status and serials.
/maintenance-sessionsImmyBot Maintenance SessionsImmyBot maintenance sessions — the reconciliation engine that brings endpoints into their desired state: the session tool surface, start parameters (computer vs tenant scope, type, priority, reboot flag), pause/resume/cancel semantics, polling to a terminal state, failure investigation, and reboot-spanning and queued-vs-running edge cases.
/script-executionImmyBot Script ExecutionImmyBot's PowerShell script library and its SYSTEM-context execution model: the script tool surface, the find → validate → confirm target → approve → execute → review workflow, parameter/timeout/execution-context options, and the safety rules governing this destructive, highly privileged operation.
/software-deploymentImmyBot Software DeploymentImmyBot's desired-state software deployment model end-to-end: the software catalog, deployment, maintenance-session and computer tool surfaces; the canonical select → scope → assert → reconcile → verify workflow; and the pinned-vs-latest, conflicting-deployment, and reboot edge cases.
/tenant-complianceImmyBot Tenant & Compliance ReportingImmyBot tenants (client organizations) and fleet-wide reporting: the tenant and background-task tool surfaces, the per-tenant compliance scorecard and fleet task-queue audit procedures, and how to assemble a client QBR report from stats, compliance, software inventory, and failed-task history.
npx claudepluginhub wyre-ai/msp-claude-plugins --plugin immybotOther plugins' skills for the same job