permcp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config) (async.SimpleTask, error)

Types

type Config

type Config struct {
	// Transport mechanism for the MCP server (e.g., "stdio", "http")
	Transport Transport `yaml:"transport,omitempty"`

	// ListenAddress is the address to listen on for HTTP transport (e.g., ":8000")
	ListenAddress string `yaml:"listen_address,omitempty"`

	// ReadOnly indicates if the server should operate in read-only mode
	ReadOnly bool `yaml:"read_only,omitempty"`

	// Resources is a comma-separated list of resources to register.
	Resources string `yaml:"resources,omitempty"`

	// AllowedResources is the normalized list of resources to register.
	AllowedResources []string `yaml:"-"`

	// PersesServer is the configuration for connecting to the Perses backend server.
	// Supports multiple authentication methods: Authorization (Bearer token),
	// OAuth, BasicAuth, K8sAuth, and NativeAuth.
	PersesServer config.RestConfigClient `yaml:"perses_server"`
}

func ResolveConfig

func ResolveConfig(configFile string) (Config, error)

func (*Config) Verify

func (c *Config) Verify() error

type Transport

type Transport string
const (
	HTTPTransport  Transport = "http"
	STDIOTransport Transport = "stdio"
)

Jump to

Keyboard shortcuts

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