website

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreateWebsite = "create_website"
)
View Source
const (
	ListWebsites = "list_websites"
)

Variables

View Source
var CreateWebsiteTool = mcp.NewTool(CreateWebsite,
	mcp.WithDescription("create website"),
	mcp.WithString("domain", mcp.Description("domain"), mcp.Required()),
	mcp.WithString("website_type", mcp.Description("website type,only support static and proxy"), mcp.Required()),
	mcp.WithString("proxy_address", mcp.Description("proxy address,only support for proxy website"), mcp.Required()),
)
View Source
var ListWebsitesTool = mcp.NewTool(
	ListWebsites,
	mcp.WithDescription("list websites"),
	mcp.WithString("name", mcp.Description("search by website name")),
)

Functions

func CreateWebsiteHandle

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

func ListWebsiteHandle

func ListWebsiteHandle(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