put_mcp_config_text
const url = 'https://example.com/api/v1/config-mcp-settings';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"enabled":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/config-mcp-settings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "enabled": true }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”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
Off by default.
Examplegenerated
{ "enabled": true}Responses
Section titled “Responses”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
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
Off by default.
Examplegenerated
{ "enabled": true}No valid bearer token
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
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
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)
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
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}