Skip to main content

182 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.

AddComputedColumn

Adds a computed column to an Activated raw or time-range archive and backfills it. The column becomes visible atomically when the backfill completes. (AB#4189)

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 (AB#4269 / AB#4286). 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.

CheckUpgrade

Pre-flight check for CK model upgrade/migration.

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.

Delete

Deletes an existing tenant.

DeleteArchive

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

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 pool.

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.

Dump

Dumps a tenant to a file

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. Use -w to wait, -y to skip confirmation.

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.

GetAiCredentialsStatus

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

GetClientMirrors

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

GetPools

Gets all pools for the current tenant.

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.

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.

ImportFromCatalog

Imports a CK model from a catalog with all dependencies. Use -w to wait for completion.

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.

LibraryStatus

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

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.

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.

LogIn

LogIn to the configured identity services.

LogInClientCredentials

Non-interactive login using OAuth2 clientcredentials. Reads credentials from -id/-s arguments or OCTOCLICLIENTID/OCTOCLICLIENT_SECRET env vars. Tenant comes from the active 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 ~177 typed tools that AI assistants (Claude Code, Claude Desktop, and any other MCP-capable client) call over HTTP+SSE.

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).

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. Token-related args (-at -rt -aex -rex) 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.

RefreshCatalogs

Refreshes CK model catalog caches. Use -cn to refresh a specific catalog.

RemoveComputedColumn

Removes a computed column from an archive. Rejected when another computed column still references it. (AB#4189)

ReRunTenantSetup

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

Restore

Restore a tenant from a dump file

RevokeAiCredentials

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

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.

SetClientAutoProvision

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

Setup

Sets identity services up

Tool Reference

The MCP (Model Context Protocol) Services exposes ~177 tools as of version 1.5.3, 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.

UndeployWorkload

Undeploys one workload (Adapter or Application) through its parent pool. 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.

UpdateComputedColumnFormula

Changes the formula of an existing computed column on an active archive. Readers keep the previous values while the new formula is backfilled, then switch atomically. Rejected if another computed column references this one. (AB#4189)

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.