MCPcopy Create free account
hub / github.com/modelcontextprotocol/go-sdk / newCall

Function newCall

internal/jsonrpc2/wire_test.go:89–95  ·  view source on GitHub ↗
(id any, method string, params any)

Source from the content-addressed store, hash-verified

87}
88
89func newCall(id any, method string, params any) jsonrpc2.Message {
90 msg, err := jsonrpc2.NewCall(newID(id), method, params)
91 if err != nil {
92 panic(err)
93 }
94 return msg
95}
96
97func newResponse(id any, result any, rerr error) jsonrpc2.Message {
98 msg, err := jsonrpc2.NewResponse(newID(id), result, rerr)

Callers 1

TestWireMessageFunction · 0.85

Calls 2

NewCallFunction · 0.92
newIDFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…