MCPcopy Create free account
hub / github.com/agent-tower/core / getStringField

Function getStringField

packages/server/src/mcp/server.ts:18–21  ·  view source on GitHub ↗
(value: Record<string, unknown>, field: string)

Source from the content-addressed store, hash-verified

16type McpRoomMessage = Record<string, unknown>;
17type McpTeamMemberSummary = { id: string; name?: string };
18
19function getStringField(value: Record<string, unknown>, field: string): string | undefined {
20 const raw = value[field];
21 return typeof raw === 'string' ? raw : undefined;
22}
23
24function formatMcpRoomMessageSender(

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected