Initial commit
This commit is contained in:
18
server/config/mcp.go
Normal file
18
server/config/mcp.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user