server

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection added in v0.0.8

type Connection struct {
	URL      string
	ClientID string
	Tenant   string
}

type Option added in v0.0.3

type Option func(*Server)

func WithConnection added in v0.0.8

func WithConnection(c Connection) Option

func WithElicitation added in v0.0.3

func WithElicitation() Option

func WithGuide added in v0.0.5

func WithGuide(md string) Option

func WithLogger added in v0.0.3

func WithLogger(l *slog.Logger) Option

func WithPersistedConnections added in v0.0.9

func WithPersistedConnections(p []PersistedConnection) Option

func WithStrictConnections added in v0.0.9

func WithStrictConnections() Option

type PersistedConnection added in v0.0.9

type PersistedConnection struct {
	Name     string `json:"name,omitempty"`
	Tenant   string `json:"tenant"`
	ClientID string `json:"clientId"`
}

func ParsePersistedConnections added in v0.0.9

func ParsePersistedConnections(spec string) ([]PersistedConnection, error)

ParsePersistedConnections parses a JSON array of {tenant, clientId, name?}, or "@path" to read that JSON from a file. Empty input means no entries.

type Server

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

func New

func New(runner pwsh.Runner, store *catalog.Store, docsClient *docs.Client, opts ...Option) *Server

func (*Server) MCP

func (s *Server) MCP(version string) *mcp.Server

Jump to

Keyboard shortcuts

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