mirror of
https://github.com/mariocandela/beelzebub.git
synced 2025-07-01 18:47:26 -04:00
Feat: add MCP honeypot support (#199)
* Add MCP honeypot * Add http headers in plain text * Improve code coverage * Refactor README.md
This commit is contained in:
@ -63,6 +63,7 @@ type BeelzebubServiceConfiguration struct {
|
||||
Protocol string `yaml:"protocol"`
|
||||
Address string `yaml:"address"`
|
||||
Commands []Command `yaml:"commands"`
|
||||
Tools []Tool `yaml:"tools"`
|
||||
FallbackCommand Command `yaml:"fallbackCommand"`
|
||||
ServerVersion string `yaml:"serverVersion"`
|
||||
ServerName string `yaml:"serverName"`
|
||||
@ -86,6 +87,20 @@ type Command struct {
|
||||
Name string `yaml:"name"`
|
||||
}
|
||||
|
||||
// Tool is the struct that contains the configurations of the MCP Honeypot
|
||||
type Tool struct {
|
||||
Name string `yaml:"name"`
|
||||
Description string `yaml:"description"`
|
||||
Params []Param `yaml:"params"`
|
||||
Handler string `yaml:"handler"`
|
||||
}
|
||||
|
||||
// Param is the struct that contains the configurations of the parameters of the tools
|
||||
type Param struct {
|
||||
Name string `yaml:"name"`
|
||||
Description string `yaml:"description"`
|
||||
}
|
||||
|
||||
type configurationsParser struct {
|
||||
configurationsCorePath string
|
||||
configurationsServicesDirectory string
|
||||
|
Reference in New Issue
Block a user