MCPcopy
hub / github.com/danielmiessler/Fabric / get

Function get

web/src/lib/api/base.ts:61–65  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

59export function createStorageAPI<T extends StorageEntity>(entityType: string) {
60 return {
61 async get(name: string): Promise<T> {
62 const response = await api.fetch<T>(`/${entityType}/${name}`);
63 if (response.error) throw new Error(response.error);
64 return response.data as T;
65 },
66
67 async getNames(): Promise<string[]> {
68 const response = await api.fetch<string[]>(`/${entityType}/names`);

Callers 15

sendMessageFunction · 0.50
selectSessionFunction · 0.50
updateObsidianSettingsFunction · 0.50
resetObsidianSettingsFunction · 0.50
getObsidianFilePathFunction · 0.50
setSystemPromptFunction · 0.50
selectPatternFunction · 0.50
createNoteStoreFunction · 0.50
constructorMethod · 0.50
fetchStreamMethod · 0.50
createMessageStreamMethod · 0.50
processResponseMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected