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

Function newClientRequest

mcp/client.go:962–964  ·  view source on GitHub ↗
(cs *ClientSession, params P)

Source from the content-addressed store, hash-verified

960}
961
962func newClientRequest[P Params](cs *ClientSession, params P) *ClientRequest[P] {
963 return &ClientRequest[P]{Session: cs, Params: params}
964}
965
966// Ping makes an MCP "ping" request to the server.
967func (cs *ClientSession) Ping(ctx context.Context, params *PingParams) error {

Callers 14

urlElicitationMiddlewareFunction · 0.85
PingMethod · 0.85
ListPromptsMethod · 0.85
GetPromptMethod · 0.85
ListToolsMethod · 0.85
CallToolMethod · 0.85
SetLoggingLevelMethod · 0.85
ListResourcesMethod · 0.85
ListResourceTemplatesMethod · 0.85
ReadResourceMethod · 0.85
CompleteMethod · 0.85
SubscribeMethod · 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…