Simplify MCP server install wizard

This commit is contained in:
Codex
2026-04-29 16:37:38 +00:00
parent 2dda1b8bee
commit f92268181b
3 changed files with 215 additions and 56 deletions
+9 -4
View File
@@ -121,6 +121,9 @@ assert.match(uploadRouteSource, /entryMode/, 'MCP upload API must support non-fi
assert.match(uploadRouteSource, /python-module/, 'MCP upload API must support Python module launch')
assert.match(uploadRouteSource, /console-script/, 'MCP upload API must support installed console script launch')
assert.match(uploadRouteSource, /resolveProjectRoot/, 'MCP upload API must find project manifests inside uploaded directories')
assert.match(uploadRouteSource, /inferUploadLaunch/, 'MCP upload API must infer uploaded server runtime and launch metadata')
assert.match(uploadRouteSource, /inferPythonConsoleScript/, 'MCP upload API must detect Python console-script entrypoints')
assert.match(uploadRouteSource, /package\.json/, 'MCP upload API must inspect package.json for Node entrypoints')
assert.match(uploadRouteSource, /preflightMcpServer/, 'MCP upload API must preflight uploaded server bundles')
assert.match(uploadRouteSource, /repairUploadedMcpServerWithLlm/, 'MCP upload API must attempt bounded LLM repair when uploaded server preflight fails')
assert.match(uploadRouteSource, /mode"\).*"stage"/s, 'MCP upload API must support a file-staging mode')
@@ -176,10 +179,10 @@ assert.match(panelSource, /Choose Directory/, 'MCP custom server upload must acc
assert.match(panelSource, /Choose Archive/, 'MCP custom server upload must accept archives')
assert.match(panelSource, /\/api\/mcp\/upload/, 'MCP custom server upload must call the upload API')
assert.match(panelSource, /dependencyInstall/, 'MCP custom server upload must surface dependency bootstrap results')
assert.match(panelSource, /uploadEntrypoint/, 'MCP custom server upload must collect an entrypoint')
assert.match(panelSource, /uploadEntryMode/, 'MCP custom server upload must collect a launch mode')
assert.match(panelSource, /Python module/, 'MCP custom server upload must expose Python module launch mode')
assert.match(panelSource, /Console script/, 'MCP custom server upload must expose console script launch mode')
assert.match(panelSource, /Detected \{stagedUpload\.runtime\}/, 'MCP custom server upload must display inferred runtime and launch metadata')
assert.doesNotMatch(panelSource, /Upload Runtime/, 'MCP custom server upload must not ask the user for runtime')
assert.doesNotMatch(panelSource, /Upload Launch Mode/, 'MCP custom server upload must not ask the user for launch mode')
assert.doesNotMatch(panelSource, /Upload Entrypoint/, 'MCP custom server upload must not ask the user for an entrypoint')
assert.match(panelSource, /uploadRepair/, 'MCP custom server upload must expose LLM repair controls')
assert.match(panelSource, /repairSandboxId/, 'MCP custom server upload must let operators pick a sandbox LLM route for repair')
assert.match(panelSource, /LLM repair/, 'MCP custom server upload must summarize LLM-assisted repair results')
@@ -187,6 +190,8 @@ assert.match(panelSource, /FieldHint/, 'MCP server install wizard fields must in
assert.match(panelSource, /wizardStep/, 'MCP server install wizard must expose install workflow steps')
assert.match(panelSource, /Back/, 'MCP server install wizard must expose back navigation')
assert.match(panelSource, /Next/, 'MCP server install wizard must expose next navigation')
assert.match(panelSource, /Cancel/, 'MCP server install wizard must expose cancel navigation')
assert.match(panelSource, /resetWizardWorkflow/, 'MCP server install wizard must reset after success or cancel')
assert.match(panelSource, /Start Preflight checks/, 'MCP server install wizard must expose a preflight-step action')
assert.match(panelSource, /Install Server/, 'MCP server install wizard must expose an install-step action')
assert.match(panelSource, /stageUploadServer/, 'MCP server install wizard must stage uploads before preflight')