Skip to main content
Glama

Beelzebub MCP Honeypot

protocol_manager.go1.19 kB
// Package protocols is responsible for managing the different protocols package protocols import ( "github.com/mariocandela/beelzebub/v3/parser" "github.com/mariocandela/beelzebub/v3/tracer" ) // ServiceStrategy is the common interface that each protocol honeypot implements type ServiceStrategy interface { Init(beelzebubServiceConfiguration parser.BeelzebubServiceConfiguration, tracer tracer.Tracer) error } type ProtocolManager struct { strategy ServiceStrategy tracer tracer.Tracer } // InitProtocolManager is the method that initializes the protocol manager, receving the concrete tracer and the concrete service func InitProtocolManager(tracerStrategy tracer.Strategy, serviceStrategy ServiceStrategy) *ProtocolManager { return &ProtocolManager{ tracer: tracer.GetInstance(tracerStrategy), strategy: serviceStrategy, } } func (pm *ProtocolManager) SetProtocolStrategy(strategy ServiceStrategy) { pm.strategy = strategy } // InitService is the method that initializes the honeypot func (pm *ProtocolManager) InitService(beelzebubServiceConfiguration parser.BeelzebubServiceConfiguration) error { return pm.strategy.Init(beelzebubServiceConfiguration, pm.tracer) }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mariocandela/beelzebub'

If you have feedback or need assistance with the MCP directory API, please join our Discord server