MCPcopy Create free account
hub / github.com/bytebase/dbhub / parseToolResponse

Function parseToolResponse

src/tools/__tests__/execute-sql.test.ts:31–33  ·  view source on GitHub ↗
(response: any)

Source from the content-addressed store, hash-verified

29
30// Helper function to parse tool response
31const parseToolResponse = (response: any) => {
32 return JSON.parse(response.content[0].text);
33};
34
35describe('execute-sql tool', () => {
36 let mockConnector: Connector;

Callers 1

Calls 1

parseMethod · 0.65

Tested by

no test coverage detected