mcp

package
v0.44.3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 17 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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