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

Function decodePath

packages/hosts/mcp/src/tool-call-code.ts:50–51  ·  view source on GitHub ↗
(serialized: string)

Source from the content-addressed store, hash-verified

48const decodeRole = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.String));
49
50const decodePath = (serialized: string): readonly string[] =>
51 Array.from(serialized.matchAll(PATH_SEGMENT_MATCHER), (match) => match[1] ?? match[2] ?? "");
52
53export type ParsedToolCall = {
54 /** The path segments under `tools`, e.g. `["github", "issues", "create"]`.

Callers 1

parseToolCallCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected