Browser Cookie Refresh (HITL/CITL)
This skill helps refresh session cookies for services that don't offer API keys. It uses Chrome DevTools MCP to extract cookies after the user logs in.
Supported Services
Forkable
- •Cookie name:
_easyorder_session - •Login URL:
https://forkable.com/mc/admin/members - •Env var:
FORKABLE_SESSION_COOKIE - •Update script:
./scripts/update-forkable-cookie.sh
Workflow
When user asks to refresh a cookie (e.g., "refresh the forkable cookie"):
Step 1: Open the login page
code
Use mcp__chrome-devtools__new_page to open the service's login URL
If you get a "browser is already running" error:
- •Kill the stale browser process:
bash
pkill -f "chrome-devtools-mcp/chrome-profile"
- •Retry opening the page with
mcp__chrome-devtools__new_page
Step 2: Wait for user to log in
code
Ask user: "Please log in to [service] in the browser window. Let me know when you're logged in and see the admin/dashboard page."
Step 3: Trigger a request to capture cookies
code
Use mcp__chrome-devtools__navigate_page to reload or navigate within the site This ensures fresh network requests with cookies
Step 4: Extract the cookie
code
Use mcp__chrome-devtools__list_network_requests to find recent requests Use mcp__chrome-devtools__get_network_request to get the request details Parse the cookie value from the request headers
Step 5: Update the cookie
code
Run the update script with the extracted cookie value Report success and expiration date if available
Example Flow for Forkable
- •
mcp__chrome-devtools__new_pagewith urlhttps://forkable.com/mc/admin/members- •If "browser is already running" error: run
pkill -f "chrome-devtools-mcp/chrome-profile"then retry
- •If "browser is already running" error: run
- •Ask user to log in, wait for confirmation
- •
mcp__chrome-devtools__list_network_requestswithresourceTypes: ["fetch", "xhr", "document"] - •
mcp__chrome-devtools__get_network_requestfor a forkable.com request (prefer GraphQL or API requests) - •Extract
_easyorder_sessionfrom thecookierequest header (not response) - •Run
./scripts/update-forkable-cookie.sh <cookie-value> - •Report: "Cookie updated! Expires ~45 days from now."
Adding New Services
To add a new service, create a script at ./scripts/update-<service>-cookie.sh and add the service config above.