---
url: /reference/pandra-toml.md
---
# pandra.toml

The agent definition: the file at the root of an agent project. [Build an agent](/build.md) shows how to write one.

The agent definition of an agent project, its build input.

## Top-level keys

| Key | Type | Description |
| --- | --- | --- |
| `authors` | array of string | The authors, `Name <email>` recommended. |
| `base` | table | The agent this one builds on. |
| `description` | string | A one-line description, shown when the agent is fetched and in `pandra agent inspect`. |
| `env` | table of table | Environment variables the agent relies on. |
| `homepage` | string | The homepage, an absolute `https://` or `http://` URL. |
| `instructions` | array of table | Instructions, joined in order with one blank line between them. |
| `license` | string | An SPDX license expression. |
| `mcp-servers` | table of table | MCP servers, by the name the harness sees. |
| `name` | string | The agent's name: 1 to 64 characters from `[a-z0-9-]`, starting and ending with a letter or digit, with no `--`. Required. |
| `plugins` | table of table | Plugins, by name: the skills of each, under the plugin's name as namespace; every one unless `skills` names those to take. |
| `prompt` | table | The task the agent starts with. |
| `repository` | string | The source repository, an absolute `https://` or `http://` URL. |
| `skills` | table of table | The skills, by name: each a source that resolves to a directory in the Agent Skills format. |
| `version` | string | The agent's version, a Semantic Versioning 2.0.0 version such as `1.2.0`, without a `v` prefix; `pandra push` requires it. |

## `[base]`

The agent this one builds on.

| Key | Type | Description |
| --- | --- | --- |
| `branch` | string | The Git branch to check out. |
| `exclude-instructions` | boolean | Whether to leave out the base's instructions. |
| `exclude-mcp-servers` | array of string | Names of the base's MCP servers to leave out. |
| `exclude-skills` | array of string | Names of the base's skills to leave out, each with or without its namespace (`superpowers:brainstorming`). |
| `git` | string | A Git repository, an `https://` or `ssh://` URL. |
| `oci` | string | An agent's package in a registry, as an OCI reference with a tag, a digest, or both. |
| `path` | string | A project directory relative to this one, or the project's directory in a Git repository. |
| `rev` | string | The Git commit to check out, in full. |
| `tag` | string | The Git tag to check out. |

One of `git`, `oci`, or `path` is required.

## `[env.<name>]`

Environment variables the agent relies on.

| Key | Type | Description |
| --- | --- | --- |
| `description` | string | Shown in errors and in `pandra agent inspect`. |
| `required` | boolean | `true` if the run must fail when the variable has no value; an empty value counts as a value. |
| `secret` | boolean | `true` if the value is sensitive: it is redacted in output and never comes from the package. |

## `[[instructions]]`

Instructions, joined in order with one blank line between them.

| Key | Type | Description |
| --- | --- | --- |
| `branch` | string | The Git branch to check out. |
| `git` | string | A Git repository, an `https://` or `ssh://` URL. |
| `path` | string | A path relative to the project directory, or the file a Git repository or an archive contributes. |
| `rev` | string | The Git commit to check out, in full. |
| `sha256` | string | The SHA-256 digest the download must have, in lowercase hexadecimal. |
| `tag` | string | The Git tag to check out. |
| `text` | string | Inline Markdown, instead of a source. |
| `url` | string | An `https://` URL of a file, or of a `.tar.gz`, `.tgz`, `.tar`, or `.zip` archive. |

One of `git`, `path`, `text`, or `url` is required.

## `[mcp-servers.<name>]`

MCP servers, by the name the harness sees.

| Key | Type | Description |
| --- | --- | --- |
| `args` | array of string | Arguments for the server. |
| `env` | table of string | Environment variables for the server. |
| `headers` | table of string | HTTP headers of a remote server. |
| `inputs` | table of table | Inputs: for an MCP Registry entry, adjustments of the entry's inputs; otherwise their declarations. |
| `method` | string | The default execution method of an MCP Registry entry: a method id, or `npm`, `pypi`, `oci`, or `remote`. |
| `name` | string | The package name; for `oci`, the image repository. |
| `package` | `"npm"` or `"pypi"` or `"oci"` | The package type. |
| `registry` | string | The server's name in the MCP Registry. |
| `registry-url` | string | The registry's base URL; defaults to `https://registry.modelcontextprotocol.io`. |
| `required` | boolean | `true` when the agent cannot do its job without this server; default `false`. |
| `transport` | `"streamable-http"` or `"sse"` | The transport of a remote server. |
| `url` | string | The endpoint of a remote server. |
| `version` | string | An exact version: of the MCP Registry entry, or of the package. |

One of `package` with `name` and `version`, `registry`, or `url` is required.

## `[mcp-servers.<name>.inputs.<name>]`

Inputs: for an MCP Registry entry, adjustments of the entry's inputs; otherwise their declarations.

| Key | Type | Description |
| --- | --- | --- |
| `choices` | array of string | The only values allowed. |
| `default` | string | The value used when none is given. |
| `description` | string | What the input is for. |
| `format` | `"string"` or `"number"` or `"boolean"` or `"filepath"` | The form a value must have. |
| `required` | boolean | `true` if the input needs a value. |
| `secret` | boolean | `true` if the value is a secret. |

## `[plugins.<name>]`

Plugins, by name: the skills of each, under the plugin's name as namespace; every one unless `skills` names those to take.

| Key | Type | Description |
| --- | --- | --- |
| `branch` | string | The Git branch to check out. |
| `exclude-skills` | array of string | Names of the plugin's skills to leave out. |
| `git` | string | A Git repository, an `https://` or `ssh://` URL. |
| `path` | string | A path relative to the project directory, or the directory a Git repository or an archive contributes. |
| `rev` | string | The Git commit to check out, in full. |
| `sha256` | string | The SHA-256 digest the download must have, in lowercase hexadecimal. |
| `skills` | array of string | Names of the plugin's skills to take, and no others; not with `exclude-skills`. |
| `tag` | string | The Git tag to check out. |
| `url` | string | An `https://` URL of a `.tar.gz`, `.tgz`, `.tar`, or `.zip` archive. |

One of `git`, `path`, or `url` is required.

## `[prompt]`

The task the agent starts with.

| Key | Type | Description |
| --- | --- | --- |
| `branch` | string | The Git branch to check out. |
| `git` | string | A Git repository, an `https://` or `ssh://` URL. |
| `path` | string | A path relative to the project directory, or the file a Git repository or an archive contributes. |
| `rev` | string | The Git commit to check out, in full. |
| `sha256` | string | The SHA-256 digest the download must have, in lowercase hexadecimal. |
| `tag` | string | The Git tag to check out. |
| `text` | string | Inline Markdown, instead of a source. |
| `url` | string | An `https://` URL of a file, or of a `.tar.gz`, `.tgz`, `.tar`, or `.zip` archive. |

One of `git`, `path`, `text`, or `url` is required.

## `[skills.<name>]`

The skills, by name: each a source that resolves to a directory in the Agent Skills format.

| Key | Type | Description |
| --- | --- | --- |
| `branch` | string | The Git branch to check out. |
| `git` | string | A Git repository, an `https://` or `ssh://` URL. |
| `path` | string | A path relative to the project directory, or the file or directory a Git repository or an archive contributes. |
| `rev` | string | The Git commit to check out, in full. |
| `sha256` | string | The SHA-256 digest the download must have, in lowercase hexadecimal. |
| `tag` | string | The Git tag to check out. |
| `url` | string | An `https://` URL of a file, or of a `.tar.gz`, `.tgz`, `.tar`, or `.zip` archive. |

One of `git`, `path`, or `url` is required.
