Initial commit

This commit is contained in:
2026-04-07 09:03:48 +08:00
commit c9ffb52b7f
713 changed files with 111641 additions and 0 deletions

18
server/config/mcp.go Normal file
View File

@@ -0,0 +1,18 @@
package config
type MCP struct {
Name string `mapstructure:"name" json:"name" yaml:"name"`
Version string `mapstructure:"version" json:"version" yaml:"version"`
Path string `mapstructure:"path" json:"path" yaml:"path"`
Addr int `mapstructure:"addr" json:"addr" yaml:"addr"`
BaseURL string `mapstructure:"base_url" json:"base_url" yaml:"base_url"`
UpstreamBaseURL string `mapstructure:"upstream_base_url" json:"upstream_base_url" yaml:"upstream_base_url"`
AuthHeader string `mapstructure:"auth_header" json:"auth_header" yaml:"auth_header"`
RequestTimeout int `mapstructure:"request_timeout" json:"request_timeout" yaml:"request_timeout"`
// Deprecated fields kept for backward compatibility with older configs.
SSEPath string `mapstructure:"sse_path" json:"sse_path" yaml:"sse_path"`
MessagePath string `mapstructure:"message_path" json:"message_path" yaml:"message_path"`
UrlPrefix string `mapstructure:"url_prefix" json:"url_prefix" yaml:"url_prefix"`
Separate bool `mapstructure:"separate" json:"separate" yaml:"separate"`
}