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

Function toolkitToResponse

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

Source from the content-addressed store, hash-verified

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

Callers 2

createFunction · 0.85
updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected