cmd

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package cmd contains all CLI commands and their implementation. It uses the Cobra library for command-line interface construction.

Command Structure:

  • root: Base command with global flags
  • mcp: Run MCP server for agent integration

Index

Constants

This section is empty.

Variables

View Source
var MCPCmd = &cobra.Command{
	Use:   "mcp",
	Short: "Run MCP server for agent integration",
	Long: `Runs an MCP (Model Context Protocol) server that exposes GitHub Actions utilities as tools.

The server communicates over stdin/stdout and provides this tool:
  - get_action_parameters: Fetch and parse GitHub Action action.yml files

This allows AI agents to programmatically retrieve information about GitHub Actions,
including their inputs, outputs, and configuration.

Example MCP client configuration:
{
  "mcpServers": {
    "github-actions-utils": {
      "command": "github-actions-utils-cli",
      "args": ["mcp"]
    }
  }
}`,
	RunE: runMCP,
}

Functions

func Execute

func Execute() error

Execute adds all child commands to the root command and sets flags appropriately.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL