You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add target type picker to gateway target wizard (#496)
* feat: add target type picker to gateway target wizard
- Add targetType field to AddGatewayTargetConfig and 'target-type' wizard step
- Convert wizard from static to dynamic steps (useMemo with config.targetType dep)
- Fix goBack() to use memoized steps instead of stale getSteps() call
- Add TARGET_TYPE_OPTIONS with mcpServer as initial option
- Add WizardSelect UI for target type selection in AddGatewayTargetScreen
- Route flow on config.targetType instead of config.source
- Remove source field, SOURCE_OPTIONS, and 'source' step (dead code)
* feat: make --type required and remove --source for gateway-target CLI
- Make --type required with kebab-case input (mcp-server -> mcpServer)
- Remove --source option entirely (was dead code, only existing-endpoint worked)
- Wire options.type through buildGatewayTargetConfig to config.targetType
- Route handleAddGatewayTarget on config.targetType instead of config.source
- Use config.targetType in createExternalGatewayTarget instead of hardcoding
* test: update gateway-target tests for target type picker
- Replace source: 'existing-endpoint' with type: 'mcp-server' in all fixtures
- Add type: 'mcpServer' to ValidatedAddGatewayTargetOptions test objects
- Add tests for --type required validation and invalid type rejection
- Replace SOURCE_OPTIONS test with TARGET_TYPE_OPTIONS test
- Fix shared fixture mutation bug (spread before passing to validation)
- Add --type mcp-server to CLI integration test args
* docs: update gateway-target examples to use --type mcp-server
- Replace --source existing-endpoint with --type mcp-server in all examples
- Update flags table: --source -> --type (required)
- Update commands.md, gateway.md, and local-development.md
* fix: reset command.tsx and create-mcp.test.ts to main versions
These files were incorrectly carried from our pre-rebase branch during
conflict resolution (--theirs/--ours reversed in rebase context).
The modular primitive PR moved their contents to GatewayTargetPrimitive.ts.
* ci: retrigger checks
* test: add missing --type flag to remove gateway-target tests
0 commit comments