Repository navigation
v0.5.94
Upgrading
- Run
kit:update plan|applyformcp(re-pinnedsha256:29d14952…750e→sha256:e35e2879…7ae0):Mcp/Authorize/Page.vuetakes the "Also allow" grant checkboxes below. Nothing to do for an app with no explicit tool: the fieldset renders only when there is a grant to offer.
Added
- Explicit grants for MCP tools (backported from main; docs/mcp-consent.md › Explicit grants).
#[Capability(…, scope: 'x', explicit: true, explains: '…')]marks a tool that a blanket acts-as-me connection never covers: it is listed and callable only under a connection whose consent named its scope, and a call anyway is refusedscope_required(403), never reported as unknown. The kit's consent page offers each such scope the person may hold as an unticked "Also allow" checkbox showing the scope's label andexplains; only the tick grants (the OAuthscopeparameter never does), an existing connection never gains one (skipped consent and refresh keep its scopes), and the approval's audit entry records the grants.scopemust be a registered token scope andexplainsis required; registration refuses otherwise. On the AI assistants page each grant has its own Remove action (DELETE …/connections/{id}/grants/{scope}, auditedworkspace.connection.grant_removed), leaving the connection and its token in place.Registry::explicitScopes(),AuthorizeViewModel::grants(),WorkspaceConnection::explicit()andremoveGrant()are new.composer test:mcp-explicit-grants(34 checks).
Fixed
- A narrow connection no longer sees tools it cannot call.
GatedByCapabilitylisted tools by capability and role ability only, so a connection whose scopes coveredsettings.readalone still saw the write tools and gotconnection_deniedon the call. Presence now also requires that the calling connection covers the ability the tool is admitted under, the sameWorkspaceConnection::covers()the call path applies, sotools/listexactly matches what is callable; the refusal codes for a call made anyway are unchanged (connection_denied, orscope_requiredfor an explicit tool). Covered bytest:mcp-explicit-grants.
What's Changed
- [0.5.x] Explicit grants for MCP tools; narrow connections list only callable tools (backport of #431) by @jaspertey in #437
- Release v0.5.94 by @jaspertey in #443
Full Changelog: v0.5.93...v0.5.94