Documentation
¶
Overview ¶
Package bindings exposes Dapr output bindings as an MCP tool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTools ¶
func RegisterTools(server *mcp.Server, client BindingsClient, metrics *telemetry.ToolMetrics)
RegisterTools registers the invoke_output_binding tool on server. metrics may be nil.
Types ¶
type BindingsClient ¶
type BindingsClient interface {
InvokeBinding(ctx context.Context, in *dapr.InvokeBindingRequest) (*dapr.BindingEvent, error)
}
BindingsClient defines the interface for bindings operations.
type InvokeBindingArgs ¶
type InvokeBindingArgs struct {
BindingName string `json:"bindingName" jsonschema:"The name of the Dapr output binding component (e.g., 'storage-binding')."`
Operation string `` /* 140-byte string literal not displayed */
Data string `json:"data,omitempty" jsonschema:"The message or data payload to send to the external system, typically a JSON string."`
Metadata map[string]string `` /* 161-byte string literal not displayed */
}
InvokeBindingArgs are the arguments of the invoke_output_binding tool.