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

Function newNotification

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

Source from the content-addressed store, hash-verified

64}
65
66func newNotification(method string, params any) jsonrpc2.Message {
67 msg, err := jsonrpc2.NewNotification(method, params)
68 if err != nil {
69 panic(err)
70 }
71 return msg
72}
73
74func newID(id any) jsonrpc2.ID {
75 switch v := id.(type) {

Callers 1

TestWireMessageFunction · 0.85

Calls 1

NewNotificationFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…