added mcp config

This commit is contained in:
Kofo Okesola 2025-06-26 11:16:18 +01:00
parent 0afdd4fbff
commit 4b388c1b5e
1 changed files with 23 additions and 0 deletions

View File

@ -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 {