MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / firstText

Function firstText

graph-ui/src/provider/rpc-transport.ts:138–146  ·  view source on GitHub ↗
(result: Record<string, unknown> | undefined)

Source from the content-addressed store, hash-verified

136}
137
138function firstText(result: Record<string, unknown> | undefined): string | undefined {
139 const content = result?.['content'];
140 if (!Array.isArray(content) || content.length === 0) {
141 return undefined;
142 }
143 const first = asRecord(content[0]);
144 const text = first?.['text'];
145 return typeof text === 'string' ? text : undefined;
146}
147
148/**
149 * Ruft ein Tool ueber POST /rpc und liefert das gepruefte MCP-Result.

Callers 1

callToolUnobservedFunction · 0.85

Calls 1

asRecordFunction · 0.70

Tested by

no test coverage detected