Documentation
¶
Overview ¶
Package datahub provides a DataHub toolkit adapter for the MCP data platform.
Index ¶
- type Config
- type Toolkit
- func (t *Toolkit) Client() *dhclient.Client
- func (t *Toolkit) Close() error
- func (t *Toolkit) Config() Config
- func (t *Toolkit) Connection() string
- func (*Toolkit) Kind() string
- func (t *Toolkit) Name() string
- func (t *Toolkit) RegisterTools(s *mcp.Server)
- func (t *Toolkit) SetQueryProvider(provider query.Provider)
- func (t *Toolkit) SetSemanticProvider(provider semantic.Provider)
- func (*Toolkit) Tools() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
URL string `yaml:"url"`
Token string `yaml:"token"`
Timeout time.Duration `yaml:"timeout"`
DefaultLimit int `yaml:"default_limit"`
MaxLimit int `yaml:"max_limit"`
MaxLineageDepth int `yaml:"max_lineage_depth"`
ConnectionName string `yaml:"connection_name"`
Debug bool `yaml:"debug"` // Enable debug logging
Descriptions map[string]string `yaml:"descriptions"`
}
Config holds DataHub toolkit configuration.
type Toolkit ¶
type Toolkit struct {
// contains filtered or unexported fields
}
Toolkit wraps mcp-datahub toolkit for the platform.
func (*Toolkit) Connection ¶ added in v0.12.1
Connection returns the connection name for audit logging.
func (*Toolkit) RegisterTools ¶
RegisterTools registers DataHub tools with the MCP server.
func (*Toolkit) SetQueryProvider ¶
SetQueryProvider sets the query execution provider for enrichment.
func (*Toolkit) SetSemanticProvider ¶
SetSemanticProvider sets the semantic metadata provider for enrichment.
Click to show internal directories.
Click to hide internal directories.