mcp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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

View Source
const DefaultGKEEndpoint = "https://container.googleapis.com/mcp"

DefaultGKEEndpoint is the public GKE MCP server URL.

View Source
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

func NewGKEToolset(ctx context.Context, cfg GKEConfig) (tool.Toolset, error)

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.

Jump to

Keyboard shortcuts

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