cicd_fluent_app
Executes ServiceNow app-repo CI/CD operations (install, publish, rollback) via the sn_cicd API, identifying applications by scope or sys_id and requiring a version for rollback.
Instructions
Run a ServiceNow app-repo CI/CD operation via the sn_cicd API (SDK v4.10.0+): install, publish, or rollback an application on an instance. CHANGES INSTANCE STATE. Identify the app with either scope or appSysId; inside a Fluent project both appSysId and appVersion default from now.config.json/package.json, and outside one both must be passed explicitly. appVersion is always required for rollback. Requires instance authentication (auto-injected from session, or pass auth explicitly).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auth | No | Credential alias to use for authentication with instance (auto-injected from session if not provided) | |
| wait | No | Wait for the operation to complete, polling progress (CLI default true). Set false to return immediately after dispatch with the progress id. | |
| debug | No | Print debug output | |
| scope | No | Scope name of the application (e.g. x_myco_app). Mutually exclusive with appSysId; prefer appSysId when known. | |
| action | Yes | App-repo operation to run: "install", "publish", or "rollback". | |
| output | No | Output format: "json" or "raw". Defaults to "json" (machine-readable envelope). | |
| select | No | Dot/bracket path to extract from the output (e.g. "result.links.progress.id" or "result.records[0].sys_id"). Implies machine-readable output. | |
| appSysId | No | sys_id of the application (sys_app). Mutually exclusive with scope. Defaults to the scopeId in now.config.json when run inside a Fluent project. | |
| devNotes | No | Developer notes to record for this published version. Only valid with action="publish". | |
| appVersion | No | Application version. For install/publish, defaults to the version in package.json inside a Fluent project — REQUIRED when no Fluent project directory is available. REQUIRED for rollback — the version expected after the rollback completes. | |
| pollTimeout | No | Milliseconds to poll for completion before giving up. CLI default 900000 (15 minutes). Values above ~15 minutes also require raising FLUENT_MCP_COMMAND_TIMEOUT_MS. | |
| baseAppVersion | No | Version of the base application to install alongside this application. Only valid with action="install". | |
| workingDirectory | No | Absolute path to the Fluent project for this call. Overrides the initialized session and FLUENT_MCP_WORKING_DIR. | |
| autoUpgradeBaseApp | No | Automatically upgrade the base application if required. Only valid with action="install". |