MCPcopy Index your code
hub / github.com/callstack/agent-device / readMcpToolConfig

Function readMcpToolConfig

src/mcp/command-tools.ts:110–119  ·  view source on GitHub ↗
(input: unknown)

Source from the content-addressed store, hash-verified

108}
109
110function readMcpToolConfig(input: unknown): McpToolConfig {
111 if (!input || typeof input !== 'object' || Array.isArray(input)) {
112 return { client: {}, outputFormat: 'optimized' };
113 }
114 const record = input as Record<string, unknown>;
115 return {
116 client: readClientConfig(record),
117 outputFormat: readMcpOutputFormat(record.mcpOutputFormat),
118 };
119}
120
121function readClientConfig(record: Record<string, unknown>): AgentDeviceClientConfig {
122 const stateDir = record.stateDir;

Callers 1

Calls 2

readClientConfigFunction · 0.85
readMcpOutputFormatFunction · 0.85

Tested by

no test coverage detected