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

Function extractInventory

packages/hosts/mcp/src/tool-server.ts:553–556  ·  view source on GitHub ↗
(description: string)

Source from the content-addressed store, hash-verified

551 * description (it runs from its header to the end), so the `skills` tool can
552 * re-use it without rebuilding the inventory from the executor. */
553const extractInventory = (description: string): string => {
554 const index = description.indexOf(INTEGRATION_INVENTORY_HEADER);
555 return index === -1 ? "" : description.slice(index).trimEnd();
556};
557
558const JsonObjectFromString = Schema.fromJsonString(Schema.Record(Schema.String, Schema.Unknown));
559const decodeJsonObjectString = Schema.decodeUnknownOption(JsonObjectFromString);

Callers 1

createExecutorMcpServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected