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

Function parse

docs/lib/meta-tools-data.ts:55–63  ·  view source on GitHub ↗
(data: string)

Source from the content-addressed store, hash-verified

53}
54
55function parse(data: string): MetaTool[] {
56 const tools = JSON.parse(data) as MetaTool[];
57
58 if (!Array.isArray(tools)) {
59 throw new Error('meta-tools.json must contain an array');
60 }
61
62 return tools.map(applyOverride);
63}
64
65export async function getAllMetaTools(): Promise<MetaTool[]> {
66 if (cached) return cached.list;

Callers 2

getAllMetaToolsFunction · 0.70
getMetaToolBySlugFunction · 0.70

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…