added mcp config
This commit is contained in:
parent
0afdd4fbff
commit
4b388c1b5e
|
@ -17,6 +17,29 @@ type APIConfig struct {
|
|||
Actions map[string]Action `json:"actions" yaml:"actions"`
|
||||
Conditionals map[string]Conditional `json:"conditionals" yaml:"conditionals"`
|
||||
Responses map[string]ResponseConfig `json:"responses" yaml:"responses"`
|
||||
HttpConfig HttpConfig `json:"http" yaml:"http"`
|
||||
}
|
||||
|
||||
type HttpConfig struct {
|
||||
ListenPath string `json:"listenPath" yaml:"listenPath"`
|
||||
Method string `json:"method" yaml:"method"`
|
||||
Next string `json:"next" yaml:"next"`
|
||||
CORSAllowedOrigins []string `json:"corsAllowedOrigins" yaml:"corsAllowedOrigins"`
|
||||
}
|
||||
|
||||
type McpConfig struct {
|
||||
Tools map[string]MCPToolConfig `json:"tools" yaml:"tools"`
|
||||
}
|
||||
|
||||
type MCPToolConfig struct {
|
||||
Name string `json:"name" yaml:"name"`
|
||||
Description string `json:"description" yaml:"description"`
|
||||
Args map[string]ArgType `json:"args" yaml:"args"`
|
||||
}
|
||||
|
||||
type ArgType struct {
|
||||
Name string `json:"name" yaml:"name"`
|
||||
Type string `json:"type" yaml:"type"`
|
||||
}
|
||||
|
||||
type RequestConfig struct {
|
||||
|
|
Loading…
Reference in New Issue