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

Method ID

mcp/server.go:1160–1165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1158}
1159
1160func (ss *ServerSession) ID() string {
1161 if c, ok := ss.mcpConn.(hasSessionID); ok {
1162 return c.SessionID()
1163 }
1164 return ""
1165}
1166
1167// Ping pings the client.
1168func (ss *ServerSession) Ping(ctx context.Context, params *PingParams) error {

Callers 1

bindMethod · 0.95

Calls 1

SessionIDMethod · 0.65

Tested by

no test coverage detected