bindings

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

func ToolNames added in v0.0.2

func ToolNames() []string

ToolNames returns the names of the tools RegisterTools adds.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL