MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / toolkitToResponse

Function toolkitToResponse

packages/plugins/toolkits/src/server.ts:197–204  ·  view source on GitHub ↗
(entry: { readonly owner: Owner; readonly data: ToolkitRecord })

Source from the content-addressed store, hash-verified

195const isPersonalDynamicToolId = (toolId: string): boolean => toolId.split(".")[1] === "user";
196
197const toolkitToResponse = (entry: { readonly owner: Owner; readonly data: ToolkitRecord }) => ({
198 id: entry.data.id,
199 owner: entry.owner,
200 slug: entry.data.slug,
201 name: entry.data.name,
202 createdAt: entry.data.createdAt,
203 updatedAt: entry.data.updatedAt,
204});
205
206const policyToResponse = (policy: ToolkitPolicyRecord) => ({
207 id: policy.id,

Callers 2

createFunction · 0.85
updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected