@@ -86,13 +86,6 @@ command argument as shown in the screenshot below.
8686 title = ' Playwright MCP server UI'
8787/>
8888
89- :::note[ Important]
90-
91- Don't remove the ` --port 8931 ` or ` --allowed-hosts "*" ` arguments. They are
92- required for the server to function correctly in ToolHive.
93-
94- :::
95-
9689</TabItem >
9790<TabItem value = ' cli' label = ' CLI' >
9891
@@ -105,15 +98,13 @@ thv run playwright
10598Emulate a mobile device for responsive testing:
10699
107100``` bash {2}
108- thv run playwright -- --port 8931 --allowed-hosts " *" \
109- --device " iPhone 15"
101+ thv run playwright -- --device " iPhone 15"
110102```
111103
112104Restrict access to specific domains:
113105
114106``` bash {2}
115- thv run playwright -- --port 8931 --allowed-hosts " *" \
116- --allowed-origins " example.com;trusted-site.com"
107+ thv run playwright -- --allowed-origins " example.com;trusted-site.com"
117108```
118109
119110Mount a host directory (e.g., ` ~/playwright-output ` ) to save browser output
@@ -123,34 +114,25 @@ files like screenshots and traces:
123114mkdir ~ /playwright-output
124115thv run \
125116 --volume ~ /playwright-output:/browser-output playwright \
126- -- --port 8931 --allowed-hosts " *" \
127- --output-dir /browser-output --save-trace --save-session
117+ -- --output-dir /browser-output --save-trace --save-session
128118```
129119
130120You can run multiple instances of the server with different configurations by
131121giving each a unique name:
132122
133123``` bash {1,5}
134124thv run --name playwright-desktop playwright \
135- -- --port 8931 --allowed-hosts " *" \
136- --device " Desktop Chrome" --viewport-size 1920,1080
125+ -- --device " Desktop Chrome" --viewport-size 1920,1080
137126
138127thv run --name playwright-iphone playwright \
139- -- --port 8931 --allowed-hosts " *" \
140- --device " iPhone 15"
128+ -- --device " iPhone 15"
141129```
142130
143- :::note[ Important]
144-
145- Don't remove the ` --port 8931 ` or ` --allowed-hosts "*" ` arguments. They are
146- required for the server to function correctly in ToolHive.
147-
148- :::
149-
150131</TabItem >
151132<TabItem value = ' k8s' label = ' Kubernetes' >
152133
153- Create a basic Kubernetes manifest to deploy the Playwright MCP server:
134+ Create a basic Kubernetes manifest to deploy the Playwright MCP server using the
135+ Streamable HTTP transport:
154136
155137``` yaml title="playwright.yaml"
156138apiVersion : toolhive.stacklok.dev/v1alpha1
@@ -173,7 +155,7 @@ spec:
173155:::note[Important]
174156
175157Don't remove the ` --port 8931` or `--allowed-hosts "*"` arguments. They are
176- required for the server to function correctly in ToolHive .
158+ required to run the server using Streamable HTTP .
177159
178160:: :
179161
0 commit comments