mcp

package
v0.243.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleGetInsights added in v0.241.0

func HandleGetInsights(ctx context.Context, request mcp.CallToolRequest, ch *cmdutil.Helper) (*mcp.CallToolResult, error)

HandleGetInsights implements the get_insights tool

func HandleGetSchema

func HandleGetSchema(ctx context.Context, request mcp.CallToolRequest, ch *cmdutil.Helper) (*mcp.CallToolResult, error)

HandleGetSchema implements the get_schema tool

func HandleListBranches

func HandleListBranches(ctx context.Context, request mcp.CallToolRequest, ch *cmdutil.Helper) (*mcp.CallToolResult, error)

HandleListBranches implements the list_branches tool

func HandleListDatabases

func HandleListDatabases(ctx context.Context, request mcp.CallToolRequest, ch *cmdutil.Helper) (*mcp.CallToolResult, error)

HandleListDatabases implements the list_databases tool

func HandleListKeyspaces

func HandleListKeyspaces(ctx context.Context, request mcp.CallToolRequest, ch *cmdutil.Helper) (*mcp.CallToolResult, error)

HandleListKeyspaces implements the list_keyspaces tool

func HandleListOrgs

func HandleListOrgs(ctx context.Context, request mcp.CallToolRequest, ch *cmdutil.Helper) (*mcp.CallToolResult, error)

HandleListOrgs implements the list_orgs tool

func HandleListTables

func HandleListTables(ctx context.Context, request mcp.CallToolRequest, ch *cmdutil.Helper) (*mcp.CallToolResult, error)

HandleListTables implements the list_tables tool

func HandleRunQuery

func HandleRunQuery(ctx context.Context, request mcp.CallToolRequest, ch *cmdutil.Helper) (*mcp.CallToolResult, error)

HandleRunQuery implements the run_query tool

func InstallCmd

func InstallCmd(ch *cmdutil.Helper) *cobra.Command

InstallCmd returns a new cobra.Command for the mcp install command.

func McpCmd

func McpCmd(ch *cmdutil.Helper) *cobra.Command

McpCmd returns a new cobra.Command for the mcp command.

func ServerCmd

func ServerCmd(ch *cmdutil.Helper) *cobra.Command

ServerCmd returns a new cobra.Command for the mcp server command.

Types

type ClaudeConfig

type ClaudeConfig map[string]interface{}

ClaudeConfig represents the structure of the Claude Desktop config file

type DatabaseConnection

type DatabaseConnection struct {
	// contains filtered or unexported fields
}

DatabaseConnection represents a connection to a PlanetScale database

type ToolDef

type ToolDef struct {
	// contains filtered or unexported fields
}

Tool definition

type ToolHandler

type ToolHandler func(ctx context.Context, request mcp.CallToolRequest, ch *cmdutil.Helper) (*mcp.CallToolResult, error)

Tool handler function type

Jump to

Keyboard shortcuts

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