mcp

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(tap *tapper.Tap, version string, defaults KegDefaults, opts ...ServerOptions) *sdkmcp.Server

NewServer builds an MCP server with all registered tools.

Types

type KegDefaults

type KegDefaults struct {
	tapper.KegTargetOptions
}

KegDefaults holds server-wide keg targeting defaults.

type ServerOptions added in v0.12.0

type ServerOptions struct {
	LicenseText string
	// Logger is the structured logger for invocation logging. When nil,
	// invocation logging is silently skipped.
	Logger *slog.Logger
	// Surface selects the registered tool set. The zero value (SurfaceFull)
	// registers everything, preserving the CLI peer surface.
	Surface Surface
}

ServerOptions holds configuration for creating an MCP server.

type Surface added in v0.23.0

type Surface int

Surface selects which tool groups NewServer registers.

const (
	// SurfaceFull registers every tool — the CLI peer surface and the default.
	SurfaceFull Surface = iota
	// SurfaceHub registers only the per-user node read/write tools appropriate
	// for a remote, OAuth-scoped hub connector (tapper-hub's /mcp endpoint). It
	// omits CLI/local tools (auth_status, config, doctor, integrate, license,
	// local-path file upload/download, archive, locks) and hub-admin tools
	// (keg/namespace administration, flights) — none of which make sense for a
	// remote multi-tenant connector. The hub pairs this with Tap.KegResolver so
	// the registered tools resolve against the caller's catalog.
	SurfaceHub
)

Jump to

Keyboard shortcuts

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