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

Method Ping

mcp/shared.go:583–583  ·  view source on GitHub ↗
(ctx context.Context, params *PingParams)

Source from the content-addressed store, hash-verified

581// keepaliveSession represents a session that supports keepalive functionality.
582type keepaliveSession interface {
583 Ping(ctx context.Context, params *PingParams) error
584 Close() error
585}
586

Callers 8

sayHiFunction · 0.65
TestEndToEndFunction · 0.65
TestStreamableStatelessFunction · 0.65
startKeepaliveFunction · 0.65
TestSSEServerFunction · 0.65
pingingToolFunction · 0.65

Implementers 2

ServerSessionmcp/server.go
ClientSessionmcp/client.go

Calls

no outgoing calls

Tested by 6

sayHiFunction · 0.52
TestEndToEndFunction · 0.52
TestStreamableStatelessFunction · 0.52
TestSSEServerFunction · 0.52