feat(32.2-01): admin consent endpoint for administrator-only MCP grants
- pact: MCPAdminConsent provider interface, MCPAdminConsentRequest,
MCPAdminConsentDecision, ErrMCPConsentNotFound, ErrMCPConsentNoScopes
- cabana: GET/POST {api}/mcp/consent/{request}, interactive-only, scope
policy of personal tokens (requested, catalog, owned; * collapses)
- cabana: TokenScopeNames and TokenScopeLabels export the token-scope catalog
- swag views and annotations; admin.json and schema.d.ts regenerated so the
contract and conformance inventories stay green
- phrasebook keys mcp_connect.request_not_found and no_grantable_scopes
This commit is contained in:
@@ -348,6 +348,10 @@ func (s *service) mount(r pact.Router) {
|
||||
// Sections plugins contribute to My account (pact.HasAccountContributions).
|
||||
g.Get("/account/contributions", interactiveOnly(s.accountContributionsList))
|
||||
g.Post("/account/contributions/{name}/actions/{action}", interactiveOnly(requireAjax(s.accountContributionAction)))
|
||||
// Consent of administrator-only MCP grants, served for the
|
||||
// published pact.MCPAdminConsent (404 when none is published).
|
||||
g.Get("/mcp/consent/{request}", interactiveOnly(s.mcpConsentShow))
|
||||
g.Post("/mcp/consent/{request}", interactiveOnly(requireAjax(s.mcpConsentDecide)))
|
||||
g.Get("/navigation", s.navigation)
|
||||
// Plugin field types (pact.HasFormFieldTypes): the SPA loads their
|
||||
// scripts and styles once after sign-in.
|
||||
|
||||
Reference in New Issue
Block a user