Skip to main content

238 docs tagged with "Tools"

Tools and utilities for OctoMesh

View all tags

ActivateArchive

Activates a CkArchive: provisions the per-archive CrateDB table and transitions the archive to Activated. Use this once after rt-importing the archive entity.

AddArchiveColumn

Adds a column for an existing attribute of the target CK type to an Activated raw or time-range archive without recreating it. The table gains a nullable column (existing rows keep their data and read null), then the archive definition; the next ingested rows fill it. Idempotent. A computed column is added with AddComputedColumn.

AddComputedColumn

Adds a computed column to an Activated raw or time-range archive. The asset repository backfills the existing rows as a background job and returns at once; the column becomes visible atomically when the job completes (follow it with ListRecomputeJobs, or pass -w). A failed backfill is retried with RetryComputedColumnBackfill.

AdoptKnowledgePlatformUpdates

Adopts newer Blueprint versions of knowledge pages now: every page never edited in the tenant switches to its newest Blueprint version; edited pages are never changed. The AI service does this by itself every 15 minutes.

ApplyClientOverlay

Applies an overlay URI set (RedirectUris / PostLogoutRedirectUris / AllowedCorsOrigins) to a blueprint-managed client. New entries are written with Source = 'overlay:<OverlayName>', kept across blueprint re-apply by the Step 2a preservation pass. Idempotent — duplicates are silently skipped (any source). At least one of the three URI lists must be provided.

Attach

Attach an existing database to a tenant.

AuthStatus

Gets authentication status to the configured identity services.

BackfillRollup

Queues a durable background backfill that populates / resets a rollup over the ENTIRE history of its source archive without supplying a timestamp. Resolves the source archive's earliest timestamp and enqueues a recompute of [sourceMin, now); the heavy work runs in the background so it is never cancelled by a client timeout. Returns the Pending job id immediately. Use -w/--wait to poll until the job completes. A no-op when the source archive holds no data.

Building an OctoMesh app with your own AI agent

A short guide for developers who build an OctoMesh app with their own AI agent - connect it to the tenant's MCP server, let it read the knowledge pages first, then work with MCP tools while you decide and check.

Building solutions with AI via the MCP server

Connect an AI assistant to OctoMesh through the MCP server, explore data in natural language, build queries and let the assistant generate a small evaluation or app - within the limits of your token.

Building your own application with your AI agent

Your AI agent creates an Angular application from the OctoMesh template repository over the MCP server - it registers the login client, scaffolds a page, generates the GraphQL client - and you see the entities of your tenant in it.

CancelQueuedExecution

Cancels one execution that is still waiting in an adapter pool's queue. It never runs.

CheckUpgrade

Pre-flight check for CK model upgrade/migration. 'Breaking Changes' is the migration view of the model itself; 'Would break' (isBlocked/blockers) is the tenant upgrade guard: which installed models the import would break, also for System.

Clean

Resets a tenant to factory defaults by deleting the construction kit and runtime model.

CleanClientOverlays

Strips overlay URI entries from every blueprint-managed client in the tenant. Without -overlayName*'. With -overlayName<name>' exactly. Destructive — typical use is before a sanitised DumpTenant export; the operator can re-apply with Apply-IdentityOverlay afterwards (idempotent, no-op if state matches).

Common Workflows

Multi-command playbooks for typical octo-cli usage scenarios. Each step has its own copyable code block — paste them one at a time. Full per-command documentation is in the Command Reference sidebar section.

Config

Configures the active context.

Create

Creates a new tenant and provisions the current user as admin.

CreateAgent

Creates an agent of the tenant with its mandate and its service-account client (tenant administrators only). Calls the MCP tool create_agent with your token; the client secret is never shown.

CreateExternalTenantUserMapping

Creates an external tenant user mapping: grants a user of another tenant (registry ancestor or a sibling tenant that permits this one) access to the tenant of the context, with roles and/or groups.

Data model with an AI assistant

How to let an AI assistant draft a Construction Kit model through the MCP server by reusing the public Construction Kits, how to compile it, and how to review it with a checklist before it is imported.

Delete

Deletes an existing tenant.

DeleteArchive

Drops the per-archive CrateDB table and soft-deletes the CkArchive entity. Destructive — historical data is lost.

DeleteSecretSweepDump

Deletes the pre-sweep dump of a secret sweep run before it expires (requires SecretManagement). Use -y to skip confirmation.

DeployDeploymentSite

Triggers a deploy of a deployment site. The Communication Operator creates the deployment site resources; workloads are deployed separately via DeployWorkload.

Deployments

This page lists the hosted MCP (Model Context Protocol) Services endpoints and how to register each with your AI client. For the registration mechanics see Getting started.

DeployPipeline

Deploys a pipeline definition to the corresponding adapter.

DeployWorkload

Triggers a deploy of one workload (Adapter or Application) through its parent deployment site.

Detach

Detaches a child tenant. The database is kept and can be re-attached with Attach.

DisableAgent

Disables an agent of the tenant (kill switch): it starts no run and its service-account client is disabled (tenant administrators only). Calls the MCP tool setagentenabled with your token.

DisableAi

Disables the AI Adapter for the current tenant. The seeded AgentConfig and CK model are not removed; re-enabling is idempotent.

DisableArchive

Disables a CkArchive: transitions to Disabled (data preserved). Allowed only from Activated.

DownloadFile

Downloads a file of the platform file system of the tenant to a local file.

Dump

Dumps a tenant to a file

EnableAgent

Enables an agent of the tenant: it may start runs again and its service-account client is enabled (tenant administrators only). Calls the MCP tool setagentenabled with your token.

EnableAi

Enables the AI Adapter for the current tenant. The Communication Controller must be enabled first (run EnableCommunication beforehand).

EnableArchive

Re-enables a previously disabled archive: transitions Disabled → Activated. Re-validates column paths against the current CK model; no DDL.

ExportArchiveData

Exports the row data of an archive to a downloadable ZIP. Omit both --fromUtc and --toUtc to export the whole archive; supply them to export the half-open slice [fromUtc, toUtc).

ExportRtByDeepGraph

Schedules a job to export runtime model graph by providing RtId's and type as starting point. File is specified using -f argument. The file is downloaded in ZIP-format after job is finished.

ExportRtByQuery

Schedules a job to export runtime models using a query. File is specified using -f argument. The file is downloaded in ZIP-format after job is finished.

FixAll

Imports all CK models that need update or fix. Updates that are blocked only by each other (exact pins) are imported together in one guarded set. Updates that would break an installed model even then are skipped and reported (FixAll never forces them; use ImportFromCatalog --force deliberately). Use -w to wait, -y to skip confirmation. Requires the tenant role DataModelManagement (TenantOwners carry it); otherwise 403 DataModelManagementRequired.

FreezeRollupArchive

Freezes a CkRollupArchive at the given timestamp. Monotonic — rejected when the new value is earlier than the current FrozenUntil. The orchestrator stops producing buckets whose bucketEnd falls within the frozen range; already-aggregated rows are preserved.

GetAdapter

Gets the configuration for a specific adapter.

GetAdapterNodes

Gets aggregated node descriptors from all connected adapters.

GetAgents

Lists the agents of the tenant with their mandates, or shows one agent with -a. Calls the MCP tools listagents / getagent with your token; changes nothing.

GetAiCredentialsStatus

Returns the AI credential-lease status (expiries + generation) for the active tenant. Token plaintext is never disclosed.

GetAiSpend

Shows the monthly LLM spend cap, the key source and the spend (spent, reserved, calls, reset time) of the current and previous UTC month of the central-key LLM gateway.

GetClientMirrors

Lists the sub-tenants a ClientCredentials client has been auto-provisioned into.

GetClientRoles

Lists the roles assigned directly to a client in the tenant (without roles inherited from groups).

GetFiles

Lists the platform file system of the tenant: the folder roots, or the folders and files of a root or folder.

GetLatestPipelineExecution

Returns the latest pipeline execution. For a failed execution, FailureKind tells whether a write was not acknowledged (OutcomeUnknown) or the pipeline failed (Failed).

GetOperation

Shows an operation of an asynchronous CK method (e.g. a dump): state, progress and the result or error. Read only.

GetPipelineExecutions

Returns pipeline execution history. For a failed execution, FailureKind tells whether a write was not acknowledged (OutcomeUnknown) or the pipeline failed (Failed).

GetRollupRepairStatus

Shows the state (Pending, Running, Done, Failed) of a rollup repair request started by RepairRollups --apply, with the final report once it has ended. Read only.

GetTenantFeatures

Gets the enabled-state of the current tenant's capabilities (Stream Data, Communication, Reporting, AI Services).

GetTenants

Gets all direct child tenants, or with --all every tenant of the installation.

Getting Started

This page walks you through registering the MCP (Model Context Protocol) Services with an AI client and making your first authenticated tool call. The hosted endpoints are listed on the Deployments page.

GetWorkloadsByChart

Lists every Adapter / Application in the active tenant whose ChartName matches.

GraphQl

Runs a GraphQL query or mutation against a tenant and prints the response JSON to standard output. Authenticates with a token for that tenant.

ImportArchiveData

Imports archive row data from an export ZIP into a target archive. The target archive must be Disabled during the import (see DisableArchive). The bot validates that the export schema matches the target archive before any rows are written.

ImportCk

Schedules an import job for construction kit files. File is specified using -f argument. To wait for job, use -w argument. Accepted: a compiled CK model (json, yaml or a zip of one) or a zip of the source ConstructionKit/ folder (a zip that holds ckModel.yaml); the service compiles a source zip like ValidateCk and refuses compile errors with CKMODELCOMPILEFAILED (file and element of each error) before anything is imported. The tenant upgrade guard refuses a file that would break an installed model (also for System) with CKUPGRADE_BLOCKED; --forceBreakingUpdate overrides it. Requires the tenant role DataModelManagement (TenantOwners carry it); otherwise 403 DataModelManagementRequired.

ImportFromCatalog

Imports one or more CK models from a catalog with all dependencies. A comma-separated -m list is imported as one set (judged together by the tenant upgrade guard, sent in dependency order). Use -w to wait for completion. Requires the tenant role DataModelManagement (TenantOwners carry it); otherwise 403 DataModelManagementRequired.

ImportRt

Schedules an import job for runtime files. File is specified using -f argument. To wait for job, use -w argument.

InstallBlueprint

Installs a blueprint into the current tenant. CK models are loaded and seed data is imported via upsert. Requires the tenant role DataModelManagement (TenantOwners carry it); otherwise 403 DataModelManagementRequired.

LibraryStatus

Shows installed CK model libraries with catalog availability. Use --needs-action to filter.

ListBlueprints

Lists blueprints available across configured catalogs. Fetches all pages unless -s/-t is given.

ListCatalogModels

Lists CK models from catalogs. Use -cn to filter by catalog, -q to search.

ListContexts

Lists all configured contexts. Pass -n to show details for a single context.

ListKnowledgePlatformUpdates

Lists the knowledge pages with a newer Blueprint version: Adoptable (never edited in the tenant) or Available (edited, keeps its content). Calls the MCP service with your token; changes nothing.

ListOperations

Lists operations of asynchronous CK methods (e.g. dumps), newest first: the caller's own, or every caller's with --allOwners. Read only.

ListRecomputeJobs

Lists the most recent recompute jobs for a rollup archive (newest first, capped at 50) — for debugging why a recompute failed.

ListRollupsForArchive

Lists every rollup archive attached to the given source CkArchive — runtime id, status, schedule, watermark, freeze state, reference time zone and day start.

LogIn

LogIn to the configured identity services.

LogInClientCredentials

Non-interactive login using OAuth2 clientcredentials. Reads the client ID from -id or OCTOCLICLIENTID and the secret from OCTOCLICLIENTSECRET, standard input (--secret-stdin) or a hidden prompt. Tenant comes from the effective context (--context, OCTOCLI_CONTEXT or the active one).

LookupSourceTenantUser

Finds one user of a source tenant by exact user name or e-mail, to grant that user access to the tenant of the context.

MCP (Model Context Protocol) Services

The OctoMesh MCP (Model Context Protocol) Services is the Model Context Protocol server for OctoMesh. It exposes the platform's full administrative surface — tenants, identity, blueprints, communication adapters, time-series archives, generic Construction Kit entity CRUD, and aggregation queries — as about 208 typed tools that AI assistants (Claude Code, Claude Desktop, and any other MCP-capable client) call over the MCP streamable HTTP transport.

MovePipelines

Reassigns one or more pipelines from their current adapter to a new target adapter. Each pipeline is moved atomically; per-pipeline failures do not abort the batch. Source and target adapter must share the same CkTypeId.

octo-cli

octo-cli is the command-line interface for managing and administering OctoMesh. It provides commands for configuring services, managing tenants, users, identity providers, and more.

ProvisionClientInExistingTenants

Backfill: provisions a flagged ClientCredentials client into every existing sub-tenant of the active context tenant. Idempotent.

RecomputeArchive

Triggers (or coalesces) an optimistic recompute of a rollup archive over [from, to). Returns the resulting job snapshot (state, counts, error reason).

RecomputeDisplayNames

Recomputes rtDisplayName/rtDisplayDescription of a tenant's entities from the CK display rules (idempotent, runs asynchronously).

ReconcileTenantRegistry

Finds tenants that a parent lists but the system registry lacks (GetTenants -r vs -a) and, with --apply, inserts the missing registry rows. Dry run by default.

RedeemAiTicket

Redeems a one-time AI credential ticket and persists the Anthropic subscription tokens on the AI Adapter. Runs anonymously — the ticket code authenticates the call, no OctoMesh login required. The tokens come from the environment variables OCTOCLIAIACCESSTOKEN / OCTOCLIAIREFRESHTOKEN (the -at / -rt arguments are deprecated). Token-related values are optional for developer smoke tests; missing values default to a fake pair with a far-future expiry.

RefreshBlueprintCatalogs

Refreshes blueprint catalog caches at the asset repository. Use -cn to refresh a specific catalog. Requires the tenant role DataModelManagement (TenantOwners carry it); otherwise 403 DataModelManagementRequired.

RefreshCatalogs

Refreshes CK model catalog caches. Use -cn to refresh a specific catalog. Requires the tenant role DataModelManagement (TenantOwners carry it); otherwise 403 DataModelManagementRequired.

RemoveComputedColumn

Removes a computed column from an archive. Rejected when another computed column still references it.

RepairRollups

Repairs the rollup inconsistencies that ValidateRollups finds after a restore (rows above the pointer, a pointer without rows, a watermark ahead of the rows, a missing generation map). Idempotent lists the planned steps per rollup and changes nothing; --apply runs them.

ReprotectSecrets

Starts a secret sweep job: re-encrypts all Secret attributes with the active key (Reprotect, default), encrypts remaining legacy values (Encrypt), removes values whose key id is not in the key ring (CleanupUnreadable, requires -y) or only counts them (Verify). Use -w to wait, -y to skip confirmation.

ReRunTenantSetup

Re-opens a tenant's provisioning so the background reconciler completes it.

Restore

Restore a tenant from a dump file

RestoreSecretSweepDump

Restores the pre-sweep dump of a secret sweep run into the same tenant, replacing its data (requires SecretManagement). Use -y to skip confirmation, -w to wait.

RetryComputedColumnBackfill

Queues the backfill of a computed column again — for a column whose backfill Failed, or that is stuck in Pending / Backfilling without a running job — without removing and re-adding it. The backfill runs as a background job on the asset repository; follow it with ListRecomputeJobs or pass -w. Rejected for an Active column.

ReviewTenantOwnership

Lists this instance's tenant databases without an ownership marker, with the marker of another OctoMesh instance, or registered by another instance on the same MongoDB server and, with --stamp, stamps the unambiguous ones. Lists only by default.

RevokeAiCredentials

Revokes the active tenant's AI credential lease. New sessions cannot start until a fresh subscription is registered. Ciphertext is preserved for audit.

RevokeShadowUserSessions

Revokes all sessions and tokens of the cross-tenant shadow users (xt_*) of the tenant (refresh tokens, authorizations, browser sessions; rotates the security stamps). Issued access tokens stay valid until they expire. Dry run (counts only) unless --apply is given.

RevokeUserSessions

Revokes all sessions and tokens of a user (refresh tokens, authorizations, browser sessions; rotates the security stamp). Issued access tokens stay valid until they expire.

RewindRollupWatermark

Resets the rollup's watermark (truncated down to the bucket boundary) so subsequent orchestrator ticks re-aggregate the rewound range. Destructive: rows in that range are temporarily out of sync until the orchestrator catches up.

RotateAdapterServiceAccountSecret

Rotates the client secret of an adapter's pipeline service account. The previous secret stops working immediately, and the adapter's pipelines / data flows must be redeployed afterwards before the new secret takes effect.

SecretStatus

Shows the encryption status of Secret attributes: environment status (key ring, active and known key ids, strict mode, recurring Verify), recent sweep runs with their dump state and the last sweep report (counts per form and key id, unreadable secrets to re-enter). Never shows secret values.

SetAiSpendCap

Sets the monthly LLM spend cap in EUR of a tenant for the central-key LLM gateway. Platform role AiBudgetAdmin in the system tenant only; every change is audited (old, new, who, why).

SetClientAutoProvision

Flips the AutoProvisionInChildTenants flag on an existing ClientCredentials client. Flipping to true does not auto-backfill — use ProvisionClientInExistingTenants for that.

SetCommunicationLifecycle

Sets the tenant's communication lifecycle configuration: scale-to-zero and adapter pool leasing. Runtime configuration - effective without a controller redeploy; '-sze false' and '-le false' are the per-tenant emergency stops. Only the flags you pass are changed.

SetCrossTenantGrantPermissions

Replaces the list of tenants that may look up users of the tenant of the context by exact name or e-mail and grant them access.

SetKnowledgePageStatus

Sets the verification status of a knowledge page (Draft, InReview, Verified, Rejected) as the logged-in person and records it as a new page version. The only way to set Verified: AI clients over MCP never can.

Setup

Creates the first administrator of the system tenant or of another tenant that has no user yet

Tool Reference

The MCP (Model Context Protocol) Services exposes about 210 tools (MCP Services 3.4, October 2026), grouped into the families below. Most platform-admin tools mirror the matching octo-cli command (snakecase names — e.g. CLI CreateTenant → MCP createtenant); the aggregation and persisted-query tools mirror the asset-repository's GraphQL transient-query surface.

Troubleshooting

Common failure modes and how to fix them. The MCP (Model Context Protocol) Services never throws out of a tool — every problem comes back as IsSuccess: false plus an ErrorMessage. Read the message first; the table below maps the typical messages to root causes.

UndeployDeploymentSite

Undeploys a deployment site through the Communication Operator. Undeploy the deployment site's workloads first (UndeployWorkload); Cloud deployment sites release their operator resources.

UndeployWorkload

Undeploys one workload (Adapter or Application) through its parent deployment site. Destructive — the operator helm-uninstalls the chart.

UnfreezeRollupArchive

Clears FrozenUntil on a CkRollupArchive. Idempotent. Pass --acceptGaps when source data inside the previously frozen range has been truncated and the resulting gaps are acceptable.

UninstallBlueprint

Removes a blueprint from the active tenant; with --cascade, dependents and orphan dependencies go too. Erases the locked entities and the tenant-owned seed entities the tenant never edited; edited or referenced ones stay and are listed with the reason (tenantOwnedKept). --dry-run shows what would be erased and kept, changing nothing. Requires the tenant role DataModelManagement (TenantOwners carry it); otherwise 403 DataModelManagementRequired.

UpdateAgent

Updates an agent of the tenant (tenant administrators only); omitted options keep their value. Calls the MCP tool update_agent with your token.

UpdateBlueprint

Applies a blueprint update to the active tenant. Tenant values the update would blank are kept unless confirmed. Requires the tenant role DataModelManagement (TenantOwners carry it); otherwise 403 DataModelManagementRequired.

UpdateComputedColumnFormula

Changes the formula of an existing computed column on an active archive. Readers keep the previous values while the asset repository backfills the new formula as a background job, then switch atomically; a failed job reverts to the previous formula. Returns once the job is queued (follow it with ListRecomputeJobs, or pass -w). Rejected if another computed column references this one, or while a backfill of the column is still running.

UpdateSystemCkModel

Updates the system construction kit model of a tenant to the latest version.

UpdateWorkloadChartVersion

Sets ChartVersion on a single workload. Does NOT trigger a deploy — call DeployWorkload afterwards if needed.

UpdateWorkloadResources

Shows and sets the CPU and memory requests and limits of an adapter or application. Does NOT trigger a deploy — call DeployWorkload afterwards.

UploadFile

Uploads a local file into the platform file system of the tenant.

ValidateRollups

Checks the rollup archives of the tenant for the inconsistencies a restore (or a dump taken during a recompute) can leave the server runs counts and MAX/MIN statements, nothing is changed.