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

Function toMetadata

packages/core/api/src/handlers/tools.ts:9–21  ·  view source on GitHub ↗
(t: Tool)

Source from the content-addressed store, hash-verified

7import { capture } from "@executor-js/api";
8
9const toMetadata = (t: Tool) => ({
10 address: t.address,
11 owner: t.owner,
12 integration: t.integration,
13 connection: t.connection,
14 name: t.name,
15 pluginId: t.pluginId,
16 description: t.description,
17 mayElicit: t.annotations?.mayElicit,
18 requiresApproval: t.annotations?.requiresApproval,
19 approvalDescription: t.annotations?.approvalDescription,
20 static: t.static,
21});
22
23export const ToolsHandlers = HttpApiBuilder.group(ExecutorApi, "tools", (handlers) =>
24 handlers

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected