Skip to content

put_mcp_config_text

PUT
/api/v1/config-mcp-settings
curl --request PUT \
--url https://example.com/api/v1/config-mcp-settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "enabled": true }'
Media typeapplication/json

Whether /mcp may hand a device configuration’s text to an AI client (ADR-210 stage 10 decision 85). Off by default. oxidized’s secret filter and Yagra’s own second pass can both miss a line, so switching this on is a person accepting that, not a setting Yagra assumes.

object
enabled
required

Off by default.

boolean
Examplegenerated
{
"enabled": true
}

Saved. When on, an MCP client holding manage-config can read a backed-up configuration’s text, its diffs and its unsaved comparison through get_node_config, with secrets blanked by oxidized and again by Yagra. Neither pass is complete, so a secret both miss reaches the client. Every read is audited

Media typeapplication/json

Whether /mcp may hand a device configuration’s text to an AI client (ADR-210 stage 10 decision 85). Off by default. oxidized’s secret filter and Yagra’s own second pass can both miss a line, so switching this on is a person accepting that, not a setting Yagra assumes.

object
enabled
required

Off by default.

boolean
Examplegenerated
{
"enabled": true
}

No valid bearer token

Media typeapplication/json

The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies undescribed — a client that has to guess the failure shape ends up parsing the success shape and reading undefined.

object
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

Role lacks ManageSystem, the caller is an API token (session_required), or the caller is restricted to folders (scope_unsupported)

Media typeapplication/json

The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies undescribed — a client that has to guess the failure shape ends up parsing the success shape and reading undefined.

object
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}