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
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.
Click to show internal directories.
Click to hide internal directories.