Documentation
¶
Overview ¶
Package agentplugin validates the supported inert Agents API Plugin format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrInvalid = errors.New("invalid or unsupported Plugin bundle")
Functions ¶
func ValidHTTPHeaders ¶ added in v0.0.12
ValidHTTPHeaders reports whether every MCP header has a valid HTTP name and value, with names unique ignoring case.
Types ¶
type Bundle ¶
type Bundle struct {
Metadata Metadata
Files []agentbundle.File
Skills []Skill
MCP []MCPServer
}
type MCPServer ¶
type MCPServer struct {
Name string `json:"-"`
Type string `json:"type,omitempty"`
URL string `json:"url,omitempty"`
BearerTokenEnvVar string `json:"bearer_token_env_var,omitempty"`
HTTPHeaders map[string]string `json:"http_headers,omitempty"`
Command string `json:"command,omitempty"`
Args []string `json:"args,omitempty"`
EnvVars []string `json:"env_vars,omitempty"`
CWD string `json:"cwd,omitempty"`
}
MCPServer is an inert package declaration. Environment variables are resolved from installed user configuration by Runtime, never from the parser's process.
type Skill ¶
type Skill struct {
Metadata agentskill.Metadata `json:"metadata"`
RelativeRoot string `json:"relative_root"`
}
Skill identifies a validated root inside its preserved Plugin package.