Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide( fx.Annotate( NewQueryTool, fx.ResultTags(`group:"vef:mcp:tools"`), ), ), )
Module provides MCP built-in tools.
Functions ¶
func NewQueryTool ¶
NewQueryTool creates a new QueryTool instance. kind is the dialect of db, used to select the dialect-specific dangerous-function denylist in the read-only guard.
Types ¶
type QueryArgs ¶
type QueryArgs struct {
SQL string `json:"sql" jsonschema:"required,description=The SQL query with placeholders (?) for parameters"`
Params []any `json:"params,omitempty" jsonschema:"description=Parameters for the SQL query placeholders"`
}
QueryArgs defines the expected arguments for the database_query tool.
Click to show internal directories.
Click to hide internal directories.