mcpserver

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

Adapter to monitor mcp services on registry center

func (*Adapter) Apply

func (a *Adapter) Apply() error

Apply inits the registries according to the configuration

func (*Adapter) Config

func (a *Adapter) Config() any

Config returns the config of the adapter

func (*Adapter) Start

func (a *Adapter) Start()

Start starts the adapter

func (*Adapter) Stop

func (a *Adapter) Stop()

Stop stops the adapter

type AdapterConfig

type AdapterConfig struct {
	Registries map[string]model.Registry `yaml:"registries" json:"registries" mapstructure:"registries"`
}

AdapterConfig holds configuration for multiple registries

type McpServerInfo

type McpServerInfo struct {
	ServerID string            `json:"server_id"`
	Endpoint string            `json:"endpoint"`
	Protocol string            `json:"protocol"`
	Metadata map[string]string `json:"metadata"`
}

McpServerInfo represents an MCP server instance from service discovery

type Plugin

type Plugin struct{}

Plugin to monitor mcp services on registry center

func (*Plugin) CreateAdapter

func (p *Plugin) CreateAdapter(a *model.Adapter) (adapter.Adapter, error)

CreateAdapter returns the mcp server adapter

func (*Plugin) Kind

func (p *Plugin) Kind() string

Kind returns the identifier of the plugin

Directories

Path Synopsis
common

Jump to

Keyboard shortcuts

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