Overview
Add CLI commands for managing integrations (parallel to MCP tools for direct CLI usage by developers).
Motivation
While MCP tools enable AI agents, developers also need human-friendly CLI commands to list, inspect, and add integrations during development.
Acceptance Criteria
Implementation Details
Commands:
list command:
$ stackwright integrations list
Configured Integrations:
logistics (openapi)
users (graphql)
Total: 2
get command:
$ stackwright integrations get logistics
Integration: logistics
type: openapi
spec: ./specs/logistics-api.yaml
auth:
type: bearer
add command (interactive):
$ stackwright integrations add
? Integration type: openapi
? Integration name: reports
? OpenAPI spec path or URL: ./specs/reports.yaml
? Authentication type: bearer
✓ Integration "reports" added successfully
Run 'pnpm prebuild' to generate code
Files to Create
packages/cli/src/commands/integrations.ts (new)
packages/cli/test/integrations.test.ts (new)
Files to Modify
packages/cli/src/index.ts (register command)
Dependencies
- Depends on integration schema
- Requires
inquirer for interactive prompts
- Requires
chalk for colored output
Estimated Time
2-3 hours
Overview
Add CLI commands for managing integrations (parallel to MCP tools for direct CLI usage by developers).
Motivation
While MCP tools enable AI agents, developers also need human-friendly CLI commands to list, inspect, and add integrations during development.
Acceptance Criteria
stackwright integrations list- lists all integrationsstackwright integrations get <name>- shows integration detailsstackwright integrations add- interactive prompts to add integrationImplementation Details
Commands:
list command:
get command:
add command (interactive):
Files to Create
packages/cli/src/commands/integrations.ts(new)packages/cli/test/integrations.test.ts(new)Files to Modify
packages/cli/src/index.ts(register command)Dependencies
inquirerfor interactive promptschalkfor colored outputEstimated Time
2-3 hours