Shipyard CLI with a built-in MCP server

Shipyard CLI with a built-in MCP server

shipyard-cli•byshipyard

A CLI for managing Ephemeral Environments on the Shipyard platform, including an MCP server that lets AI assistants work with those environments.

License: Not specified•Runtime: Awaiting documentation review•Category: cloud devops

WHAT IT DOES

  • •Runs an MCP server via `shipyard mcp serve` so AI assistants can list, inspect, rebuild and configure Shipyard environments.
  • •Through the MCP server, assistants can read service logs and manage volumes.
  • •Provides a `verify` prompt for checking a pushed change against its environment.
  • •Lets assistants query environments by repository, inspect logs, diagnose failed builds, and set environment variables with service restarts.

BEST FOR

  • •Developers using AI coding assistants to inspect and manage Shipyard ephemeral environments.
  • •Verifying a pushed code change against its deployed environment inside an AI assistant.

ABOUT SHIPYARD-CLI

Shipyard CLI with a built-in MCP server is cataloged as an MCP server attributed to shipyard. A CLI for managing Ephemeral Environments on the Shipyard platform, including an MCP server that lets AI assistants work with those environments. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Shipyard CLI with a built-in MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which AI assistants can connect to the Shipyard MCP server?

The README names Claude Code, Claude Desktop, Cursor and Codex as assistants that can use the MCP server.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 080361a8f27b · 采集于 2026-11-13 11:27:01 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

The Shipyard CLI

A tool to manage Ephemeral Environments on the Shipyard platform.

Using an AI assistant? The CLI includes an MCP server: see Use Shipyard from an AI assistant.

Installation

  • Linux and macOS

    curl https://www.shipyard.sh/install.sh | bash
    

    It installs to /usr/local/bin, using sudo only if it can't write there. To install somewhere else, such as a directory you own, set SHIPYARD_INSTALL_DIR:

    curl https://www.shipyard.sh/install.sh | SHIPYARD_INSTALL_DIR="$HOME/.local/bin" bash
    
  • Windows Navigate to the releases page and download the executable for Windows.

  • Homebrew

    brew tap shipyard/tap
    brew install shipyard
    

Verifying a download

Every release publishes a checksums.txt with the SHA-256 of each binary. The install script checks the binary against it and refuses to install on a mismatch. To check a binary you downloaded yourself:

grep " shipyard-darwin-arm64$" checksums.txt | shasum -a 256 -c -

checksums.txt comes from the same release as the binary, so it catches a corrupted or truncated download, not a release whose files were replaced. The attestation below is the check that the binary was built by this repo's release workflow.

In releases after 1.9.0, each binary also has a signed build provenance attestation, showing which workflow run, commit and tag built it, and an SPDX SBOM (shipyard-<os>-<arch>.sbom.json; .exe.sbom.json on Windows) listing what it was built from. Verify the attestation with the GitHub CLI, naming the release you downloaded (here v1.10.0):

gh attestation verify shipyard-darwin-arm64 -R shipyard/shipyard-cli \
  --signer-workflow shipyard/shipyard-cli/.github/workflows/release.yaml \
  --source-ref refs/tags/v1.10.0

Keep --source-ref: without it, the check passes for anything a copy of the workflow signed on any branch, not just that release's tag build.

The check names the tag, not its commit. A withdrawn release's attestations aren't deleted, so if a version is ever released again under the same tag, its withdrawn binaries still pass. To pin the commit as well, add --source-digest <commit SHA> with the commit the tag points to.

Rebuilding a release

Releases after 1.10.0 are reproducible: building the release tag again, with the same Go and GoReleaser versions, gives byte-identical binaries in any directory. The versions are GO_VERSION and GORELEASER_VERSION in that tag's .github/workflows/release.yaml. With that GoReleaser installed, and GO_VERSION in place of 1.26.11 below (GOTOOLCHAIN makes Go use exactly that version, downloading it if needed, and GOFLAGS= drops any of your own build flags):

git clone https://github.com/shipyard/shipyard-cli && cd shipyard-cli
git checkout vX.Y.Z
GOTOOLCHAIN=go1.26.11 GOFLAGS= goreleaser release --clean --skip=publish,sbom
grep " shipyard-linux-amd64$" dist/checksums.txt

The digest should match the same line in the release's checksums.txt. If it doesn't, check your Go and GoReleaser versions (GOTOOLCHAIN=go1.26.11 go version, goreleaser --version) before suspecting the release. The release workflow checks this on every release commit before it builds the release (scripts/check-reproducible.sh). SBOMs aren't reproducible: they record when they were generated. Their entry for the CLI's own module shows the version (devel), because the build leaves out Go's VCS stamp; shipyard --version prints the release version.

Upgrading

shipyard upgrade

shipyard update does the same thing. It installs the latest release and shows its release notes. A Homebrew install is upgraded with brew upgrade shipyard; any other install downloads the release binary, verifies it against the release's checksums.txt, and replaces the running binary. If that binary is in a directory you can't write to, such as /usr/local/bin, run sudo shipyard upgrade.

Add --prerelease to include pre-releases, or --force to reinstall the current release (for a Homebrew install, use brew reinstall shipyard instead).

Upgrading from 1.9.0 or earlier

The shipyard update in 1.9.0 and earlier compares versions as text, so it reports 1.10.0 and later as older than what you have. Upgrade once the way you installed, and shipyard upgrade works from then on:

  • Linux and macOS: curl https://www.shipyard.sh/install.sh | bash
  • Windows: download the executable from the releases page
  • Homebrew: brew upgrade shipyard

Update notices

When a new release is out, the CLI tells you after a command finishes, at most once a day:

A new version of shipyard is available: 1.9.0 → 1.10.0
Run `shipyard upgrade` to install it. Release notes: https://github.com/shipyard/shipyard-cli/releases/tag/v1.10.0

It never asks anything or waits for input. The check runs in the background while your command runs; if it hasn't finished when the command does, the CLI waits at most a second for it. That only happens when it's asking GitHub, about once a day or to fetch release notes you missed. The first run after an upgrade made any other way, such as brew upgrade, shows those notes.

The message goes to stderr, and only when stderr is a terminal. It's never shown in CI, inside AI coding agents that identify themselves (Claude Code, Codex, Cursor's agent, Gemini CLI), or for shipyard mcp serve. To turn it off, set SHIPYARD_NO_UPDATE_CHECK=1 or add update_check: false to ~/.shipyard/config.yaml.

Turning off self-update

On a self-hosted Shipyard that can't reach GitHub, the CLI comes with your Shipyard release instead. Turn off self-update there with self_update: false in ~/.shipyard/config.yaml, or SHIPYARD_SELF_UPDATE=false. The CLI then never contacts GitHub: no update notice, no background check from shipyard mcp serve, and shipyard upgrade refuses with a message saying self-update is off. update_check: false only turns off the notice and background check.

Login

Run shipyard login to initialize the CLI. This will prompt you to log in to Shipyard in the browser. The CLI will then save your API token in a local config. You're ready to start running commands.

Self-hosted Shipyard

To use a self-hosted Shipyard, point the CLI at its API in ~/.shipyard/config.yaml (or with SHIPYARD_API_URL) before logging in:

api_url: https://shipyard.example.internal/api/v1
self_update: false

shipyard login then opens that host's login page, and every command calls that API. Set self_update: false if the install can't reach GitHub (see Turning off self-update).

If you've already logged in to another Shipyard (such as shipyard.build), shipyard login keeps that token and says you're logged in. Remove api_token from the config file (and unset SHIPYARD_API_TOKEN) before logging in to the self-hosted install.

Or Set Your Token Manually

Set your Shipyard API token as the value of the SHIPYARD_API_TOKEN environment variable.

You can get it by going to your profile page.

You can get in touch with us at support@shipyard.build if you would like to enable API access for your org. If you have any other questions, feel free to join our community Slack.

shipyard set token

Alternatively, you can use a configuration file stored in $HOME/.shipyard/config.yaml by default. When you run the CLI for the first time, it will create a default empty config that you can then edit.

You can also specify a non-default config path with the --config {path} flag added to any command.

Add any configuration values in your config and ensure the file follows YAML syntax. For example:

api_token: <your-token>
org: <your-non-default-org>

The values of your environment variables override their corresponding values in the config.

Basic usage

Get all orgs you are a member of

shipyard get orgs

Set the global default org

shipyard set org {org-name}

Get the currently configured org

shipyard get org

List all environments

shipyard get environments

Available flags:

NameDescriptionTypeDefault Value
branchFilter by branch namestring
deletedReturn deleted environmentsbooleanfalse
jsonPrint the complete JSON outputbooleanfalse
nameFilter by name of the applicationstring
org-nameFilter by org name, if you are part of multiple orgsstringyour default org
pagePage number requestedint1
page-sizePage size requestedint20
pull-request-numberFilter by pull request numberstring
repo-nameFilter by repo namestring

Examples:

  • List all environments running the repo flask-backend on branch main:
shipyard get environments --repo-name flask-backend --branch main
  • List all deleted environments:
shipyard get environments --deleted

Get details for a specifc environment by its UUID

shipyard get environment {environment_uuid}

Available flags:

NameDescriptionTypeDefault Value
jsonPrint the complete JSON outputbooleanfalse
orgOrg of the environment, if you are part of multiple orgsstringyour default org
bypass-tokenPrint only the environment's bypass token, for scriptsbooleanfalse

--bypass-token lets a script use the token without anyone typing or printing it:

SHIPYARD_TOKEN=$(shipyard get environment {environment_uuid} --bypass-token) && \
  export SHIPYARD_TOKEN && curl -b "shipyard_token=$SHIPYARD_TOKEN" https://your-environment-url/

Stop a running environment

shipyard stop environment {environment_uuid}

Restart a stopped environment

shipyard restart environment {environment_uuid}

Cancel ongoing build for an environment

shipyard cancel environment {environment_uuid}

Rebuild an environment

shipyard rebuild environment {environment_uuid}

Revive a deleted environment

shipyard revive environment {environment_uuid}

Deploy a detached environment

Create a new, independent ("detached") environment by cloning an existing application build. Requires detached environments to be enabled for your org.

shipyard detached deploy {application_build_uuid} --name my-detached-env

Override branches per-repo and control whether the detached environment rebuilds on new commits:

# Override the branch for a repo, and never rebuild on new commits
shipyard detached deploy {application_build_uuid} --name my-detached-env --branch web=feature-x --build-on-commit never

# Per-repo build-on-commit settings (always | inherit | never)
shipyard detached deploy {application_build_uuid} --build-on-commit-for web=always --build-on-commit-for api=never

Delete a detached environment

Pass the environment UUID, or the UUID of any of its application builds (the one in the build detail page's URL). Only detached environments can be deleted this way; a base, pull request or remote environment is refused. Deleting one that is already deleted succeeds again.

shipyard detached delete {environment_uuid}
shipyard detached delete {application_build_uuid}

Get all services and exposed ports for an environment

shipyard get services --env {environment_uuid}

Exec into a running environment's service

Execute any command with any arguments and flags in a given service for a running environment. Pass any command arguments after a double slash. The session keeps the environment from being stopped as idle only while you type in it, for up to 12 hours.

shipyard exec --env {environment_uuid} --service {service_name} -- bash

Port forward a running environment's service's port

shipyard port-forward --env {environment_uuid} --service {service_name} --ports {local_port}:{service_container_port}

An open port-forward or logs --follow keeps the environment from being stopped as idle for up to 12 hours.

Get logs for a running environment's service

shipyard logs --env {environment_uuid} --service {service_name}

Visit an environment

shipyard visit {environment_uuid}

Available flags:

NameDescriptionTypeDefault Value
followFollow the logs outputbooleanfalse
tail# of recent log lines to showint3000

Work with volumes

List all volumes in an environment

shipyard get volumes --env {environment_uuid}

List all volume snapshots in an environment

shipyard get snapshots --env {environment_uuid}

Reset a volume in an environment

shipyard reset volume --env {environment_uuid}

Create a snapshot in an environment

shipyard create snapshot --env {environment_uuid}

Load a volume snapshot in an environment

shipyard load snapshot --env {environment_uuid} --sequence-number {n}

Upload a file to a volume in an environment

shipyard upload volume --env {environment_uuid} --volume {volume} --file {filepath.bz2}

Call the REST API directly

shipyard api /api/v1/environment
shipyard api -X PUT /api/v1/environment/{environment_uuid}/env-vars --input body.json

Paths must start with /api/v1 or /api/v2; your token and org are added for you. bypass_token and kubeconfig credentials are redacted unless you pass --include-secrets.

Connect to telepresence

shipyard telepresence connect --env {environment_uuid}

From there, you'll be able to communicate directly with all pods in the namespace. You may have to use the namespace hostname to communicate with services, which you can get via telepresence status under the Namespace field. For example, to communicate with redis, you'd use redis.shipyard-app-build-{uuid}

Build executable from code:

You can make an executable by running the following command:

make

To run this new executable:

./shipyard

Enable Autocompletion

Bash

This script depends on the bash-completion package. If it is not installed already, you can install it via your OS's package manager. To load completions in your current shell session:

source <(shipyard completion bash)

To load completions for every new session, execute the following once.

On Linux:

shipyard completion bash > /etc/bash_completion.d/shipyard

On macOS:

shipyard completion bash > $(brew --prefix)/etc/bash_completion.d/shipyard

Zsh

If shell completion is not already enabled in your environment, you will need to enable it. You can execute the following once:

echo "autoload -U compinit; compinit" >> ~/.zshrc

To load completions in your current shell session:

source <(shipyard completion zsh); compdef _shipyard shipyard

To load completions for every new session, execute the following once.

On Linux:

shipyard completion zsh > "${fpath[1]}/_shipyard"

On macOS:

shipyard completion zsh > $(brew --prefix)/share/zsh/site-functions/_shipyard

You will need to start a new shell for this setup to take effect.

Fish

To load completions in your current shell session:

$ shipyard completion fish | source

To load completions for each session, execute once:

shipyard completion fish > ~/.config/fish/completions/shipyard.fish

PowerShell

To load completions in your current shell session:

shipyard completion powershell | Out-String | Invoke-Expression

To load completions for every new session, run:

shipyard completion powershell > shipyard.ps1

and source this file from your PowerShell profile.

Use Shipyard from an AI assistant (MCP)

shipyard mcp serve runs a Model Context Protocol server, so an assistant such as Claude Code, Claude Desktop, Cursor or Codex can list, inspect, rebuild and configure your environments, read service logs, manage volumes, and verify a pushed change against its environment.

With the CLI logged in, add it to Claude Code:

claude mcp add shipyard -- shipyard mcp serve

Then ask things like:

  • "Which environments are running for the web repo?"
  • "Show me the api service's logs on my branch's environment."
  • "Why did the latest build of this environment fail?"
  • "Set FEATURE_FLAGS=beta on this environment and restart the worker service."
  • "I just pushed. Verify the change against its environment." (or /mcp__shipyard__verify)

See the MCP guide for setting it up in other clients, configuration, the full tool list, the verify prompt, and troubleshooting.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Shipyard CLI with a built-in MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/shipyard-cli)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related cloud devops MCP Servers

Alternative and complementary servers in the same category

View all in cloud devops →
Huawei MCP Server
mcp-server-huaweiclouddeveloper•huaweiclouddeveloper

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

Repository stats unavailable
Cloud & DevOps
Coolify MCP Server
coolify-mcp-server•wrediam

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

Repository stats unavailable
Cloud & DevOps

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.

Repository stats unavailable
Cloud & DevOps