Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheEntry ¶
type CacheEntry struct {
ViewName string `json:"view_name"`
Dataset string `json:"dataset"`
Schema string `json:"schema"`
FileCount int `json:"file_count"`
TotalSize int64 `json:"total_size_bytes"`
}
CacheEntry describes a cached dataset/schema in the cache directory.
type Server ¶
Server holds state for MCP data tool handlers. It embeds *mcp_meta.Server for access to MaxCost and Logger.
func NewServer ¶
func NewServer(config ServerConfig, logger *slog.Logger) *Server
NewServer creates a new Server with the given API key, and logger.
func (*Server) GetCacheDB ¶
func (*Server) GetCacheDir ¶
func (*Server) GetMaxCost ¶
func (*Server) InitCache ¶
InitCache opens an in-memory DuckDB database and creates views for any existing cached parquet files.
func (*Server) RegisterDataTools ¶
func (s *Server) RegisterDataTools(mcpServer *mcp_server.MCPServer)
RegisterDataTools registers data-specific MCP tools (fetch_range + cache tools).
Click to show internal directories.
Click to hide internal directories.