Documentation
¶
Index ¶
- Constants
- func NewMCPCommand(ctx context.Context, loader CatalogLoader, runner executor.Runner) *cobra.Command
- func NewSchemaCommand(loader CatalogLoader) *cobra.Command
- func OverridePriority(cmd *cobra.Command) int
- func SetOverridePriority(cmd *cobra.Command, priority int)
- func ValidateInputSchema(params map[string]any, schema map[string]any) error
- type CatalogLoader
- type EnvironmentLoader
- type FixtureLoader
- type FlagKind
- type FlagSpec
- type StaticLoader
Constants ¶
View Source
const ( CatalogFixtureEnv = "DWS_CATALOG_FIXTURE" CacheDirEnv = "DWS_CACHE_DIR" DefaultMarketBaseURL = "https://mcp.dingtalk.com" )
Variables ¶
This section is empty.
Functions ¶
func NewMCPCommand ¶
func NewSchemaCommand ¶
func NewSchemaCommand(loader CatalogLoader) *cobra.Command
func OverridePriority ¶
OverridePriority delegates to cobracmd.OverridePriority.
func SetOverridePriority ¶
SetOverridePriority delegates to cobracmd.SetOverridePriority.
Types ¶
type EnvironmentLoader ¶
type EnvironmentLoader struct {
LookupEnv func(string) (string, bool)
// CatalogBaseURLOverride allows tests to redirect catalog discovery.
CatalogBaseURLOverride string
// DiscoveryTimeout overrides the default timeout for live registry discovery.
// Zero means use defaultDiscoveryTimeout.
DiscoveryTimeout time.Duration
}
func NewEnvironmentLoader ¶
func NewEnvironmentLoader() EnvironmentLoader
type FixtureLoader ¶
type FixtureLoader struct {
Path string
}
Click to show internal directories.
Click to hide internal directories.