Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 8 additions & 14 deletions cdp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
seleniumbase[mcp]>=4.54.10
seleniumbase[mcp]>=4.54.11
mcp[cli]>=2.2.0,<3.0.0
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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={
Expand All @@ -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={
Expand Down
Loading