Documentation
¶
Index ¶
- type Config
- type ExecuteSQLTool
- func (t ExecuteSQLTool) Authorized(verifiedAuthServices []string) bool
- func (t ExecuteSQLTool) Invoke(ctx context.Context, params tools.ParamValues, token tools.AccessToken) (any, error)
- func (t ExecuteSQLTool) Manifest() tools.Manifest
- func (t ExecuteSQLTool) McpManifest() tools.McpManifest
- func (t ExecuteSQLTool) ParseParams(data map[string]any, claims map[string]map[string]any) (tools.ParamValues, error)
- func (t ExecuteSQLTool) RequiresClientAuthorization() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Name string `yaml:"name" validate:"required"`
Kind string `yaml:"kind" validate:"required"`
Source string `yaml:"source" validate:"required"`
Description string `yaml:"description" validate:"required"`
AuthRequired []string `yaml:"authRequired"`
}
func (Config) Initialize ¶
func (Config) ToolConfigKind ¶
type ExecuteSQLTool ¶
type ExecuteSQLTool struct {
Name string `yaml:"name"`
Kind string `yaml:"kind"`
AuthRequired []string `yaml:"authRequired"`
Parameters tools.Parameters `yaml:"parameters"`
Pool *sql.DB
// contains filtered or unexported fields
}
func (ExecuteSQLTool) Authorized ¶
func (t ExecuteSQLTool) Authorized(verifiedAuthServices []string) bool
func (ExecuteSQLTool) Invoke ¶
func (t ExecuteSQLTool) Invoke(ctx context.Context, params tools.ParamValues, token tools.AccessToken) (any, error)
func (ExecuteSQLTool) Manifest ¶
func (t ExecuteSQLTool) Manifest() tools.Manifest
func (ExecuteSQLTool) McpManifest ¶
func (t ExecuteSQLTool) McpManifest() tools.McpManifest
func (ExecuteSQLTool) ParseParams ¶
func (t ExecuteSQLTool) ParseParams(data map[string]any, claims map[string]map[string]any) (tools.ParamValues, error)
func (ExecuteSQLTool) RequiresClientAuthorization ¶
func (t ExecuteSQLTool) RequiresClientAuthorization() bool
Click to show internal directories.
Click to hide internal directories.