MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getResourceData

Function getResourceData

common/src/mcp/client.ts:140–146  ·  view source on GitHub ↗
(
  resource: TextResourceContents | BlobResourceContents,
)

Source from the content-addressed store, hash-verified

138}
139
140function getResourceData(
141 resource: TextResourceContents | BlobResourceContents,
142): string {
143 if ('text' in resource) return resource.text as string
144 if ('blob' in resource) return resource.blob as string
145 return ''
146}
147
148export async function callMCPTool(
149 clientId: string,

Callers 1

callMCPToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected