sentry-mcp icon indicating copy to clipboard operation
sentry-mcp copied to clipboard

Rename MCP skills to toolsets and support finer-grained tool access controls

Open dcramer opened this issue 6 months ago • 2 comments

Summary

Rename the current skill-based MCP authorization/tool exposure model to "toolsets" and extend it with more granular controls for which tools are exposed.

Evidence

  • The repository currently presents MCP capability groups as "skills" in code, docs, CLI flags, environment variables, and the OAuth approval UI.
  • packages/mcp-core/src/skills.ts defines the current skill registry: inspect, seer, docs, triage, and project-management.
  • packages/mcp-core/src/server.ts filters registered tools from context.grantedSkills.
  • The stdio transport supports coarse controls via --skills, MCP_SKILLS, --disable-skills, and MCP_DISABLE_SKILLS.
  • The remote OAuth approval dialog renders selectable skills from skillDefinitions.
  • Validation performed: inspected the current skills implementation, docs, CLI configuration, OAuth approval UI, and duplicate-search candidates. No runtime tests were run because this is a feature/design request.

Impact

Users and maintainers who configure MCP permissions currently interact with "skills" terminology and coarse-grained bundles. Renaming them to "toolsets" may better match common MCP terminology, while finer-grained controls could reduce unnecessary tool exposure and token overhead.

Next Steps

  • Decide the desired public terminology and migration path from "skills" to "toolsets".
  • Define the granularity model: named toolsets only, per-tool allow/deny lists, or both.
  • Update core types, generated definitions, OAuth approval UI, stdio flags/env vars, docs, and tests consistently.
  • Preserve backward compatibility for existing skills/grantedSkills tokens or configuration where needed.

Original Report

Original issue text

Original Title

Rename skill-based permissions to toolsets and add more granular controls

Original Body

No body provided.

dcramer avatar May 08 '26 19:05 dcramer

@dcramer the toolsets direction makes sense, especially if it can support both coarse OAuth consent and finer runtime exposure.

One boundary I would keep explicit: toolset membership answers “what can this credential expose?”, while runtime policy answers “should this specific call run now?” For example, project-management might be granted, but a specific mutating issue/project action may still require approval depending on actor, org/project, args, and environment.

For audit/debugging, stable tool ids + required toolset/scope + policy decision are very useful. Agent_Sudo has been exploring this split as PolicyDecision/AuditRecord semantics for MCP calls: https://github.com/Kisyntra/Agent_Sudo

Ram9199 avatar Jun 01 '26 03:06 Ram9199

I like "toolsets" as the public term, but I would keep toolset exposure separate from runtime authorization.

The split I would preserve is:

  • OAuth consent: which toolsets/scopes this credential may expose
  • discovery filtering: which tools appear in tools/list
  • invocation authorization: whether this exact call is allowed now
  • audit receipt: what decision was made and what happened

Finer-grained controls can then support both coarse bundles and per-tool overrides without making tools/list the only security boundary. A tool may be visible because the user granted the project-management toolset, but a mutating project action can still require a live policy decision based on actor, org/project, args, environment, and risk class.

Useful metadata fields:

  • stable tool id
  • toolset id
  • required scope
  • risk class
  • resource or org/project scope
  • policy version
  • decision id
  • args digest for executed calls

Useful regressions: removing a toolset hides its tools from discovery; a cached listing cannot authorize a call after policy changes; per-tool deny overrides a broader toolset grant; and audit can answer both "why was this tool visible?" and "why was this invocation allowed?"

rpelevin avatar Jun 06 '26 11:06 rpelevin