queryresults

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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