Documentation
¶
Overview ¶
Package queryresults provides an MCP App for interactive query result tables.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func App ¶
func App(cfg Config) *mcpapps.AppDefinition
App creates an AppDefinition for the query results interactive table.
Types ¶
type Config ¶
type Config struct {
// ChartCDN is the URL for the Chart.js library.
// Defaults to jsDelivr CDN.
ChartCDN string `yaml:"chart_cdn" json:"chartCDN"`
// DefaultChartType is the default chart type when creating visualizations.
// Valid values: "bar", "line", "pie".
DefaultChartType string `yaml:"default_chart_type" json:"defaultChartType"`
// MaxTableRows is the maximum number of rows to render in the table.
// This is a performance limit to prevent browser slowdown.
MaxTableRows int `yaml:"max_table_rows" json:"maxTableRows"`
}
Config holds configuration for the query results app.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns sensible defaults for the query results app.
Click to show internal directories.
Click to hide internal directories.