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

Function serverRequestFor

mcp/shared.go:520–522  ·  view source on GitHub ↗
(s *ServerSession, p P)

Source from the content-addressed store, hash-verified

518func (r *ServerRequest[P]) GetExtra() *RequestExtra { return r.Extra }
519
520func serverRequestFor[P Params](s *ServerSession, p P) *ServerRequest[P] {
521 return &ServerRequest[P]{Session: s, Params: p}
522}
523
524func clientRequestFor[P Params](s *ClientSession, p P) *ClientRequest[P] {
525 return &ClientRequest[P]{Session: s, Params: p}

Callers 2

initializedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…