MCPcopy Create free account
hub / github.com/ShipSecAI/studio / buildRequestedScopes

Function buildRequestedScopes

frontend/src/pages/IntegrationsManager.tsx:143–147  ·  view source on GitHub ↗
(provider: IntegrationProvider)

Source from the content-addressed store, hash-verified

141 };
142
143 const buildRequestedScopes = (provider: IntegrationProvider): string[] => {
144 const baseScopes = provider.defaultScopes ?? [];
145 const extraScopes = parseAdditionalScopes(customScopes[provider.id]);
146 return Array.from(new Set([...baseScopes, ...extraScopes]));
147 };
148
149 const handleConnect = async (provider: IntegrationProvider) => {
150 resetError();

Callers 2

handleConnectFunction · 0.85
IntegrationsManagerFunction · 0.85

Calls 2

parseAdditionalScopesFunction · 0.85
fromMethod · 0.80

Tested by

no test coverage detected