MCPcopy Create free account
hub / github.com/ScriptedAlchemy/devtools-debugger-mcp / mcpLogResult

Function mcpLogResult

tests/node-debug.test.ts:74–81  ·  view source on GitHub ↗
(tool: string, payloadObj: unknown)

Source from the content-addressed store, hash-verified

72 console.log(JSON.stringify({ event: 'mcp.tool_call', tool, params }, null, 2));
73}
74function mcpLogResult(tool: string, payloadObj: unknown) {
75 if (!debug) return;
76 const response = { content: [
77 { type: 'text', text: JSON.stringify(payloadObj, null, 2) },
78 { type: 'json', json: payloadObj }
79 ] };
80 console.log(JSON.stringify({ event: 'mcp.tool_result', tool, response }, null, 2));
81}
82
83test('debugger hits breakpoint', { timeout: 30000 }, async () => {
84 const { proc, port } = await startDebuggedProcess();

Callers 1

node-debug.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected