mcp

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackplaneCloudConsole

func BackplaneCloudConsole(ctx context.Context, request *mcp.CallToolRequest, input BackplaneCloudConsoleArgs) (*mcp.CallToolResult, any, error)

func BackplaneClusterResource

func BackplaneClusterResource(ctx context.Context, request *mcp.CallToolRequest, input BackplaneClusterResourceArgs) (*mcp.CallToolResult, any, error)

func BackplaneConsole

func BackplaneConsole(ctx context.Context, request *mcp.CallToolRequest, input BackplaneConsoleArgs) (*mcp.CallToolResult, any, error)

func BackplaneLogin

func BackplaneLogin(ctx context.Context, request *mcp.CallToolRequest, input BackplaneLoginArgs) (*mcp.CallToolResult, any, error)

func GetBackplaneInfo

func GetBackplaneInfo(ctx context.Context, req *mcp.CallToolRequest, input BackplaneInfoInput) (*mcp.CallToolResult, any, error)

GetBackplaneInfo retrieves comprehensive information about the backplane CLI installation and configuration

Types

type BackplaneCloudConsoleArgs

type BackplaneCloudConsoleArgs struct {
	ClusterID string `json:"clusterId" jsonschema:"description:the cluster ID for backplane cloud console"`
}

type BackplaneClusterResourceArgs

type BackplaneClusterResourceArgs struct {
	Action        string `json:"action" jsonschema:"description:oc read action to perform (get, describe, logs, top, explain)"`
	ResourceType  string `` /* 151-byte string literal not displayed */
	ResourceName  string `json:"resourceName,omitempty" jsonschema:"description:specific resource name (optional for get/describe actions)"`
	Namespace     string `json:"namespace,omitempty" jsonschema:"description:kubernetes namespace (use 'all' for all namespaces)"`
	OutputFormat  string `json:"outputFormat,omitempty" jsonschema:"description:output format (yaml, json, wide, name, custom-columns)"`
	LabelSelector string `json:"labelSelector,omitempty" jsonschema:"description:label selector filter (e.g., 'app=myapp,version=v1')"`
	FieldSelector string `json:"fieldSelector,omitempty" jsonschema:"description:field selector filter (e.g., 'status.phase=Running')"`
	AllNamespaces bool   `json:"allNamespaces,omitempty" jsonschema:"description:search across all namespaces"`
	Follow        bool   `json:"follow,omitempty" jsonschema:"description:follow logs in real-time (for logs action)"`
	Previous      bool   `json:"previous,omitempty" jsonschema:"description:get previous container logs (for logs action)"`
	Tail          int    `json:"tail,omitempty" jsonschema:"description:number of recent log lines to show (for logs action)"`
	Container     string `json:"container,omitempty" jsonschema:"description:container name for multi-container pods (for logs/exec actions)"`
	ShowLabels    bool   `json:"showLabels,omitempty" jsonschema:"description:show labels in output"`
	SortBy        string `json:"sortBy,omitempty" jsonschema:"description:sort output by field (e.g., '.metadata.creationTimestamp')"`
	Watch         bool   `json:"watch,omitempty" jsonschema:"description:watch for changes after listing/getting objects"`
	Raw           string `json:"raw,omitempty" jsonschema:"description:raw oc read arguments to pass directly"`
}

type BackplaneConsoleArgs

type BackplaneConsoleArgs struct {
	ClusterID string `json:"clusterId" jsonschema:"description:the cluster ID for backplane console"`
}

type BackplaneInfoInput

type BackplaneInfoInput struct {
}

BackplaneInfoInput represents the input for the backplane-info tool

type BackplaneLoginArgs

type BackplaneLoginArgs struct {
	ClusterID string `json:"clusterId" jsonschema:"description:the cluster ID for backplane login"`
}

Jump to

Keyboard shortcuts

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