cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "dev"
	Commit    = "unknown"
	BuildTime = "unknown"
)

Version information - these would typically be set during build

Functions

func NewConfigCmd

func NewConfigCmd() *cobra.Command

NewConfigCmd creates the config subcommand

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd creates and returns the root command for forgejo-mcp. This sets up the main CLI interface using Cobra, including global flags and subcommands for server operation.

Migration Note: CLI structure maintained for backward compatibility while integrating with the updated MCP server implementation.

func NewServeCmd

func NewServeCmd() *cobra.Command

NewServeCmd creates the serve subcommand for starting the MCP server. This command initializes and starts the MCP server with proper signal handling for graceful shutdown.

Migration Note: Updated to work with the official MCP SDK server implementation.

func NewVersionCmd

func NewVersionCmd() *cobra.Command

NewVersionCmd creates the version subcommand

Types

This section is empty.

Jump to

Keyboard shortcuts

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