MCPcopy
hub / github.com/claude-code-best/claude-code / getGcpCommandsSources

Function getGcpCommandsSources

src/components/TrustDialog/utils.ts:166–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164 * Returns an array of file paths that have gcpAuthRefresh.
165 */
166export function getGcpCommandsSources(): string[] {
167 const sources: string[] = []
168
169 const projectSettings = getSettingsForSource('projectSettings')
170 if (hasGcpCommands(projectSettings)) {
171 sources.push('.claude/settings.json')
172 }
173
174 const localSettings = getSettingsForSource('localSettings')
175 if (hasGcpCommands(localSettings)) {
176 sources.push('.claude/settings.local.json')
177 }
178
179 return sources
180}
181
182/**
183 * Check if settings have dangerous environment variables configured.

Callers 1

TrustDialogFunction · 0.85

Calls 3

getSettingsForSourceFunction · 0.85
hasGcpCommandsFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected