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

Function _make_handshake_stamp

src/mcp/client/session.py:63–67  ·  view source on GitHub ↗
(protocol_version: str)

Source from the content-addressed store, hash-verified

61
62
63def _make_handshake_stamp(protocol_version: str) -> Callable[[dict[str, Any], CallOptions], None]:
64 def stamp(data: dict[str, Any], opts: CallOptions) -> None:
65 opts.setdefault("headers", {})[MCP_PROTOCOL_VERSION_HEADER] = protocol_version
66
67 return stamp
68
69
70def _make_modern_stamp(

Callers 1

adoptMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected