Documentation
¶
Index ¶
- type Config
- type MCPCatalog
- func (mc *MCPCatalog) Cleanup()
- func (mc *MCPCatalog) DeletePricingData(server string, toolName string)
- func (mc *MCPCatalog) GetAllPricingData() MCPPricingData
- func (mc *MCPCatalog) GetPricingData(server string, toolName string) (PricingEntry, bool)
- func (mc *MCPCatalog) UpdatePricingData(server string, toolName string, costPerExecution float64)
- type MCPPricingData
- type PricingEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
PricingData MCPPricingData
}
type MCPCatalog ¶
type MCPCatalog struct {
// contains filtered or unexported fields
}
func (*MCPCatalog) DeletePricingData ¶
func (mc *MCPCatalog) DeletePricingData(server string, toolName string)
DeletePricingData deletes the pricing data for the given server and tool name
func (*MCPCatalog) GetAllPricingData ¶
func (mc *MCPCatalog) GetAllPricingData() MCPPricingData
GetAllPricingData returns all the pricing data
func (*MCPCatalog) GetPricingData ¶
func (mc *MCPCatalog) GetPricingData(server string, toolName string) (PricingEntry, bool)
GetPricingData returns the pricing data for the given server and tool name
func (*MCPCatalog) UpdatePricingData ¶
func (mc *MCPCatalog) UpdatePricingData(server string, toolName string, costPerExecution float64)
UpdatePricingData updates the pricing data for the given server and tool name
type MCPPricingData ¶
type MCPPricingData map[string]PricingEntry // Map of [{server_label}/{tool_name}] -> PricingEntry
type PricingEntry ¶
type PricingEntry struct {
Server string `json:"server"`
ToolName string `json:"tool_name"`
CostPerExecution float64 `json:"cost_per_execution"`
}
PricingEntry represents a single MCP server's tool call pricing information
Click to show internal directories.
Click to hide internal directories.