mcp

package
v1.2.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ScopeProject    = internalmcp.ScopeProject
	ScopeUser       = internalmcp.ScopeUser
	ScopeLocal      = internalmcp.ScopeLocal
	ScopeEnterprise = internalmcp.ScopeEnterprise

	ServerTypeStdio     = internalmcp.ServerTypeStdio
	ServerTypeHTTP      = internalmcp.ServerTypeHTTP
	ServerTypeSSE       = internalmcp.ServerTypeSSE
	ServerTypeWebSocket = internalmcp.ServerTypeWebSocket
	ServerTypeSDK       = internalmcp.ServerTypeSDK

	// TransportType* values are for ServerConfig.Transport specifically
	// (the low-level Client's transport selector) - a separate type from
	// ServerType* above (McpServerType, used by the higher-level DB-facing
	// McpServerConfig), even though the string values overlap.
	TransportTypeStdio     = internalmcp.TransportTypeStdio
	TransportTypeHTTP      = internalmcp.TransportTypeHTTP
	TransportTypeSSE       = internalmcp.TransportTypeSSE
	TransportTypeWebSocket = internalmcp.TransportTypeWebSocket
)

Variables

This section is empty.

Functions

func AddServer

func AddServer(name string, config McpServerConfig, scope ConfigScope) error

func ParseMcpConfigFromFile

func ParseMcpConfigFromFile(filePath string) (McpJsonConfig, []ValidationError)

func ReconnectServer

func ReconnectServer(ctx context.Context, manager *Manager, serverName string, cwd string) error

Types

type Client added in v1.2.12

type Client = internalmcp.Client

Client is a single MCP server connection, for callers that need a direct, deterministic tool call (e.g. connector.ActionConnector.Act) rather than registering a server's tools into an agent's tool registry for the LLM to decide when to call. Sequence: NewClient, Start, Initialize, then CallTool/ListTools/etc.; Close when done - see MCPClientManager.Connect (internal/tools/system/mcp/tool_manager.go) for the same sequence used internally.

func NewClient added in v1.2.12

func NewClient(config ServerConfig) (*Client, error)

NewClient creates a new MCP client for the given server config. It does not connect - call Start then Initialize on the result before use.

type ConfigScope

type ConfigScope = internalmcp.ConfigScope

type ConnectServerConfig

type ConnectServerConfig = internalmcp.ConnectServerConfig

type IntegrationOptions

type IntegrationOptions = internalmcp.IntegrationOptions

type IntegrationResult

type IntegrationResult = internalmcp.IntegrationResult

type Manager

type Manager = internalmcp.MCPClientManager

func GlobalManager

func GlobalManager() *Manager

type McpJsonConfig

type McpJsonConfig = internalmcp.McpJsonConfig

type McpServerConfig

type McpServerConfig = internalmcp.McpServerConfig

type McpServerType

type McpServerType = internalmcp.McpServerType

type ScopedMcpServerConfig

type ScopedMcpServerConfig = internalmcp.ScopedMcpServerConfig

type ServerConfig

type ServerConfig = internalmcp.ServerConfig

type TransportType

type TransportType = internalmcp.TransportType

type ValidationError

type ValidationError = internalmcp.ValidationError

Jump to

Keyboard shortcuts

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