Set what a connected coding agent may do
const url = 'http://localhost:11044/api/v1/config/mcp-mode';const options = { method: 'PUT', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>', 'Content-Type': 'application/json'}, body: '{"mode":"ASSISTANT"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:11044/api/v1/config/mcp-mode \ --header 'Content-Type: application/json' \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>' \ --data '{ "mode": "ASSISTANT" }'Body: {“mode”: “ASSISTANT”|“DEVELOPER”}. Persisted to config.yml and live IMMEDIATELY — the gate is read on every call, so an already-connected client simply retries.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”mode: ASSISTANT or DEVELOPER, trimmed and matched case-insensitively. Persisted to config.yml and read on every MCP call, so it applies without a reconnect; a missing or unrecognised mode answers 400
The mode a connected coding agent runs under
object
ASSISTANT or DEVELOPER
Responses
Section titled “Responses”Mode updated
The coding-agent mode was changed, and is live immediately
object
The mode now in force
Example
DEVELOPERAlways false: the gate is read on every call, so an already-connected client simply retries
Always updated
Example
updatedThe mode is not one the gate offers. An unrecognised mode is a client bug, so it is refused rather than silently resolved to a default
A refusal from the world administration surface: what went wrong, and the word error so a client reading the body need not consult the status code
object
What was refused and why, written to be shown. Names the offending value where there is one — the unknown mode, the out-of-range threshold, the invalid cron expression
Always error. Present because the map this replaces carried it and a consumer may branch on it
Example
error
