Skip to content

feat: add CLI commands for integration management #238

@perasperaactual

Description

@perasperaactual

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 integrations
  • stackwright integrations get <name> - shows integration details
  • stackwright integrations add - interactive prompts to add integration
  • Commands respect project root discovery
  • Output is human-readable with colors/formatting
  • Help text for all commands
  • Comprehensive tests

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions