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

Function toolDescriptor

packages/plugins/apps/src/pipeline/publish.ts:123–138  ·  view source on GitHub ↗
(input: {
  readonly collected: CollectedTool;
  readonly sourcePath: string;
  readonly bundleKey: string;
  readonly source: ModuleSourceRef;
})

Source from the content-addressed store, hash-verified

121 });
122
123const toolDescriptor = (input: {
124 readonly collected: CollectedTool;
125 readonly sourcePath: string;
126 readonly bundleKey: string;
127 readonly source: ModuleSourceRef;
128}): ToolDescriptor => ({
129 name: input.collected.toolName,
130 sourcePath: input.sourcePath,
131 bundleKey: input.bundleKey,
132 source: input.source,
133 description: input.collected.description,
134 integrations: input.collected.integrations,
135 inputSchema: input.collected.inputSchema,
136 outputSchema: input.collected.outputSchema,
137 annotations: input.collected.annotations,
138});
139
140export const publish = (
141 deps: PublishDeps,

Callers 1

publishFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected