Documentation
¶
Overview ¶
Package mcp is the public façade over the internal MCP subsystem that backs the list_mcp_resources / read_mcp_resource / mcp_auth tools and the SSE/HTTP transports.
Index ¶
Constants ¶
const ( TransportStdio = mcppkg.TransportStdio TransportSSE = mcppkg.TransportSSE TransportHTTP = mcppkg.TransportHTTP TransportWebSocket = mcppkg.TransportWebSocket TransportManagedProxy = mcppkg.TransportManagedProxy TransportSDK = mcppkg.TransportSDK )
Variables ¶
This section is empty.
Functions ¶
func AddServerFromConfig ¶
Types ¶
type AuthState ¶
func NewAuthState ¶
func NewAuthState() *AuthState
type McpResourceContent ¶
type McpResourceContent = mcppkg.McpResourceContent
MCP resource introspection surface (used by list_mcp_resources, read_mcp_resource, mcp_auth tools).
type McpResourceInfo ¶
type McpResourceInfo = mcppkg.McpResourceInfo
MCP resource introspection surface (used by list_mcp_resources, read_mcp_resource, mcp_auth tools).
type Provider ¶
MCP resource introspection surface (used by list_mcp_resources, read_mcp_resource, mcp_auth tools).
func NewRegistryProvider ¶
NewRegistryProvider bundles a *Registry + *AuthState into a Provider. authState may be nil; in that case all known servers report status "connected".
type ResourceClient ¶
type ResourceClient = mcppkg.ResourceClient
MCP resource introspection surface (used by list_mcp_resources, read_mcp_resource, mcp_auth tools).
type ServerStatus ¶
type ServerStatus = mcppkg.ServerStatus
MCP resource introspection surface (used by list_mcp_resources, read_mcp_resource, mcp_auth tools).
type Transport ¶
func NewTransport ¶
func NewTransport(cfg TransportConfig) (Transport, error)
NewTransport builds a Transport from cfg. SSE/HTTP transports honor cfg.AuthFunc when non-nil — the closure is invoked on every request to obtain a fresh "Authorization" header.
type TransportConfig ¶
type TransportConfig = mcppkg.TransportConfig
type TransportType ¶
type TransportType = mcppkg.TransportType