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

Function soleConnectedToolName

packages/core/execution/src/engine.ts:149–152  ·  view source on GitHub ↗
(toolPaths: readonly string[] | undefined)

Source from the content-addressed store, hash-verified

147 : value;
148
149const soleConnectedToolName = (toolPaths: readonly string[] | undefined): string | undefined => {
150 const names = [...new Set(toolPaths ?? [])];
151 return names.length === 1 ? names[0] : undefined;
152};
153
154export const formatExecuteResult = (
155 result: ExecuteResult,

Callers 1

formatExecuteResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected