Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Gateway Gateway `mapstructure:"gateway"`
MCPServer Servers `mapstructure:"mcpServers"`
Redis *RedisConfig `mapstructure:"redis"`
SQLite *SQLiteConfig `mapstructure:"sqlite"`
Telemetry telemetry.Config `mapstructure:"telemetry"`
}
type Gateway ¶
type MCPTransport ¶
type MCPTransport string
const ( MCPTransportHTTP MCPTransport = "http" MCPTransportStdio MCPTransport = "stdio" )
type RedisConfig ¶
type RedisConfig struct {
URL string `mapstructure:"url"`
Addrs []string `mapstructure:"addrs"`
User string `mapstructure:"user"`
Password string `mapstructure:"password"`
DB int `mapstructure:"db"`
MasterName string `mapstructure:"master_name"`
TLS bool `mapstructure:"tls"`
ClusterMode bool `mapstructure:"cluster_mode"`
}
type SQLiteConfig ¶ added in v1.1.0
type SQLiteConfig struct {
// Path はSQLiteデータベースファイルのパス。
// ":memory:" を指定するとインメモリDBとして動作する。
Path string `mapstructure:"path"`
}
SQLiteConfig はSQLiteストレージの設定。
type Server ¶
type Server struct {
Name string
Description string `mapstructure:"description"`
BaseURL string `mapstructure:"baseURL"`
Spec string `mapstructure:"spec"` // ファイル or http(s)(OpenAPI モード)
ExtraHeaders map[string]string `mapstructure:"headers"`
AuthValue *AuthValue `mapstructure:"authValue"`
OAuth2 *OAuth2 `mapstructure:"oauth2"`
// MCP バックエンドモード用(Spec が空のとき有効)
Transport MCPTransport `mapstructure:"transport"`
URL string `mapstructure:"url"` // streamable_http 用
Command string `mapstructure:"command"` // stdio 用
Args []string `mapstructure:"args"`
Env map[string]string `mapstructure:"env"`
}
func (*Server) IsMCPBackend ¶
IsMCPBackend はこの Server が MCP バックエンドモードかどうかを返す。 Spec が空で Transport が指定されている場合に MCP バックエンドモードとなる。
Click to show internal directories.
Click to hide internal directories.