Skillquality 0.47

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.

Price
free
Protocol
skill
Verified
no

What it does

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.

Capabilities

skillsource-ychampionskill-plugin-only-agent-surface-gatingtopic-agent-skillstopic-ai-agentstopic-clitopic-coding-agentstopic-context-engineeringtopic-developer-toolstopic-mcptopic-multi-agenttopic-terminal-ui

Install

Quality

0.47/ 1.00

deterministic score 0.47 from registry signals: · indexed on github topic:agent-skills · 34 github stars · SKILL.md body (1,696 chars)

Provenance

Indexed fromgithub
Enriched2026-04-22 00:56:53Z · deterministic:skill-github:v1 · v1
First seen2026-04-18
Last seen2026-04-22

Agent access