Skip to main content

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:

finance/.mcp.json
{
"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.

DeclarationWhat the execution receives
No mcp_serversThe whole .mcp.json, no server required
mcp_servers: []No MCP server
List of namesOnly 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​

TypeIn .mcp.jsonRule
Remote"type": "http" or "sse", with a url over httpsFree
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 reasonBefore 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 timelineNot 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​

RuleDetail
LimitAt most 20 servers per task
NameLetters, numbers, - and _, up to 64 characters; no repeats
FormatList of names or of { name, required }; another key or another type discards the whole list, with a warning
Absentmcp_servers left out of the frontmatter keeps what was stored
BranchThe decision applies to the .mcp.json on the branch of the execution's environment; the sync warns beforehand, looking at the default branch