mcp

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CapabilityRefresher added in v0.20.0

type CapabilityRefresher interface {
	RefreshCapabilities(ctx context.Context, server *mcp.Server, serverSession *mcp.ServerSession) 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 added in v0.13.0

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