config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSWURL = "http://localhost:12800/graphql"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MCPServerConfig

type MCPServerConfig struct {
	// SkyWalking OAP URL to target for API requests (e.g. localhost:12800)
	URL string

	// ReadOnly indicates if we should only offer read-only tools
	ReadOnly bool

	// Path to the log file if not stderr
	LogFilePath string
}

MCPServerConfig holds the application configuration.

type SSEServerConfig

type SSEServerConfig struct {
	// SkyWalking OAP URL to target for API requests (e.g. localhost:12800)
	URL string

	// ReadOnly indicates if we should only offer read-only tools
	ReadOnly bool

	// Path to the log file if not stderr
	LogFilePath string

	// LogCommands indicates if we should log commands
	LogCommands bool

	// The host and port to start the sse server on
	Address string

	// Base path for the sse server
	BasePath string
}

SSEServerConfig holds the configuration for Stdio.

type StdioServerConfig

type StdioServerConfig struct {
	// SkyWalking OAP URL to target for API requests (e.g. localhost:12800)
	URL string

	// ReadOnly indicates if we should only offer read-only tools
	ReadOnly bool

	// Path to the log file if not stderr
	LogFilePath string

	// LogCommands indicates if we should log commands
	LogCommands bool
}

StdioServerConfig holds the configuration for Stdio.

type StreamableServerConfig

type StreamableServerConfig struct {
	// SkyWalking OAP URL to target for API requests (e.g. localhost:12800)
	URL string

	// ReadOnly indicates if we should only offer read-only tools
	ReadOnly bool

	// Path to the log file if not stderr
	LogFilePath string

	// LogCommands indicates if we should log commands
	LogCommands bool

	// The host and port to start the Streamable HTTP transport on
	// e.g. ":8080" and the default streamable http endpoint will be "/mcp"
	Address string

	// Base path for the Streamable HTTP transport server
	EndpointPath string
}

Jump to

Keyboard shortcuts

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