Agora

Config 1.x is a release candidate. npm's latest tag still installs 0.x, so install these docs' version from the rc tag:

npm i @adonis-agora/config@rc
node ace configure @adonis-agora/config

The same goes for every @adonis-agora/* package these docs install: add @rc, and where a page says node ace add, install with @rc first and then run node ace configure. On 0.x? Read the 0.x docs.

MCP tools

Read the configuration and change it from an agent, behind the console gate.

With @adonis-agora/agent/mcp_provider registered, the control plane adds its tools to the app's developer MCP endpoint (/mcp/agora). No app config: the provider registers them at boot, and each call is authorized by the console's authorize.

Reads (always listed)

Tool
config_list_scopesapps, environments and labels that hold something
config_list_entriesentries of a scope, with search, secret, reloadable, browser; { items, next }
config_get_entryone entry; a secret is masked unless the console may reveal it, and the reveal is audited
config_list_versionsimmutable versions, newest first; { items, next }
config_get_versionone version exactly as it was
config_diff_versionsadded/removed/changed keys between two versions
config_list_auditwho changed what and why, filtered by key / action

Actions (opt-in)

These are hidden and uncallable unless the app opts in on the dev endpoint:

Tool
config_set_entryvalue or vault reference, secret/reloadable/browser flags, reason
config_unset_entryremove an entry (destructive)
config_rollbackcopy a past version into a new one (destructive)
config/mcp.ts (the control plane)
devTools: {
  // Only these tools may run as actions; the rest of the endpoint stays read-only.
  actions: { config_set_entry: authorizeByToken({ token: env.get('MCP_TOKEN') }) },
}

The action vocabulary is the agent's: 'refuse' (default), 'execute', a list of lib ids or tool names, a map of authorizers, or a function. See the agent's docs for the full shape.

Audit and secrets

Every write records mcp:<caller id> as the actor, exactly like the console records its viewer and the CLI records cli:<os user>. A secret is returned only when the console's revealSecrets is on, and the read is written to the audit trail as a reveal.

The tools use the same ConfigAdmin service as the console and the commands: same validation, same versioning, same masking — a tool can never do more than the console it belongs to.

On this page

Partner

Your product as the official integration for Config, right here.

Become a partner →