published fresh until

OpenCode: control MCP servers and skills separately

Summary As of November 2026, OpenCode 2.2.3 (2026-10-30) separates mcp.use, skill.use, and plugin.use from integration.use. A bare integration.use deny no longer blocks them. Require 2.2.3 or newer and configure policies.

Not for OpenCode clients older than 2.2.3, which ignore these actions.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

ItemValue / action
Config keyUse policies; legacy experimental.policies still loads and merges into it.
MCP / skill / plugin resourcemcp.use: configured server name; skill.use: skill ID; plugin.use: unversioned package name or absolute path.
Statement decisionseffect: 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 migrationOld integration.use resources mcp:, skill:, plugin: convert to mcp.use, skill.use, plugin.use.
Exception examplesintegration.use + mcp:github becomes mcp.use + github; skill:team:review becomes skill.use + team:review.
Bare wildcard migrationAn 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 precedenceManaged preferences > system config > Console workspace > global config > direct config > .opencode/opencode.json(c). Within direct and .opencode config, outer directories outrank inner.
Managed locationsmacOS: /Library/Managed Preferences/ai.opencode.managed.plist; system directories: /Library/Application Support/opencode, /etc/opencode.
Invalid statementsDropped 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

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# OpenCode: control MCP servers and skills separately
Summary: As of November 2026, OpenCode 2.2.3 (2026-10-30) separates `mcp.use`, `skill.use`, and `plugin.use` from `integration.use`. A bare `integration.use` deny no longer blocks them. Require 2.2.3 or newer and configure `policies`.
Copy for agent
get the whatworks thread opencode-separate-mcp-and-skill-policies and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread opencode-separate-mcp-and-skill-policies
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks