Task MCP servers
The workspace's MCP servers live in the plugin's .mcp.json, in the standard
mcpServers format (see Structure). With
nothing declared, the execution receives the whole file. With mcp_servers in
the task: block, the task picks only the ones it uses and says which are
required:
{
"mcpServers": {
"kobana-banking-docs": { "type": "http", "url": "https://docs.banking.kobana.com.br/mcp" },
"context7": { "command": "npx", "args": ["-y", "@upstash/context7-mcp@1.0.0"] }
}
}
task:
# ...
mcp_servers:
- kobana-banking-docs # required (the default)
- name: context7
required: false # optional
The .mcp.json is still the standard file, which works in any MCP-compatible
tool. What only Kadu understands (required) stays in the frontmatter.
| Declaration | What the execution receives |
|---|---|
No mcp_servers | The whole .mcp.json, no server required |
mcp_servers: [] | No MCP server |
| List of names | Only the listed servers |
A name that is not in .mcp.json is looked up, in this order, in the
organization's MCP servers (registered in
Settings → MCP servers, through the API or
through Kadu's MCP) and in the MCP server catalog maintained by Kobana. That
way the task uses a server without copying it into the repository. The
organization's servers only enter the execution when the task lists them:
without mcp_servers, only .mcp.json applies.
Remote and local​
| Type | In .mcp.json | Rule |
|---|---|---|
| Remote | "type": "http" or "sse", with a url over https | Free |
| Local (stdio) | "command" and "args" | Only if the command and args are identical to those of a catalog entry, or if the organization has Kobana's local server allowance. Also applies to a local server registered by the organization |
A local server runs a program on the execution's machine. That is why it must
be known: copy the catalog block as is, with the pinned version (@1.0.0,
never @latest). Any difference in command or args refuses the server.
The env can change freely: that is where the task's credentials go.
To run a server that ships in the plugin itself
("args": ["${CLAUDE_PLUGIN_ROOT}/servers/meu-servidor.js"]), ask Kobana for
the local server allowance for the organization.
:::note Goose
An sse server does not work in tasks that run on Goose: it is left out of
those executions.
:::
Required or optional​
| Refused (unknown name, local outside the catalog) | Does not respond | |
|---|---|---|
Required (required: true, the default) | The execution fails before the skill starts, with the reason | Before the skill starts, Kadu connects to each required server; one that does not respond makes the execution fail |
Optional (required: false) | Left out, with a warning on the timeline | Not checked: the skill goes on without it if the connection fails |
The execution's timeline shows the "MCP servers" step with each server, its
origin (plugin, organization or catalog) and the result of the check, in the
execution's language (see locale).
Credentials​
A credential goes in as ${VAR} in headers, env, url or args, and each
variable must be in the task's required_secrets (see
Secrets). A variable outside it arrives empty: the sync
and the execution warn.
A server that requires a browser login (OAuth) is not supported yet: use a server that accepts a token in the header.
Rules​
| Rule | Detail |
|---|---|
| Limit | At most 20 servers per task |
| Name | Letters, numbers, - and _, up to 64 characters; no repeats |
| Format | List of names or of { name, required }; another key or another type discards the whole list, with a warning |
| Absent | mcp_servers left out of the frontmatter keeps what was stored |
| Branch | The decision applies to the .mcp.json on the branch of the execution's environment; the sync warns beforehand, looking at the default branch |