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

Function toolkitToResponse

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

Source from the content-addressed store, hash-verified

240const isPersonalDynamicToolId = (toolId: string): boolean => toolId.split(".")[1] === "user";
241
242const toolkitToResponse = (entry: { readonly owner: Owner; readonly data: ToolkitRecord }) => ({
243 id: entry.data.id,
244 owner: entry.owner,
245 slug: entry.data.slug,
246 name: entry.data.name,
247 createdAt: entry.data.createdAt,
248 updatedAt: entry.data.updatedAt,
249});
250
251const policyToResponse = (policy: ToolkitPolicyRecord) => ({
252 id: policy.id,

Callers 2

createFunction · 0.85
updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected