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

Method ID

mcp/shared.go:75–75  ·  view source on GitHub ↗

ID returns the session ID, or the empty string if there is none.

()

Source from the content-addressed store, hash-verified

73type Session interface {
74 // ID returns the session ID, or the empty string if there is none.
75 ID() string
76
77 sendingMethodInfos() map[string]methodInfo
78 receivingMethodInfos() map[string]methodInfo

Callers 13

subscribeMethod · 0.65
unsubscribeMethod · 0.65
disconnectMethod · 0.65
TestStreamableTransportsFunction · 0.65
callFunction · 0.65
createLoggingMiddlewareFunction · 0.65
runClientFunction · 0.65
createLoggingMiddlewareFunction · 0.65
mainFunction · 0.65
childFunction · 0.65

Implementers 2

ServerSessionmcp/server.go
ClientSessionmcp/client.go

Calls

no outgoing calls

Tested by 3

TestStreamableTransportsFunction · 0.52