MCPcopy
hub / github.com/ComposioHQ/composio / getToolkitBySlug

Function getToolkitBySlug

docs/lib/toolkit-data.ts:38–42  ·  view source on GitHub ↗
(slug: string)

Source from the content-addressed store, hash-verified

36}
37
38export async function getToolkitBySlug(slug: string): Promise<Toolkit | null> {
39 if (cached) return cached.bySlug.get(slug) ?? null;
40 const data = await readFile(TOOLKITS_PATH, 'utf-8');
41 return buildCache(parse(data)).bySlug.get(slug) ?? null;
42}
43
44export function getAllToolkitsSync(): Toolkit[] {
45 if (cached) return cached.list;

Callers 3

generateMetadataFunction · 0.90
ToolkitsPageFunction · 0.90
GETFunction · 0.90

Calls 4

readFileFunction · 0.85
buildCacheFunction · 0.70
parseFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…