From 7e7ffbc98a797b7341c840a884951dba7e5336a7 Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Fri, 18 Sep 2026 01:09:22 -0400 Subject: [PATCH 1/3] Update the CDP MCP server --- cdp_server.py | 79 +++++++++++++++++++++++++++++++++++---------------- 1 file changed, 55 insertions(+), 24 deletions(-) diff --git a/cdp_server.py b/cdp_server.py index 67e1ddc..5701e62 100644 --- a/cdp_server.py +++ b/cdp_server.py @@ -65,8 +65,10 @@ """ from __future__ import annotations import atexit +import os import sys from functools import wraps +from pathlib import Path from typing import Any, Literal from mcp.server import MCPServer from mcp.server.mcpserver.exceptions import ToolError @@ -1016,6 +1018,15 @@ def type_text( Returns: A confirmation message after the operation succeeds; otherwise the error handler returns the resulting failure. + + Notes: + Including "\\n" in your `text` (except in "set_value" mode) will + simulate pressing the "Enter" key, which is useful for submitting + forms or triggering search inputs without needing a separate click. + + Tool selection: + - Need to update text that appears in a text field -> use this tool. + - Need to update the value of a