Documentation
¶
Overview ¶
Package mcp wires MCP toolsets for the workloads mast ships. The spike scope covers only the gke server (auth via Google OAuth 2.0 with Application Default Credentials); future servers slot in as additional NewXxxToolset constructors.
Index ¶
Constants ¶
const DefaultGKEEndpoint = "https://container.googleapis.com/mcp"
DefaultGKEEndpoint is the public GKE MCP server URL.
const DefaultGKEScope = "https://www.googleapis.com/auth/cloud-platform"
DefaultGKEScope is the OAuth 2.0 scope the GKE MCP server accepts. Broad but matches core-agent's recipe and gke-mcp's own docs.
Variables ¶
This section is empty.
Functions ¶
func NewGKEToolset ¶
NewGKEToolset builds a tool.Toolset backed by the GKE MCP server, authenticated via Google OAuth 2.0 from Application Default Credentials. Fails fast if credentials cannot be loaded or an initial token cannot be fetched — see newGoogleAuthClient for the exact failure modes.
Types ¶
type GKEConfig ¶
type GKEConfig struct {
// Endpoint is the MCP server URL. Defaults to DefaultGKEEndpoint.
Endpoint string
// Scopes is the list of OAuth 2.0 scopes to request on the
// access token. Defaults to []string{DefaultGKEScope}.
Scopes []string
// ToolFilter, when non-nil, restricts which of the server's tools
// are exposed to the agent. Applied at first-fetch time by
// mcptoolset.
ToolFilter tool.Predicate
// Name is a diagnostic label for the toolset. Defaults to "gke".
Name string
}
GKEConfig configures the GKE MCP toolset.