mcptools

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: AGPL-3.0 Imports: 20 Imported by: 0 modules, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTools

func RegisterTools(srv *mcp.Server, st *store.Store, baseURL *baseurl.BaseURL, opts ...Options)

Types

type CreateSecretInput

type CreateSecretInput struct {
	Content string `` /* 268-byte string literal not displayed */
	File    string `` /* 293-byte string literal not displayed */
	Views   int    `` /* 212-byte string literal not displayed */
	Minutes int    `` /* 221-byte string literal not displayed */
}

type GenerateSecretInput

type GenerateSecretInput struct {
	Length  int    `json:"length,omitempty" jsonschema:"Length of generated secret in characters. Default 32. Range: 1-4096."`
	Charset string `json:"charset,omitempty" jsonschema:"Character set: alphanumeric (default), symbols, hex, base64url."`
	Create  bool   `` /* 135-byte string literal not displayed */
	Views   int    `json:"views,omitempty" jsonschema:"When create=true, max views before deletion. Default 1."`
	Minutes int    `json:"minutes,omitempty" jsonschema:"When create=true, minutes until expiry. Default 1440 (24h)."`
}

type ListSecretsInput

type ListSecretsInput struct{}

type Options

type Options struct {
	// AllowPrivateIPs disables SSRF protection for read_secret.
	// Only set to true in tests that use local httptest servers.
	AllowPrivateIPs bool
}

Options configures MCP tool behavior.

type ReadSecretInput

type ReadSecretInput struct {
	URL       string `` /* 236-byte string literal not displayed */
	File      string `` /* 260-byte string literal not displayed */
	Clipboard bool   `` /* 208-byte string literal not displayed */
}

type RevokeSecretInput

type RevokeSecretInput struct {
	ID          string `json:"id" jsonschema:"The 32-character hex secret ID to permanently delete. Found in the URL path: /s/{id}"`
	DeleteToken string `` /* 138-byte string literal not displayed */
}

Jump to

Keyboard shortcuts

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