diff --git a/cdp_server.py b/cdp_server.py index 5701e62..b390392 100644 --- a/cdp_server.py +++ b/cdp_server.py @@ -1430,16 +1430,16 @@ def manage_cookies( Args: action: - - "get_all": Return all cookies currently available to the - browser, including attributes such as name, value, domain, - path, expiry, and security flags. + - "get_all": Return all cookies currently available to the browser, + including attributes such as name, value, domain, path, expiry, + and security flags. - "clear": Delete all cookies from the current browser session. - - "save": Save current cookies to filename. + - "save": Save current cookies to filename. The file may be + created or overwritten. - "load": Load cookies from filename into the current browser session. - filename: The name of the file to save/load cookies from. - Will be sanitized and saved in a restricted directory. + filename: The sanitized filesystem path used by save/load. Ignored for get_all and clear. Returns: @@ -1453,19 +1453,13 @@ def manage_cookies( identifiers, and other private information. Only inspect, save, load, or share cookies when explicitly authorized. + The save action can overwrite existing files. + Notes: Loading saved cookies does not guarantee restoration of a login. Cookies may be expired, invalidated, domain/path restricted, or dependent on other browser state. Navigate to the relevant site when necessary so the browser has the appropriate origin for the cookies. - - Tool selection: - - Need cookies or authentication cookies -> use this tool. - - Need localStorage/sessionStorage -> use manage_storage. - - Need arbitrary JavaScript or storage operations not covered here -> - use run_javascript. - - Need visible page content or HTML -> use get_content. - - Need an element's HTML attributes -> use get_attributes. """ sb = _get_sb() diff --git a/pyproject.toml b/pyproject.toml index 0b36be7..6a8fd0d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ SeleniumBase = "https://github.com/seleniumbase/SeleniumBase" [dependency-groups] # Used by `uv sync` dev = [ - "uv>=0.12.15", # Needed for `mcp dev` + "uv>=0.12.17", # Needed for `mcp dev` ] [build-system] diff --git a/requirements.txt b/requirements.txt index 45e57d8..08734a6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -seleniumbase[mcp]>=4.54.10 +seleniumbase[mcp]>=4.54.11 mcp[cli]>=2.2.0,<3.0.0 diff --git a/setup.py b/setup.py index c0339d2..3297cbb 100755 --- a/setup.py +++ b/setup.py @@ -70,7 +70,7 @@ setup( name="seleniumbase-mcp", - version="1.3.10", + version="1.3.11", description="MCP servers exposing SeleniumBase as tools for MCP clients.", long_description=long_description, long_description_content_type="text/markdown", @@ -140,7 +140,7 @@ ], python_requires=">=3.10", install_requires=[ - "seleniumbase[mcp]>=4.54.10", + "seleniumbase[mcp]>=4.54.11", "mcp[cli]>=2.2.0,<3.0.0", ], extras_require={ @@ -149,10 +149,10 @@ "twine>=7.0.0", ], "uv": [ - "uv>=0.12.15", + "uv>=0.12.17", ], "dev": [ - "uv>=0.12.15", + "uv>=0.12.17", ], }, entry_points={