Documentation
¶
Overview ¶
Package mcp implements a Model Context Protocol server for aws-probe.
Use Register to attach tools, resources, and prompts to an existing MCP server (for example kubectl-netdrill with --external-tools). Use Run for a standalone stdio server via the aws-probe mcp command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultLoadConfig ¶
DefaultLoadConfig returns the standard aws-probe AWS config loader with credential checks.
Types ¶
type Config ¶
type Config struct {
Region string
Output string // table, json, csv (reserved for future formatted tools)
Theme string
}
Config holds optional defaults for MCP tool behavior.
type Deps ¶
type Deps struct {
LoadConfig func(context.Context) (aws.Config, error)
Config Config
// Optional factories for unit tests. Nil uses production SDK clients.
S3 func(aws.Config) s3API
SQS func(aws.Config) sqsAPI
Secrets func(aws.Config) secretsAPI
MSK func(aws.Config) mskAPI
IAM func(aws.Config) iamAPI
SNS func(aws.Config) internalsns.TopicsLister
STS func(aws.Config) whoami.STSAPI
CloudFront func(aws.Config) (internalcf.ClientAPI, internalcf.ACMClientAPI)
}
Deps bundles dependencies for MCP registration and tool handlers.
Click to show internal directories.
Click to hide internal directories.