Depot MCP by usefulapi

v1.41.5
io.usefulapi/depot Checked 7 hours ago Published 12 days ago

Inspect Depot builds, CI runs, job logs and Actions runners; retry or cancel CI runs.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

depot_list_projects List projects

List the organization's Depot projects. A project is an isolated container-build cache (region, hardware, cache policy). Use the returned projectId with the build and registry tools. Depot: ProjectService/ListProjects.

ParameterTypeDescription
page_sizeintegerPage size, 1-250.
page_tokenstringCursor from the previous response's nextPageToken. Omit for the first page.
region_idstringOnly projects in this region or cloud connection, e.g. us-east-1.

depot_get_project Get a project

Get one Depot project — name, region, hardware size, cache policy, build timeout and autoscaling. Depot: ProjectService/GetProject.

ParameterTypeDescription
project_id *stringProject id, from depot_list_projects.

depot_list_builds List builds for a project

List container builds in a project, newest first: status (STATUS_RUNNING / FAILED / SUCCESS / ERROR / CANCELED), timestamps, build duration, time saved by cache, and cached vs total steps. Depot: core BuildService/ListBuilds.

ParameterTypeDescription
project_id *stringProject id, from depot_list_projects.
page_sizeintegerPage size, 1-100.
page_tokenstringCursor from the previous response's nextPageToken. Omit for the first page.

depot_get_build Get a build

Get one container build's status, timestamps, duration, time saved and cached/total step counts. Depot: core BuildService/GetBuild.

ParameterTypeDescription
build_id *stringBuild id, from depot_list_builds.

depot_get_build_steps List a build's steps

List the BuildKit steps of a container build: name, digest, start/end time, cache state (CACHED / UNCACHED), any error, and whether it has logs. Find the failing step here, then pass its digest to depot_get_build_step_logs. Depot: build.v1 BuildService/GetBuildSteps.

ParameterTypeDescription
build_id *stringBuild id, from depot_list_builds.
project_id *stringProject id the build belongs to.
page_sizeintegerPage size, 1-1000.
page_tokenstringCursor from the previous response's nextPageToken. Omit for the first page.

depot_get_build_step_logs Get a build step's logs

Get the log lines (message + timestamp) of one container-build step, identified by its digest from depot_get_build_steps. Depot: build.v1 BuildService/GetBuildStepLogs.

ParameterTypeDescription
build_id *stringBuild id.
project_id *stringProject id the build belongs to.
step_digest *stringThe step's digest, from depot_get_build_steps.
page_sizeintegerPage size, 1-1000.
page_tokenstringCursor from the previous response's nextPageToken. Omit for the first page.

depot_list_registry_images List registry images

List the images stored in a project's Depot Registry: tag, digest, pushedAt and sizeBytes. Depot: build.v1 RegistryService/ListImages.

ParameterTypeDescription
project_id *stringProject id, from depot_list_projects.
page_sizeintegerPage size, 1-100.
page_tokenstringCursor from the previous response's nextPageToken. Omit for the first page.

depot_get_usage Get organization usage

Get the organization's Depot usage over a window: container builds per project (build count, minutes saved, minutes billed), GitHub Actions jobs per repo/workflow/runner (minutes elapsed and billed), storage, and agent sandboxes. Depot: UsageService/GetUsage.

ParameterTypeDescription
end_at *stringWindow end, RFC 3339 (e.g. 2026-09-30T00:00:00Z).
start_at *stringWindow start, RFC 3339 (e.g. 2026-09-01T00:00:00Z).

depot_ci_list_runs List Depot CI runs

List Depot CI runs, newest first. Filter by status (default: running + queued — pass ["failed"] to find failures), repo, commit SHA prefix, trigger event, or pull request number (requires repo). Depot: CIService/ListRuns.

ParameterTypeDescription
page_sizeintegerPage size, 1-100.
page_tokenstringCursor from the previous response's nextPageToken. Omit for the first page.
prstringPull request number. Requires repo.
repostringRepository in owner/name format, e.g. depot/cli.
shastringCommit SHA prefix (1-40 hex chars).
statusarrayRun statuses to include (ORed). Default on Depot's side: running and queued.
triggerstringTrigger event, e.g. push, pull_request, schedule, workflow_dispatch.

depot_ci_get_run_status Get a CI run's status tree

Get a Depot CI run's status with its nested workflows, jobs and attempts (ids, keys, statuses, error messages). This is how to find the workflowId / jobId / attemptId for the log, diagnosis and retry tools. Depot: CIService/GetRunStatus.

ParameterTypeDescription
run_id *stringCI run id, from depot_ci_list_runs.

depot_ci_list_workflows List Depot CI workflows

List Depot CI workflows across runs, newest first, with per-status job counts. Filter by name/path text, repo, status, trigger, SHA prefix or PR number. Depot: CIService/ListWorkflows.

ParameterTypeDescription
namestringText to match in the workflow name or file path.
page_sizeintegerPage size, 1-200.
prstringPull request number.
repostringRepository in owner/name format.
shastringCommit SHA prefix (1-40 hex chars).
statusarrayWorkflow statuses to include (ORed).
triggerstringTrigger event, e.g. push or pull_request.

depot_ci_get_job Get a CI job

Get one Depot CI job: status, conclusion, error message, timestamps, runner config (labels, image, CPUs, memory), matrix values, parent run/workflow context, dependencies and attempt history. Depot: CIService/GetJob.

ParameterTypeDescription
job_id *stringCI job id, from depot_ci_get_run_status.

depot_ci_get_job_logs Get a CI job's logs

Get persisted log lines for a Depot CI job attempt, oldest first (step key/name, timestamp, line number, body). Pass job_id to read the job's latest attempt, or attempt_id for a specific one — exactly one. Pass nextPageToken back as page_token for more lines. Depot: CIService/GetJobAttemptLogs.

ParameterTypeDescription
attempt_idstringA specific attempt id.
job_idstringCI job id — resolves to its latest attempt.
page_tokenstringCursor from the previous response's nextPageToken. Omit for the first page.

depot_ci_get_failure_diagnosis Diagnose a CI failure

Get Depot's failure diagnosis for a CI run, workflow, job or attempt. For runs and workflows, identical failures are grouped by error fingerprint; for a job or attempt it is a focused diagnosis with evidence. Empty when no failure evidence is found. The best first call when a run failed. Depot: CIService/GetFailureDiagnosis.

ParameterTypeDescription
target_id *stringThe run, workflow, job or attempt id.
target_type *stringWhat target_id identifies.

depot_gha_list_jobs List GitHub Actions jobs on Depot runners

List GitHub Actions jobs that ran on Depot-managed runners, newest first: status, conclusion, runner label, requested CPU/memory, duration, billable time and GitHub URL. Defaults to the last 30 days (max window 90 days). Depot: GithubActionsService/ListGithubActionsJobs.

ParameterTypeDescription
conclusionsarrayJob conclusions to include, e.g. ["failure"].
end_atstringWindow end, RFC 3339 (e.g. 2026-09-18T00:00:00Z).
page_sizeintegerPage size, 1-250.
page_tokenstringCursor from the previous response's nextPageToken. Omit for the first page.
querystringCase-insensitive text matched against job and workflow names; numeric values also match exact GitHub job/run ids.
repositoriesarrayConnected repositories in owner/name format, e.g. ["acme/widgets"]. Empty = all.
runner_labelsarrayRunner labels to include.
start_atstringWindow start, RFC 3339 (e.g. 2026-09-17T00:00:00Z).
statusesarrayJob states to include.

depot_gha_search_logs Search GitHub Actions logs

Search GitHub Actions log lines from Depot runners, newest match first (job, workflow, step, timestamp, body, lineId). Defaults to the last hour (max window 30 days). Filter by repository, workflow, runner label, action or compute id. Depot: GithubActionsService/SearchGithubActionsLogs.

ParameterTypeDescription
actionsarrayActions to include, e.g. actions/checkout.
compute_idstringA single Depot compute id.
end_atstringWindow end, RFC 3339 (e.g. 2026-09-18T00:00:00Z).
page_sizeintegerPage size, 1-1000.
page_tokenstringCursor from the previous response's nextPageToken. Omit for the first page.
querystringText to match in log bodies, e.g. "timeout". Empty returns unfiltered lines.
repositoriesarrayConnected repositories in owner/name format, e.g. ["acme/widgets"]. Empty = all.
runner_labelsarrayRunner labels to include.
start_atstringWindow start, RFC 3339 (e.g. 2026-09-17T00:00:00Z).
workflowsarrayWorkflow names to include.

depot_gha_get_analytics Get GitHub Actions analytics

Get time-bucketed GitHub Actions analytics for Depot runners: job counts (successful/failed/cancelled), failure rate, elapsed and billable seconds, average duration — as totals plus hourly or daily buckets. Defaults to the last 30 days (max 90). Depot: GithubActionsService/GetGithubActionsAnalytics.

ParameterTypeDescription
aggregation_unitstringBucket size. Default: day.
end_atstringWindow end, RFC 3339 (e.g. 2026-09-18T00:00:00Z).
jobsarrayJob display names to include.
repositoriesarrayConnected repositories in owner/name format, e.g. ["acme/widgets"]. Empty = all.
runner_labelsarrayRunner labels to include, e.g. depot-ubuntu-24.04-8.
start_atstringWindow start, RFC 3339 (e.g. 2026-09-17T00:00:00Z).
workflow_pathsarrayWorkflow file paths to include, e.g. .github/workflows/ci.yml.
workflowsarrayWorkflow names to include.

depot_gha_list_recommendations List runner-size recommendations

List Depot's runner-size recommendations from job CPU and memory metrics: SIZE_UP when average CPU or memory reaches 90%, SIZE_DOWN when both averages stay ≤30% and peaks ≤70%, with current vs suggested size and per-minute price. Defaults to the last 30 days. Depot: GithubActionsService/ListGithubActionsRecommendations.

ParameterTypeDescription
end_atstringWindow end, RFC 3339 (e.g. 2026-09-18T00:00:00Z).
jobsarrayJob display names to include.
page_sizeintegerPage size, 1-250.
page_tokenstringCursor from the previous response's nextPageToken. Omit for the first page.
repositoriesarrayConnected repositories in owner/name format, e.g. ["acme/widgets"]. Empty = all.
runner_labelsarrayRunner labels to include, e.g. depot-ubuntu-24.04-8.
start_atstringWindow start, RFC 3339 (e.g. 2026-09-17T00:00:00Z).
workflow_pathsarrayWorkflow file paths to include, e.g. .github/workflows/ci.yml.
workflowsarrayWorkflow names to include.

depot_cache_list_entries List cache entries

List Depot Cache entries of one type, optionally by key prefix: key, size in bytes, name and creation time (Depot returns no last-access time and no repository). Retention and size limits are set only in the dashboard (Organization Settings), not through the API. Depot: CacheService/ListEntries on cache.depot.dev.

ParameterTypeDescription
entry_type *stringCache type, as the Depot Cache Explorer labels it (Depot dashboard → Cache). "generic" is what the depot CLI writes; build tools (Gradle, Go, Bazel, Turborepo, GitHub Actions…) use their own types…
key_prefixstringOnly keys that start with this text.
page_sizeintegerPage size, 1-1000.
page_tokenstringCursor from the previous response's nextPageToken. Omit for the first page.

depot_cache_delete_entries Delete cache entries

WRITE — deletes cached build data; a later build rebuilds it. Delete Depot Cache entries by exact key. Without confirm it only previews: it shows which keys exist, with their size, and deletes nothing. Show the preview to the user, then call again with confirm: true. Depot: CacheService/DeleteEntry on cache.depot.dev.

ParameterTypeDescription
entry_type *stringCache type, as the Depot Cache Explorer labels it (Depot dashboard → Cache). "generic" is what the depot CLI writes; build tools (Gradle, Go, Bazel, Turborepo, GitHub Actions…) use their own types…
keys *arrayExact keys to delete (1-50), from depot_cache_list_entries. Prefixes are not expanded.
confirmbooleantrue = delete now. Omit or false = preview only (nothing is deleted).

depot_create_project Create a project

WRITE. Create a Depot container-build project (an isolated build cache). Idempotent by name: if an active project with the same name exists, that project is returned. Defaults: cache 50 GB / 14 days, hardware HARDWARE_16X32 on AWS builders. Depot: ProjectService/CreateProject.

ParameterTypeDescription
name *stringDisplay name for the project.
region_id *stringDepot region or cloud connection, e.g. us-east-1 or eu-central-1.
build_timeout_minutesintegerMax duration of each build, minutes. Omit for no timeout.
cache_keep_daysintegerDays to keep cache entries since last use (1-30). Default 14.
cache_keep_gbintegerMax cache size per architecture, GB (25-1000). Default 50.
hardwarestringBuilder size, e.g. HARDWARE_16X32 (16 CPU / 32 GB).
max_concurrent_buildsintegerBuilds per builder before autoscaling adds one. Omit to disable autoscaling.
organization_idstringOwning organization. Only needed for user tokens that belong to more than one org.

depot_ci_retry_job Retry a CI job

WRITE — starts compute. Retry one failed or cancelled Depot CI job, plus any skipped jobs that depend on it. Fails if a dependent job already started; use depot_ci_retry_failed_jobs then. Depot: CIService/RetryJob.

ParameterTypeDescription
job_id *stringJob id to retry.
workflow_id *stringWorkflow id containing the job, from depot_ci_get_run_status.

depot_ci_retry_failed_jobs Retry a workflow's failed jobs

WRITE — starts compute. Retry only the failed and cancelled jobs in a Depot CI workflow, plus skipped jobs that depend on them. Jobs that succeeded are left alone. Depot: CIService/RetryFailedJobs.

ParameterTypeDescription
workflow_id *stringWorkflow id, from depot_ci_get_run_status or depot_ci_list_workflows.

depot_ci_cancel_run Cancel a CI run

WRITE — stops work in progress. Cancel a queued or running Depot CI run and all of its unfinished workflows, jobs and attempts. Cancelled jobs can be retried afterwards with depot_ci_retry_failed_jobs. Depot: CIService/CancelRun.

ParameterTypeDescription
run_id *stringCI run id, from depot_ci_list_runs.