secrets

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: 9 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 secrets exposes the Dapr secrets building block as MCP tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTools

func RegisterTools(server *mcp.Server, client SecretsClient, metrics *telemetry.ToolMetrics)

RegisterTools registers the get_secret and get_bulk_secrets tools 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 GetBulkSecretArgs

type GetBulkSecretArgs struct {
	StoreName string            `json:"storeName" jsonschema:"The name of the configured Dapr secret store component (e.g., 'vault')."`
	Metadata  map[string]string `json:"metadata,omitempty" jsonschema:"Optional per-request metadata for the bulk retrieval operation."`
}

GetBulkSecretArgs are the arguments of the get_bulk_secrets tool.

type GetSecretArgs

type GetSecretArgs struct {
	StoreName  string            `json:"storeName" jsonschema:"The name of the configured Dapr secret store component (e.g., 'vault')."`
	SecretName string            `json:"secretName" jsonschema:"The specific name of the secret to retrieve (e.g., 'db-credentials')."`
	Metadata   map[string]string `` /* 149-byte string literal not displayed */
}

GetSecretArgs are the arguments of the get_secret tool.

type SecretsClient

type SecretsClient interface {
	GetSecret(ctx context.Context, storeName, key string, meta map[string]string) (map[string]string, error)
	GetBulkSecret(ctx context.Context, storeName string, meta map[string]string) (map[string]map[string]string, error)
}

SecretsClient defines the interface for secrets operations.

Jump to

Keyboard shortcuts

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