MCP server descriptor
An MCP server descriptor describes one MCP server the way the curated
connectors are described. monoceros add-mcp-server <name> <server> and
init --with-mcp-servers=<server> write only its name and options into the
workbench yml. Every monoceros apply reads the rest from the file and
registers the server with every agent in the workbench.
~/.monoceros/templates/mcp-servers/<server>.ymlAn MCP server has no versions: a change to the file reaches every workbench
that names the server on its next apply. A descriptor with the id of a
curated connector, context7 say, replaces it for you.
Fields
Section titled “Fields”| Field | Required | What it does | Example |
|---|---|---|---|
id |
yes | The server’s name. Must equal the file name. Lowercase letters, digits and -. |
acme-wiki |
category |
yes | Always mcp-server. |
mcp-server |
displayName |
yes | Shown in the comment above the entry in the workbench yml. | Acme Wiki |
description |
yes | One line on what the server gives the agent. Shown in that comment and in list-components. |
'Search and read pages of the Acme engineering wiki.' |
mcpServer |
yes | How to reach the server, see below. | |
options |
no | Values the builder sets per workbench, such as a token, see below. | |
briefing |
no | Lines for the agent briefing, see below. |
mcpServer
Section titled “mcpServer”The string fields take ${<option>} tokens, which apply fills from the
options. Every token must name an option of this descriptor.
| Field | Transport | What it does | Example |
|---|---|---|---|
transport |
all, required | stdio runs a process in the container. http and sse reach a remote endpoint. |
http |
url |
http, sse, required |
The endpoint. | https://wiki.acme.example/mcp |
headers |
http, sse |
Request headers. A bearer token goes here. | Authorization: 'Bearer ${token}' |
command |
stdio, required |
The executable to run in the container. | npx |
args |
stdio |
Arguments after command. |
[-y, '@acme/wiki-mcp'] |
env |
stdio |
Environment of the server process. | WIKI_TOKEN: ${token} |
auth |
all | oauth for a server the builder signs in to inside the container. An option that is empty then drops its header or env key instead of stopping apply. |
oauth |
A field that belongs to the other transport is an error.
options
Section titled “options”| Field | Required | What it does | Example |
|---|---|---|---|
type |
yes | string, boolean or number. |
string |
default |
no | The value when the yml sets none. | '' |
description |
no | What the value is and where to get it. | 'Personal access token for wiki.acme.example.' |
surface |
no | env: the yml gets ${<SERVER>_<OPTION>} and <name>.env the empty key, as in ACME_WIKI_TOKEN. yml: the yml gets the default as a value. silent (the default): not written, the default applies. |
env |
A credential is always an env option. apply stops on an empty one and
names the key, unless the server has auth: oauth.
briefing
Section titled “briefing”A list of lines for the agent in the workbench, read at every apply.
| Field | Required | What it does | Example |
|---|---|---|---|
text |
yes | The line. Say when the agent should use the server. | 'Search the wiki before you guess how a system works.' |
whenOption |
no | An option of this descriptor. The line appears only when it is truthy. | token |
Example
Section titled “Example”Your team searches its engineering wiki through an MCP server at
https://wiki.acme.example/mcp, with a personal token per builder. You want to
add it to a workbench by name. Save this as
~/.monoceros/templates/mcp-servers/acme-wiki.yml:
id: acme-wikicategory: mcp-serverdisplayName: Acme Wikidescription: 'Search and read pages of the Acme engineering wiki.'options: token: type: string default: '' description: 'Personal access token for wiki.acme.example, from your wiki profile.' surface: envmcpServer: transport: http url: https://wiki.acme.example/mcp headers: Authorization: 'Bearer ${token}'briefing: - text: 'The Acme engineering wiki: architecture decisions, runbooks, onboarding. Search it before you guess how an internal system works.'Check that Monoceros reads it. It shows up marked (local):
monoceros list-componentsAdd it to a workbench (acme is a sample workbench name):
monoceros add-mcp-server acme acme-wikiThe workbench yml gets the name and token: ${ACME_WIKI_TOKEN}, and
acme.env gets the empty ACME_WIKI_TOKEN to fill in before the next apply.
Behavior
Section titled “Behavior”- Only the name is copied. The url, the headers and the briefing stay in
the file and are read at every
apply. - A missing file is a hint. On a machine without the file,
applyleaves the server out, names the file, and builds the rest of the workbench. - Unknown options fail. An option in the yml that the descriptor does not
declare stops
apply. - A broken file stops
init,add-mcp-server,applyandlist-componentswith its path.
See also
Section titled “See also”- MCP servers - keeping your own servers, transports and sign-in.
- Reuse and share your setup - keep your own files, alone or as a team.
- The curated descriptors, for example context7.