MCPcopy
hub / github.com/modelcontextprotocol/python-sdk / SessionMessage

Class SessionMessage

src/mcp/shared/message.py:50–54  ·  view source on GitHub ↗

A message with specific metadata for transport-specific features.

Source from the content-addressed store, hash-verified

48
49@dataclass
50class SessionMessage:
51 """A message with specific metadata for transport-specific features."""
52
53 message: JSONRPCMessage
54 metadata: MessageMetadata = None

Callers 15

_parse_lineFunction · 0.90
sse_readerFunction · 0.90
_handle_sse_eventMethod · 0.90
_handle_post_requestMethod · 0.90
_handle_json_responseMethod · 0.90
_writeMethod · 0.90
stdin_readerFunction · 0.90
handle_post_messageMethod · 0.90
_handle_post_requestMethod · 0.90

Calls

no outgoing calls