lattice-mcp
MCP server for Lattice container orchestration platform
Versions
1.4.0latest1.3.01.2.01.1.21.1.1+ show 3 moreshow less
1.1.01.0.11.0.0Tools 146
lattice_overview Get fleet overview: worker counts, stack counts, container counts, failed stacks, recent deployments, fleet CPU/memory averages
lattice_health Check API health and database connectivity
lattice_get_version Get the deployed lattice-api version string. Use to check deploy drift against GitHub tags/commits (e.g. for /howfarbehind).
lattice_list_workers List all workers with status, IP, Docker version, runner version, last heartbeat
lattice_get_worker Get detailed worker info including metrics
lattice_get_worker_metrics Get recent worker metrics (CPU, memory, disk, network)
lattice_list_stacks List all stacks with status, worker assignment, and deployment strategy
lattice_get_stack Get full stack details including compose YAML and env vars
lattice_list_containers List containers with status, image, ports, health. Filter by stack or status
lattice_get_container Get full container details including config, health, env vars, ports
lattice_get_container_logs Get recent container logs (stdout/stderr)
lattice_get_container_lifecycle Get container lifecycle events (start, stop, restart, health changes)
lattice_list_deployments List deployments with status, strategy, timing. Filter by stack or status
lattice_get_deployment Get deployment details including container-level status
lattice_get_deployment_logs Get deployment logs: pull, create, start, swap, rollback events with timing
lattice_get_audit_log Get recent audit log entries (who did what, when). Filter by user, action, or resource type to answer
lattice_deploy_stack Deploy a stack (all containers or specific ones)
lattice_restart_stack Restart all containers in a stack
lattice_stop_stack Stop all containers in a stack
lattice_start_stack Start all containers in a stack
lattice_update_stack Update stack configuration (name, description, strategy, worker, etc.)
lattice_start_container Start a stopped container
lattice_stop_container Stop a running container
lattice_restart_container Restart a container
lattice_kill_container Force kill a container
lattice_pause_container Pause a running container
lattice_unpause_container Unpause a paused container
lattice_remove_container Remove a container entirely
lattice_recreate_container Recreate a container (remove and create fresh)
lattice_reboot_worker Reboot a worker machine
lattice_upgrade_worker Upgrade worker runner to latest version
lattice_stop_all_worker Stop all containers on a worker
lattice_start_all_worker Start all containers on a worker
lattice_update_api Update the Lattice API container. Pass `version` to deploy or roll back to a specific tag; omit it to take whatever the compose file resolves to. Returns
lattice_update_web Update the Lattice web container. Pass `version` to deploy or roll back to a specific tag; omit it to take whatever the compose file resolves to
lattice_rollback_deployment Rollback a deployment to its previous state
lattice_list_api_tokens List all API tokens
lattice_create_api_token Create a new API token for AI tools or automation
lattice_delete_api_token Delete an API token
lattice_list_database_instances List managed database instances with engine, version, status, worker and health. Filter by worker, engine or status
lattice_get_database_instance Get one database instance: engine, port, limits, snapshot schedule, retention and backup destination
lattice_create_database_instance Provision a database instance on a worker. Creates a real container. Omit `port` to have a free one allocated automatically — that is the recommended path; a port already in use returns 409 naming the conflict
lattice_update_database_instance Update a database instance
lattice_delete_database_instance Permanently destroy a database: its container AND its data volume are removed on the worker, then the record is retired once the worker confirms. Irreversible — every table is gone; only existing snapshots survive, so check lattice_list_database_snapshots first. Asynchronous: the instance sits in
lattice_database_action Start, stop, restart or remove a database instance
lattice_get_database_connection Get a database instance
lattice_reveal_database_credentials Reveal a database instance
lattice_get_database_credentials DEPRECATED — returns root credentials from a plain GET. Use lattice_reveal_database_credentials instead, which is audited and scoped
lattice_get_database_events Get a database instance
lattice_get_database_backup_posture A database
lattice_get_database_runs Recent scheduled-snapshot attempts for a database, newest first — INCLUDING slots that were skipped and why. Scheduling lives in the control plane, so every slot leaves a row whether or not it produced a snapshot. Reach for this to answer
lattice_get_database_metrics Get CPU and memory samples for a managed database instance. These samples were always collected but had no read path: managed databases have no row in the containers table, and every other metrics reader takes a container id. Use this rather than lattice_get_container_metrics for a database
lattice_get_database_logs Get a database container
lattice_get_database_lifecycle_logs Get worker-emitted lifecycle messages for a database container, including provisioning progress and the reason a create failed
lattice_open_database_console Authorise an interactive console session against a running database and return the worker, container and SQL client command to run. The session itself runs over the admin WebSocket, so this returns the authorisation, not a live shell
lattice_get_worker_port_availability List host ports already claimed on a worker (by databases and by stack containers) and get a free suggestion. Check this before pinning a database to a specific port
lattice_list_database_snapshots List snapshots for a database instance, with size and creation time. Check this before deleting or restoring an instance
lattice_create_database_snapshot Take a snapshot of a database instance now, outside its schedule
lattice_restore_database_snapshot Restore a database instance from one of its snapshots. Overwrites current data irreversibly — take a fresh snapshot first if the present state matters
lattice_delete_database_snapshot Delete a database snapshot. Destructive — that restore point is gone
lattice_list_backup_destinations List configured backup destinations that database snapshots can be shipped to
lattice_get_backup_destination Get one backup destination
lattice_create_backup_destination Create a backup destination. config is a free-form object whose shape depends on type (e.g. an S3 destination takes bucket, region, endpoint and credentials)
lattice_update_backup_destination Update a backup destination. Passing config replaces the whole object, it does not merge
lattice_delete_backup_destination Delete a backup destination. Instances pointing at it lose their backup target. Destructive
lattice_test_backup_destination Test connectivity and credentials for a backup destination without writing a real backup. The test is dispatched over the worker
lattice_list_registries List configured container registries
lattice_create_registry Add a container registry
lattice_update_registry Update a registry
lattice_delete_registry Delete a registry. Containers pulling from it fail on their next deploy. Destructive
lattice_test_registry Test a saved registry
lattice_test_registry_inline Test registry credentials before saving them
lattice_list_registry_repositories List repositories available in a registry — what images exist to deploy
lattice_list_registry_tags List the tags published for one repository. Use this to answer
lattice_search Search across workers, stacks and containers by name in one call. Faster than listing each type and filtering when you only have a partial name
lattice_get_anomalies Get detected fleet anomalies — restart loops, unhealthy containers, resource spikes, offline workers. The best first call when asked whether anything is wrong
lattice_get_fleet_metrics Get aggregated fleet-wide CPU, memory, disk and network metrics over a time range
lattice_get_versions Get runner versions across workers and which are outdated. Use before lattice_upgrade_worker to see what actually needs upgrading
lattice_refresh_versions Re-poll every worker for its current runner version, refreshing what lattice_get_versions reports
lattice_get_container_metrics Get a single container
lattice_get_self Get the user this API token authenticates as, including role
lattice_create_stack Create an empty stack. Add containers with lattice_create_container, or use lattice_import_compose to create one from compose YAML
lattice_delete_stack Delete a stack and every container in it. Destructive and not recoverable — export it first with lattice_export_stack if you might want it back
lattice_get_stack_containers List the containers belonging to one stack
lattice_update_stack_compose Replace a stack
lattice_sync_stack_compose Reconcile a stack
lattice_import_compose Create a new stack from a docker-compose YAML document
lattice_export_stack Export a stack
lattice_import_stack_export Recreate a stack from a document produced by lattice_export_stack
lattice_save_stack_as_template Save an existing stack
lattice_list_deploy_tokens List a stack
lattice_create_deploy_token Create a deploy token for a stack. The plaintext is returned once and this server masks it to its first two characters, so the usable value never enters a transcript — read it from the Lattice UI, or set LATTICE_ALLOW_SECRET_VALUES=1. Used as https://<lattice>/api/deploy/<token>?container=<name>
lattice_delete_deploy_token Delete a deploy token. Any CI pipeline using it stops being able to deploy. Destructive
lattice_approve_deployment Approve a deployment that is waiting on manual approval
lattice_list_automations List automations — a trigger (webhook or cron) plus ordered steps — with each one
lattice_get_automation Get one automation: trigger, ordered steps, run_as user, running_run_id (set while a run holds its guard) and last_run. http_request header values, bodies and URL paths come back masked
lattice_create_automation Create an automation: one trigger plus ordered steps. Use it to redeploy containers in SEVERAL stacks from one CI call — a deploy token only reaches one stack. Steps run in order and stop at the first failure unless continue_on_error. The automation runs as the user who owns this MCP
lattice_update_automation Update an automation. Omitted fields are left alone; description \
lattice_enable_automation Switch an automation on. Re-validates it first — a renamed container or deleted stack is refused here rather than on the next firing — and makes this MCP token
lattice_disable_automation Switch an automation off. It fires nothing while disabled: its webhook answers 200 with result \
lattice_run_automation Fire an automation now and wait for the verdict (a run is bounded to 50s). Returns {result, run}: result is succeeded | failed | skipped | disabled, and run.steps has every step
lattice_rotate_automation_token Replace a webhook automation
lattice_delete_automation Delete an automation. It stops firing and its webhook URL stops working immediately; its run history is no longer reachable, though the audit log keeps every action it took. Destructive — lattice_disable_automation only switches it off
lattice_list_automation_runs An automation
lattice_create_container Add a container definition to a stack. Creates the record only — deploy the stack to actually start it. JSON-shaped fields are passed as strings, matching the API
lattice_update_container Update a container definition. Changes the stored record — redeploy or recreate the container for them to take effect
lattice_delete_container Delete a container definition and its running container. Destructive — lattice_stop_container only stops it
lattice_create_worker Register a worker. The machine still needs the runner installed and a worker token before it connects
lattice_update_worker Update a worker
lattice_delete_worker Delete a worker. Every stack pinned to it becomes undeployable. Destructive
lattice_get_worker_container_stats Get live per-container resource stats from one worker
lattice_list_worker_tokens List a worker
lattice_create_worker_token Create a registration token for a worker, used by the runner to connect. Plaintext is returned once and this server masks it to its first two characters — read the usable value from the Lattice UI, or set LATTICE_ALLOW_SECRET_VALUES=1
lattice_delete_worker_token Delete a worker token. If the runner is using it, it cannot reconnect after a restart. Destructive
lattice_list_worker_volumes List Docker volumes on a worker
lattice_create_worker_volume Create a Docker volume on a worker
lattice_delete_worker_volume Delete a Docker volume on a worker. Any data stored in it is destroyed. Destructive
lattice_list_worker_networks List Docker networks on a worker
lattice_create_worker_network Create a Docker network on a worker
lattice_delete_worker_network Delete a Docker network on a worker. Containers attached to it lose connectivity. Destructive
lattice_list_all_networks List every tracked Docker network across the fleet
lattice_delete_network Delete a tracked network by its Lattice ID. Destructive
lattice_force_remove_container Force-remove a container on a worker by name, bypassing the normal lifecycle. For clearing a wedged container that ordinary remove will not shift. Destructive
lattice_list_env_vars List global environment variables available for interpolation into stack and container configs as ${NAME}. Values marked is_secret are masked to their first two characters by this server — the API itself only masks them for non-admin callers, and this MCP authenticates as an admin
lattice_create_env_var Create a global environment variable
lattice_update_env_var Update a global environment variable
lattice_delete_env_var Delete a global environment variable. Any config referencing ${KEY} fails to interpolate on next deploy. Destructive
lattice_list_templates List saved stack templates
lattice_create_template Create a stack template from a config document
lattice_delete_template Delete a stack template. Destructive
lattice_list_webhooks List outbound webhooks that fire on fleet events
lattice_create_webhook Create an outbound webhook. events is a JSON array string, e.g.
lattice_update_webhook Update a webhook
lattice_delete_webhook Delete a webhook. Destructive
lattice_test_webhook Send a test payload to a webhook to verify the endpoint accepts it
lattice_list_users List Lattice users with roles and status
lattice_create_user Create a local Lattice user
lattice_update_user Update a user
lattice_delete_user Delete a Lattice user. Destructive
lattice_get_sso_config Get the Forta SSO configuration
lattice_update_sso_config Update the SSO configuration. Misconfiguring this can lock every SSO user out of Lattice — verify local admin access first
lattice_get_smtp_config Get the SMTP configuration used for alert emails
lattice_update_smtp_config Update the SMTP configuration
lattice_test_smtp Send a test email using the saved SMTP configuration
lattice_get_notification_prefs Get per-event notification preferences
lattice_update_notification_prefs Update notification preferences. Merges into existing prefs; unknown event types are ignored rather than rejected, so verify with lattice_get_notification_prefs afterwards
Permissions 3
network medium shell high env_vars low