Help us shape the future of Go! Take the 2026 Go Developer Survey

mcp

package
v0.44.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CapabilityRefresher

type CapabilityRefresher interface {
	RefreshCapabilities(ctx context.Context, server *mcp.Server, serverSession *mcp.ServerSession, serverName string) error
}

CapabilityRefresher interface allows the notification handlers to refresh server capabilities

type Client

type Client interface {
	Initialize(ctx context.Context, params *mcp.InitializeParams, debug bool, serverSession *mcp.ServerSession, server *mcp.Server, refresher CapabilityRefresher) error
	Session() *mcp.ClientSession
	GetClient() *mcp.Client
	AddRoots(roots []*mcp.Root)
}

Client interface wraps the official MCP SDK client with our legacy interface

func NewRemoteMCPClient

func NewRemoteMCPClient(config *catalog.ServerConfig) Client

func NewStdioCmdClient

func NewStdioCmdClient(name string, command string, env []string, args ...string) Client

Jump to

Keyboard shortcuts

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