mcpannotations

package
v1.86.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package mcpannotations defines constants for MCP command annotations

Index

Constants

View Source
const (
	// Destructive marks commands that modify state (create, update, delete operations)
	Destructive = "mcp:destructive"
	// Safe marks commands that only read data (list, view, get operations)
	Safe = "mcp:safe"
	// Interactive marks commands that require an interactive TTY and should be excluded from MCP
	Interactive = "mcp:interactive"
	// Exclude marks commands that should never be exposed via MCP
	Exclude = "mcp:exclude"
)

MCP annotation keys for command classification

Variables

This section is empty.

Functions

func HasAnnotation added in v1.86.0

func HasAnnotation(annotations map[string]string) bool

HasAnnotation checks if the given annotations map contains any valid MCP annotation. Returns false if annotations is nil or contains no MCP annotations. Commands without MCP annotations should not be exposed as MCP tools.

Types

This section is empty.

Jump to

Keyboard shortcuts

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