app

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InstallMySQL = "install_mysql"
)
View Source
const (
	InstallOpenResty = "install_openresty"
)
View Source
const (
	ListInstalledApps = "list_installed_apps"
)

Variables

View Source
var InstallMySQLTool = mcp.NewTool(
	InstallMySQL,
	mcp.WithDescription("install mysql, if not set name, default is mysql, if not set version, default is '', if not set root_password, default is '')"),
	mcp.WithString("name", mcp.Description("mysql name")),
	mcp.WithString("version", mcp.Description("mysql version, not support latest version"), mcp.DefaultString("")),
	mcp.WithString("root_password", mcp.Description("mysql root password"), mcp.DefaultString("")),
	mcp.WithNumber("port", mcp.Description("mysql port"), mcp.DefaultNumber(3306)),
)
View Source
var InstallOpenRestyTool = mcp.NewTool(
	InstallOpenResty,
	mcp.WithDescription("install openresty, if not set name, default is openresty, if not set http_port, default is 80, if not set https_port, default is 443"),
	mcp.WithString("name", mcp.Description("openresty name"), mcp.DefaultString("openresty")),
	mcp.WithNumber("http_port", mcp.Description("openresty http port"), mcp.DefaultNumber(80)),
	mcp.WithNumber("https_port", mcp.Description("openresty https port"), mcp.DefaultNumber(443)),
)
View Source
var ListInstalledAppsTool = mcp.NewTool(
	ListInstalledApps,
	mcp.WithDescription("list installed apps"),
)

Functions

func InstallMySQLHandle

func InstallMySQLHandle(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error)

func InstallOpenRestyHandle

func InstallOpenRestyHandle(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error)

func ListInstalledAppsHandle

func ListInstalledAppsHandle(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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