> For the complete documentation index, see [llms.txt](https://docs.observal.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.observal.io/cli-reference/component.md).

# observal registry version

Publish and inspect versioned releases for MCP servers, skills, hooks, prompts, and sandboxes.

## Commands

| Command   | Description                                |
| --------- | ------------------------------------------ |
| `publish` | Publish a new component version for review |
| `list`    | List paginated version history             |

Valid component types are `mcp`, `skill`, `hook`, `prompt`, and `sandbox`.

## Publish

```bash
observal registry version publish mcp acme/server \
  --version 2.0.0 \
  --description "New authentication flow" \
  --changelog "Breaking change" \
  --output json
```

| Option                | Description                             |
| --------------------- | --------------------------------------- |
| `--version`, `-v`     | Version to publish                      |
| `--description`, `-d` | Required release description            |
| `--changelog`         | Optional release notes                  |
| `--harness`           | Supported harness; repeatable           |
| `--extra`             | Type-specific metadata as a JSON object |
| `--output`, `-o`      | Table or JSON output                    |

Human mode fetches version suggestions and prompts when a version is omitted. JSON mode never prompts and therefore requires an explicit version. Suggestion failures retain their original authentication, rate-limit, unavailable, or version-mismatch category.

The extra value must be a JSON object. Versions and harnesses are validated before publication.

## List

```bash
observal registry version list mcp acme/server --output json
observal registry version list hook acme/guard --page 2 --page-size 100 --output json
```

| Option           | Description                        |
| ---------------- | ---------------------------------- |
| `--page`         | Page number, starting at 1         |
| `--page-size`    | Items per page, from 1 through 200 |
| `--output`, `-o` | Table or JSON output               |

JSON returns the direct paginated server object with `items`, `total`, `page`, and `page_size`. Empty pages preserve that shape. Human output shows version, review status, relative release date, and publisher.

## Exit codes

| Code | Meaning                                               |
| ---- | ----------------------------------------------------- |
| `0`  | Publication or listing completed                      |
| `2`  | Invalid command syntax or pagination bounds           |
| `3`  | Authentication required or failed                     |
| `4`  | Permission denied                                     |
| `5`  | Component not found                                   |
| `6`  | Version or state conflict                             |
| `7`  | Invalid component type, version, harness, or metadata |
| `8`  | Rate limit reached                                    |
| `9`  | Registry unavailable                                  |
| `10` | CLI and server version mismatch                       |

## Related

* [`observal registry`](/cli-reference/registry.md): component management
* [`observal outdated`](/cli-reference/outdated.md): compare installed and latest versions


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.observal.io/cli-reference/component.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
