@@ -89,6 +89,8 @@ it('is able to run an MCP server with docker', async () => {
8989 await userEvent . click ( screen . getByLabelText ( 'Transport' ) )
9090 await userEvent . click ( screen . getByRole ( 'option' , { name : 'stdio' } ) )
9191
92+ await userEvent . type ( screen . getByLabelText ( 'Target port' ) , '8000' )
93+
9294 await userEvent . type (
9395 screen . getByLabelText ( 'Docker image' ) ,
9496 'ghcr.io/github/github-mcp-server'
@@ -139,6 +141,7 @@ it('is able to run an MCP server with docker', async () => {
139141 expect ( payload ) . toBeDefined ( )
140142 expect ( payload [ 'name' ] , 'Should have name' ) . toBe ( 'foo-bar' )
141143 expect ( payload [ 'transport' ] , 'Should have transport' ) . toBe ( 'stdio' )
144+ expect ( payload [ 'target_port' ] ) . toBe ( 8000 )
142145 expect ( payload [ 'image' ] , 'Should have image' ) . toBe (
143146 'ghcr.io/github/github-mcp-server'
144147 )
@@ -189,6 +192,8 @@ it('is able to run an MCP server with npx', async () => {
189192 await userEvent . click ( screen . getByLabelText ( 'Transport' ) )
190193 await userEvent . click ( screen . getByRole ( 'option' , { name : 'stdio' } ) )
191194
195+ await userEvent . type ( screen . getByLabelText ( 'Target port' ) , '8800' )
196+
192197 await userEvent . click ( screen . getByLabelText ( 'Protocol' ) )
193198 await userEvent . click ( screen . getByRole ( 'option' , { name : 'npx' } ) )
194199
@@ -243,6 +248,7 @@ it('is able to run an MCP server with npx', async () => {
243248 expect ( payload [ 'name' ] , 'Should have name' ) . toBe ( 'foo-bar' )
244249 expect ( payload [ 'transport' ] , 'Should have transport' ) . toBe ( 'stdio' )
245250 expect ( payload [ 'protocol' ] , 'Should have protocol' ) . toBe ( 'npx' )
251+ expect ( payload [ 'target_port' ] ) . toBe ( 8800 )
246252 expect ( payload [ 'package_name' ] , 'Should have package name' ) . toBe (
247253 '@modelcontextprotocol/server-everything'
248254 )
@@ -293,6 +299,8 @@ it('is able to run an MCP server with uvx', async () => {
293299 await userEvent . click ( screen . getByLabelText ( 'Transport' ) )
294300 await userEvent . click ( screen . getByRole ( 'option' , { name : 'stdio' } ) )
295301
302+ await userEvent . type ( screen . getByLabelText ( 'Target port' ) , '8000' )
303+
296304 await userEvent . click ( screen . getByLabelText ( 'Protocol' ) )
297305 await userEvent . click ( screen . getByRole ( 'option' , { name : 'uvx' } ) )
298306
@@ -347,6 +355,7 @@ it('is able to run an MCP server with uvx', async () => {
347355 expect ( payload [ 'name' ] , 'Should have name' ) . toBe ( 'foo-bar' )
348356 expect ( payload [ 'transport' ] , 'Should have transport' ) . toBe ( 'stdio' )
349357 expect ( payload [ 'protocol' ] , 'Should have protocol' ) . toBe ( 'uvx' )
358+ expect ( payload [ 'target_port' ] ) . toBe ( 8000 )
350359 expect ( payload [ 'package_name' ] , 'Should have package name' ) . toBe (
351360 'mcp-server-fetch'
352361 )
@@ -397,6 +406,8 @@ it('is able to run an MCP server with go', async () => {
397406 await userEvent . click ( screen . getByLabelText ( 'Transport' ) )
398407 await userEvent . click ( screen . getByRole ( 'option' , { name : 'stdio' } ) )
399408
409+ await userEvent . type ( screen . getByLabelText ( 'Target port' ) , '8000' )
410+
400411 await userEvent . click ( screen . getByLabelText ( 'Protocol' ) )
401412 await userEvent . click ( screen . getByRole ( 'option' , { name : 'go' } ) )
402413
@@ -451,6 +462,7 @@ it('is able to run an MCP server with go', async () => {
451462 expect ( payload [ 'name' ] , 'Should have name' ) . toBe ( 'foo-bar' )
452463 expect ( payload [ 'transport' ] , 'Should have transport' ) . toBe ( 'stdio' )
453464 expect ( payload [ 'protocol' ] , 'Should have protocol' ) . toBe ( 'go' )
465+ expect ( payload [ 'target_port' ] ) . toBe ( 8000 )
454466 expect ( payload [ 'package_name' ] , 'Should have package name' ) . toBe (
455467 'github.com/example/go-mcp-server'
456468 )
0 commit comments