MCPcopy Index your code
hub / github.com/anomalyco/opencode / readResource

Method readResource

packages/opencode/test/mcp/lifecycle.test.ts:254–257  ·  view source on GitHub ↗
(params: { uri: string }, options?: { timeout?: number })

Source from the content-addressed store, hash-verified

252 }
253
254 async readResource(params: { uri: string }, options?: { timeout?: number }) {
255 if (this._state) this._state.readResourceTimeout = options?.timeout
256 return { contents: [{ uri: params.uri, text: "test" }] }
257 }
258
259 async close() {
260 if (this._state) this._state.closed = true

Callers 4

lifecycle.test.tsFile · 0.80
prompt.tsFile · 0.80
executeFunction · 0.80
index.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected