Configuration¶
The options and their defaults, generated from capabilities.options.
| Option | Type | Default | Description |
|---|---|---|---|
access | all | ask-changes | read-only | "all" | How much the plugin's methods and Metaview's pass-through tools may do. |
accounts | object | — | One profile per account alias; each alias has its own Metaview MCP server and sign-in. |
allowUntestedHost | boolean | false | Start outside the tested OpenCode range. |
Configure two accounts¶
accessis the ceiling.allruns every read and every Metaview tool,ask-changesasks before a non-read, andread-onlyrefuses one. It applies to the plugin's methods and to Metaview's pass-through tools.accountsis one profile per alias. Metaview decides the workspace at sign-in, so a profile has no fields; the alias is the name the MCP server and the permission resource use.allowUntestedHoststarts the plugin outside>=2.4.1 <2.5.0. Leave itfalse: the plugin refuses an untested host withHOST_UNTESTEDand a next step.
Narrow one tool¶
A rule in an agent's own permissions wins for one action. Metaview's tools are permitted per alias, as metaview_<tool> for the first account and metaview-<alias>_<tool> for the others. The plugin's own methods are metaview.<method>.
{
"permissions": [
{ "action": "metaview.events_list", "resource": "*", "effect": "deny" },
{ "action": "metaview-work_create_snippet", "resource": "*", "effect": "ask" }
]
}
Replace either action with the method or tool from the capabilities table. A rule that names no real action changes nothing.