added mcp config
This commit is contained in:
parent
0afdd4fbff
commit
52979a1eaf
|
@ -17,6 +17,30 @@ type APIConfig struct {
|
||||||
Actions map[string]Action `json:"actions" yaml:"actions"`
|
Actions map[string]Action `json:"actions" yaml:"actions"`
|
||||||
Conditionals map[string]Conditional `json:"conditionals" yaml:"conditionals"`
|
Conditionals map[string]Conditional `json:"conditionals" yaml:"conditionals"`
|
||||||
Responses map[string]ResponseConfig `json:"responses" yaml:"responses"`
|
Responses map[string]ResponseConfig `json:"responses" yaml:"responses"`
|
||||||
|
HttpConfig HttpConfig `json:"http" yaml:"http"`
|
||||||
|
McpConfig McpConfig `json:"mcp" yaml:"mcp"`
|
||||||
|
}
|
||||||
|
|
||||||
|
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 {
|
type RequestConfig struct {
|
||||||
|
|
Loading…
Reference in New Issue