MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / updateProfile

Method updateProfile

src/extension/api.ts:533–551  ·  view source on GitHub ↗
(
		name: string,
		profile: ProviderSettings,
		activate: boolean = true,
	)

Source from the content-addressed store, hash-verified

531 }
532
533 public async updateProfile(
534 name: string,
535 profile: ProviderSettings,
536 activate: boolean = true,
537 ): Promise<string | undefined> {
538 const entry = this.getProfileEntry(name)
539
540 if (!entry) {
541 throw new Error(`Profile with name "${name}" does not exist`)
542 }
543
544 const id = await this.sidebarProvider.upsertProviderProfile(name, profile, activate)
545
546 if (!id) {
547 throw new Error(`Failed to update profile with name "${name}"`)
548 }
549
550 return id
551 }
552
553 public async upsertProfile(
554 name: string,

Callers

nothing calls this directly

Calls 2

getProfileEntryMethod · 0.95
upsertProviderProfileMethod · 0.80

Tested by

no test coverage detected