diff --git a/docs/toolhive/guides-mcp/playwright.mdx b/docs/toolhive/guides-mcp/playwright.mdx index c767a9fa..42f0fccb 100644 --- a/docs/toolhive/guides-mcp/playwright.mdx +++ b/docs/toolhive/guides-mcp/playwright.mdx @@ -86,13 +86,6 @@ command argument as shown in the screenshot below. title='Playwright MCP server UI' /> -:::note[Important] - -Don't remove the `--port 8931` or `--allowed-hosts "*"` arguments. They are -required for the server to function correctly in ToolHive. - -::: - @@ -105,15 +98,13 @@ thv run playwright Emulate a mobile device for responsive testing: ```bash {2} -thv run playwright -- --port 8931 --allowed-hosts "*" \ - --device "iPhone 15" +thv run playwright -- --device "iPhone 15" ``` Restrict access to specific domains: ```bash {2} -thv run playwright -- --port 8931 --allowed-hosts "*" \ - --allowed-origins "example.com;trusted-site.com" +thv run playwright -- --allowed-origins "example.com;trusted-site.com" ``` Mount a host directory (e.g., `~/playwright-output`) to save browser output @@ -123,8 +114,7 @@ files like screenshots and traces: mkdir ~/playwright-output thv run \ --volume ~/playwright-output:/browser-output playwright \ - -- --port 8931 --allowed-hosts "*" \ - --output-dir /browser-output --save-trace --save-session + -- --output-dir /browser-output --save-trace --save-session ``` You can run multiple instances of the server with different configurations by @@ -132,25 +122,17 @@ giving each a unique name: ```bash {1,5} thv run --name playwright-desktop playwright \ - -- --port 8931 --allowed-hosts "*" \ - --device "Desktop Chrome" --viewport-size 1920,1080 + -- --device "Desktop Chrome" --viewport-size 1920,1080 thv run --name playwright-iphone playwright \ - -- --port 8931 --allowed-hosts "*" \ - --device "iPhone 15" + -- --device "iPhone 15" ``` -:::note[Important] - -Don't remove the `--port 8931` or `--allowed-hosts "*"` arguments. They are -required for the server to function correctly in ToolHive. - -::: - -Create a basic Kubernetes manifest to deploy the Playwright MCP server: +Create a basic Kubernetes manifest to deploy the Playwright MCP server using the +Streamable HTTP transport: ```yaml title="playwright.yaml" apiVersion: toolhive.stacklok.dev/v1alpha1 @@ -173,7 +155,7 @@ spec: :::note[Important] Don't remove the `--port 8931` or `--allowed-hosts "*"` arguments. They are -required for the server to function correctly in ToolHive. +required to run the server using Streamable HTTP. ::: diff --git a/static/img/toolhive/mcp-guides/playwright-mcp-ui-dark.webp b/static/img/toolhive/mcp-guides/playwright-mcp-ui-dark.webp index 2d21ac1d..1b128e72 100644 Binary files a/static/img/toolhive/mcp-guides/playwright-mcp-ui-dark.webp and b/static/img/toolhive/mcp-guides/playwright-mcp-ui-dark.webp differ diff --git a/static/img/toolhive/mcp-guides/playwright-mcp-ui-light.webp b/static/img/toolhive/mcp-guides/playwright-mcp-ui-light.webp index 44644c37..ab4dc6e1 100644 Binary files a/static/img/toolhive/mcp-guides/playwright-mcp-ui-light.webp and b/static/img/toolhive/mcp-guides/playwright-mcp-ui-light.webp differ