config

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadSystemPrompt

func LoadSystemPrompt(filePath string) (string, error)

LoadSystemPrompt loads system prompt from file

Types

type Config

type Config struct {
	MCPServers map[string]MCPServerConfig `json:"mcpServers"`
}

Config represents the application configuration

func LoadMCPConfig

func LoadMCPConfig(configFile string) (*Config, error)

LoadMCPConfig loads MCP configuration from file

func (*Config) Validate added in v0.11.0

func (c *Config) Validate() error

Validate validates the configuration

type MCPServerConfig

type MCPServerConfig struct {
	Command       string   `json:"command,omitempty"`
	Args          []string `json:"args,omitempty"`
	URL           string   `json:"url,omitempty"`
	Headers       []string `json:"headers,omitempty"`
	AllowedTools  []string `json:"allowedTools,omitempty"`
	ExcludedTools []string `json:"excludedTools,omitempty"`
}

MCPServerConfig represents configuration for an MCP server

type SystemPromptConfig

type SystemPromptConfig struct {
	SystemPrompt string `json:"systemPrompt"`
}

SystemPromptConfig represents system prompt configuration

Jump to

Keyboard shortcuts

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