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

Function mcpResult

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

Source from the content-addressed store, hash-verified

14 console.log(JSON.stringify({ event: 'mcp.tool_call', tool, params }, null, 2));
15}
16function mcpResult(tool: string, payloadObj: unknown) {
17 if (!debug) return;
18 const response = { content: [
19 { type: 'text', text: JSON.stringify(payloadObj, null, 2) },
20 { type: 'json', json: payloadObj }
21 ] };
22 console.log(JSON.stringify({ event: 'mcp.tool_result', tool, response }, null, 2));
23}
24
25async function startDebuggedProcess(file: string): Promise<{ proc: ChildProcess, port: number }>{
26 const proc = spawn('node', ['--inspect-brk=0', file], {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected