Documentation
¶
Index ¶
- func NewHandler(service *Service) protoserver.NewHandler
- type Config
- type Handler
- type Service
- func (s *Service) Auth() *auth.Service
- func (s *Service) NewConnector(operations client.Operations) *connector.Service
- func (s *Service) NewExecService(operations client.Operations) *exec.Service
- func (s *Service) NewMetaService(operations client.Operations) *meta.Service
- func (s *Service) NewQueryService(operations client.Operations) *query.Service
- func (s *Service) RegisterHTTP(mux *http.ServeMux)
- func (s *Service) UI() *interaction.Service
- func (s *Service) UseTextField() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(service *Service) protoserver.NewHandler
Types ¶
type Config ¶
type Config struct {
Connector *connector.Config
// UseData, when set to true, instructs SQLKit to put tool results in the
// `data` field of CallToolResultContentElem. When false (default) the
// result JSON is carried in the `text` field. This reverses the legacy
// behaviour where `data` was the default.
UseData bool `json:"useData,omitempty"`
// Deprecated: kept for backwards-compatibility with earlier versions that
// used `useText` (default false). When both UseText and UseData are set
// the latter wins.
UseText bool `json:"useText,omitempty"`
}
type Handler ¶
type Handler struct {
*protoserver.DefaultHandler
// contains filtered or unexported fields
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) NewConnector ¶
func (s *Service) NewConnector(operations client.Operations) *connector.Service
func (*Service) NewExecService ¶
func (s *Service) NewExecService(operations client.Operations) *exec.Service
func (*Service) NewMetaService ¶
func (s *Service) NewMetaService(operations client.Operations) *meta.Service
func (*Service) NewQueryService ¶
func (s *Service) NewQueryService(operations client.Operations) *query.Service
func (*Service) RegisterHTTP ¶
RegisterHTTP attaches all MCP auxiliary HTTP handlers (currently secret-elicitation callbacks).
func (*Service) UI ¶
func (s *Service) UI() *interaction.Service
func (*Service) UseTextField ¶
UseTextField indicates whether SQLKit should populate the `text` field (true – default) or the `data` field (false) when returning tool results.
Click to show internal directories.
Click to hide internal directories.