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

Function resp

mcp/streamable_test.go:772–778  ·  view source on GitHub ↗
(id int64, result any, err error)

Source from the content-addressed store, hash-verified

770}
771
772func resp(id int64, result any, err error) *jsonrpc.Response {
773 return &jsonrpc.Response{
774 ID: jsonrpc2.Int64ID(id),
775 Result: mustMarshal(result),
776 Error: err,
777 }
778}
779
780func TestStreamableServerTransport(t *testing.T) {
781 // This test checks detailed behavior of the streamable server transport, by

Calls 2

Int64IDFunction · 0.92
mustMarshalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…