MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / parsePayload

Function parsePayload

tests/multi-project-routing.test.ts:154–156  ·  view source on GitHub ↗
(response: ToolCallResponse)

Source from the content-addressed store, hash-verified

152}
153
154function parsePayload(response: ToolCallResponse): Record<string, unknown> {
155 return JSON.parse(response.content[0]?.text ?? '{}') as Record<string, unknown>;
156}
157
158async function callTool(
159 handler: (request: unknown) => Promise<ToolCallResponse | ResourceReadResponse>,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected