MCPcopy Create free account
hub / github.com/anomalyco/opencode / McpRequest

Function McpRequest

packages/core/src/tool/websearch.ts:137–143  ·  view source on GitHub ↗
(args: Schema.Struct<F>)

Source from the content-addressed store, hash-verified

135 session_id: Schema.String,
136})
137const McpRequest = <F extends Schema.Struct.Fields>(args: Schema.Struct<F>) =>
138 Schema.Struct({
139 jsonrpc: Schema.Literal("2.0"),
140 id: Schema.Literal(1),
141 method: Schema.Literal("tools/call"),
142 params: Schema.Struct({ name: Schema.String, arguments: args }),
143 })
144
145const exaUrl = (apiKey: string | undefined) => {
146 if (!apiKey) return EXA_URL

Callers 1

callMcpFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected