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

Function McpRequest

packages/opencode/src/tool/mcp-websearch.ts:58–67  ·  view source on GitHub ↗
(args: Schema.Struct<F>)

Source from the content-addressed store, hash-verified

56})
57
58const McpRequest = <F extends Schema.Struct.Fields>(args: Schema.Struct<F>) =>
59 Schema.Struct({
60 jsonrpc: Schema.Literal("2.0"),
61 id: Schema.Literal(1),
62 method: Schema.Literal("tools/call"),
63 params: Schema.Struct({
64 name: Schema.String,
65 arguments: args,
66 }),
67 })
68
69export const call = <F extends Schema.Struct.Fields>(
70 http: HttpClient.HttpClient,

Callers 1

callFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected