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

Function parseTextContent

tests/mcp-e2e.test.ts:7–13  ·  view source on GitHub ↗
(callToolResult: any)

Source from the content-addressed store, hash-verified

5import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';
6
7function parseTextContent(callToolResult: any) {
8 const block = (callToolResult.content || []).find((c: any) => c.type === 'text');
9 assert.ok(block, 'expected text content block');
10 const txt = block.text || '';
11 const trimmed = txt.trim();
12 return JSON.parse(trimmed);
13}
14
15test('MCP e2e: start, inspect_scopes, get_object_properties (text mode)', { timeout: 110000 }, async () => {
16 const transport = new StdioClientTransport({ command: 'node', args: ['dist/src/index.js'], stderr: 'pipe' });

Callers 1

mcp-e2e.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected