MCPcopy
hub / github.com/infinitered/reactotron / json

Function json

lib/reactotron-mcp/src/resources.ts:76–84  ·  view source on GitHub ↗
(uri: URL, data: unknown, guidance?: string)

Source from the content-addressed store, hash-verified

74}
75
76function json(uri: URL, data: unknown, guidance?: string) {
77 return {
78 contents: [{
79 uri: uri.href,
80 mimeType: "application/json" as const,
81 text: safeSerialize(data, MAX_RESPONSE_CHARS, guidance),
82 }],
83 }
84}
85
86export function registerResources(
87 mcp: McpServer,

Callers 1

registerResourcesFunction · 0.85

Calls 1

safeSerializeFunction · 0.90

Tested by

no test coverage detected