agentsclimarketplace

Plugin only agent surface gating

Skill ychampion/cskill-agents/skills/plugin-only-agent-surface-gating

Skip agent-declared MCP servers when strict plugin-only mode is active unless the agent is admin-trusted, keeping the session secure.From its SKILL.md

Install
npx -y skills add ychampion/cskill-agents --skill plugin-only-agent-surface-gating

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.9 KB, 315 tokens by cl100k_base, as published. Nobody here has run it

SKILL: Plugin-Only Agent Surface Gating

Domain: permission-gating Trigger: Apply this when an agent tries to extend its MCP surface while the session enforces plugin-only MCP access. Source Pattern: Distilled from reviewed agent trust-boundary and plugin-only surface-gating implementations.

Core Method

Before connecting any agent-specific MCP servers, check whether the session is locked to plugin-only extension mode. If it is, allow the extra MCP connections only for trusted agent definitions such as built-ins or approved plugins. Untrusted or user-controlled agent definitions should continue without creating new clients, while logging the gating decision clearly. This prevents policy bypasses without breaking trusted packaged agents.

Key Rules

  • Check the plugin-only policy before any MCP initialization begins.
  • Treat approved built-in or packaged agents as trusted, so their declared MCP integrations remain honored.
  • Log a warning when skipping servers so telemetry captures the change in behavior.
  • Always return the parent clients and an empty cleanup callback when gating is active to avoid downstream failures.

Example Application

When running in a highly regulated environment, reuse this heuristic before initializing agent MCP servers so only pre-approved agents can expand the MCP surface and user scripts cannot sneak new servers in.

Anti-Patterns (What NOT to do)

  • Don’t let user-specified agents create external MCP connections while plugin-only mode is enabled; that defeats the security setting.
  • Don’t apply the gate uniformly without checking admin trust; built-in agents still need their MCP servers even when plugin-only is true.

What ships with it: 1 file

885 B alongside SKILL.md

Keep looking

Skills are one crate of 326,512. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.