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

Function remove_request_params

src/mcp/client/sse.py:21–22  ·  view source on GitHub ↗
(url: str)

Source from the content-addressed store, hash-verified

19
20
21def remove_request_params(url: str) -> str:
22 return urljoin(url, urlparse(url).path)
23
24
25def _extract_session_id_from_endpoint(endpoint_url: str) -> str | None:

Callers 1

sse_clientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected