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

Function toolMatchId

packages/plugins/toolkits/src/page.tsx:156–157  ·  view source on GitHub ↗
(tool: ToolRow)

Source from the content-addressed store, hash-verified

154};
155
156const toolMatchId = (tool: ToolRow): string =>
157 tool.static ? String(tool.address) : String(tool.address).replace(/^tools\./, "");
158
159const toolCanAppearInToolkit = (toolkit: ToolkitResponse, tool: ToolRow): boolean =>
160 toolkit.owner === "user" || tool.static === true || tool.owner !== "user";

Callers 3

policyPrefixForToolFunction · 0.85
compareToolsFunction · 0.85
ToolkitWorkspaceFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected