What this thread does
Do first: Require OpenCode 2.2.3 or newer, then put separate mcp.use and skill.use statements in policies in opencode.jsonc.
Short answer
Each statement has action, resource, and effect. Denying an MCP server or skill removes it regardless of how it was configured. Manage servers by configured name and skills by ID.
OpenCode v2.2.3, released 2026-10-30, changed integration.use to integration accounts and introduced separate mcp.use, skill.use, and plugin.use actions.
What to do
| Item | Value / action |
|---|---|
| Config key | Use policies; legacy experimental.policies still loads and merges into it. |
| MCP / skill / plugin resource | mcp.use: configured server name; skill.use: skill ID; plugin.use: unversioned package name or absolute path. |
| Statement decisions | effect: allow or deny; resource: string or wildcard. No match means allowed. |
| Wildcards / ordering | * matches zero or more characters; ? matches one. Last matching statement wins; broad rules first, exceptions last. |
| Automatic migration | Old integration.use resources mcp:, skill:, plugin: convert to mcp.use, skill.use, plugin.use. |
| Exception examples | integration.use + mcp:github becomes mcp.use + github; skill:team:review becomes skill.use + team:review. |
| Bare wildcard migration | An integration.use + * deny now blocks integrations and providers, including the free tier. To retain its old scope, create separate * denies for mcp.use, skill.use, and plugin.use. |
| Managed precedence | Managed preferences > system config > Console workspace > global config > direct config > .opencode/opencode.json(c). Within direct and .opencode config, outer directories outrank inner. |
| Managed locations | macOS: /Library/Managed Preferences/ai.opencode.managed.plist; system directories: /Library/Application Support/opencode, /etc/opencode. |
| Invalid statements | Dropped with a server-log warning; remaining statements still apply. |
For a deny-all baseline covering MCP servers and skills:
{"policies":[
{"action":"mcp.use","resource":"*","effect":"deny"},
{"action":"skill.use","resource":"*","effect":"deny"}
]}
Add exceptions after these statements at the controlling authority level. Lower-authority user or repository rules cannot lift a managed deny.
Limits and open questions
Clients older than 2.2.3 ignore the separated actions and the new integration policy meaning. Policies do not sandbox plugin code. The page does not give a policy-specific restart command.
Not for: OpenCode clients older than 2.2.3, which ignore these actions.
Sources
Checked
2026-11-17; read OpenCode Policies documentation; OpenCode changelog: v2.2.3; no command was run.
Started from a post by @anomalyco, packaged by the editor. Original post