mcp

package
v0.0.0-...-23898a9 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 2 Imported by: 0

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

View Source
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

func AddServerFromConfig(ctx context.Context, r *Registry, name string, cfg TransportConfig) error

Types

type AuthState

type AuthState = mcppkg.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

type Provider = mcppkg.Provider

MCP resource introspection surface (used by list_mcp_resources, read_mcp_resource, mcp_auth tools).

func NewRegistryProvider

func NewRegistryProvider(r *Registry, a *AuthState) Provider

NewRegistryProvider bundles a *Registry + *AuthState into a Provider. authState may be nil; in that case all known servers report status "connected".

type Registry

type Registry = mcppkg.Registry

func NewRegistry

func NewRegistry() *Registry

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

type Transport = mcppkg.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

Directories

Path Synopsis
Package oauth is the public façade over the internal MCP OAuth broker.
Package oauth is the public façade over the internal MCP OAuth broker.

Jump to

Keyboard shortcuts

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