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

Method createProfile

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

Source from the content-addressed store, hash-verified

515 }
516
517 public async createProfile(name: string, profile?: ProviderSettings, activate: boolean = true) {
518 const entry = this.getProfileEntry(name)
519
520 if (entry) {
521 throw new Error(`Profile with name "${name}" already exists`)
522 }
523
524 const id = await this.sidebarProvider.upsertProviderProfile(name, profile ?? {}, activate)
525
526 if (!id) {
527 throw new Error(`Failed to create profile with name "${name}"`)
528 }
529
530 return id
531 }
532
533 public async updateProfile(
534 name: string,

Callers

nothing calls this directly

Calls 2

getProfileEntryMethod · 0.95
upsertProviderProfileMethod · 0.80

Tested by

no test coverage detected