How maicek/go-mib-browser works
go-mib-browser is an SNMP MIB browser for network engineers, with both an ImGui desktop interface and an MCP server interface. Users load and explore MIB definitions, select or configure devices, issue GET or WALK requests, and inspect or export results; MCP clients can invoke corresponding MIB and device tools. The diagram preserves code generation and persistent device management as additional capabilities. Several implementation details are unsampled, so links to those features are omitted rather than inferred.
Main entry points: actions.go GET and WALK actions · smi.go MIB model and parsing · handlers.go MCP tool handlers · window.go Desktop runtime
Components 19
Application entrypoints
- Desktop runtime
cmd/mib-browser/window.go - Mode selection
cmd/mib-browser/main.go - MCP server
mcp/server.go
MIB exploration
- MIB model and parsing
smi/smi.go - MIB persistence
smi/persistance.go - Native MIB definitions
smi/native - SNMP code generation
codegen/codegen.go
Devices and SNMP
- Device settings
devices/devices.go - Device persistence
devices/persistance.go - SNMP client
snmp/snmp.go
User interfaces and MCP
- GUI panels
gui/gui.go - MIB tree view
gui/node.go - GET and WALK actions
gui/actions.go - Results and export
gui/results.go - Device management UI
gui/devices.go - MCP tool handlers
mcp/handlers.go
Other components
- Desktop user
- MCP client
- SNMP device
Connections 21
- Desktop user → Desktop runtime: uses
cmd/mib-browser/window.go - Desktop runtime → MIB model and parsing: initializes
cmd/mib-browser/window.go - Desktop runtime → GUI panels: renders
cmd/mib-browser/window.go - Mode selection → MCP server: starts stdio mode
cmd/mib-browser/main.go - Mode selection → Desktop runtime: starts GUI mode
cmd/mib-browser/main.go - MCP client → MCP server: invokes tools
README.md - MCP server → MCP tool handlers: registers tools
mcp/server.go - GUI panels → MIB tree view: renders tree
gui/gui.go - MIB tree view → GET and WALK actions: starts GET or WALK
gui/node.go - GET and WALK actions → MIB model and parsing: resolves OID
gui/actions.go - GET and WALK actions → Device settings: gets selection
gui/actions.go - GET and WALK actions → SNMP client: sends requests
gui/actions.go - SNMP client → SNMP device: queries
snmp/snmp.go - GET and WALK actions → Results and export: adds results
gui/actions.go - Device management UI → Device settings: manages devices
gui/devices.go - Device settings → Device persistence: persists settings
- MCP tool handlers → MIB model and parsing: resolves and loads MIBs
mcp/handlers.go - MCP tool handlers → Device settings: uses saved devices
mcp/handlers.go - MCP tool handlers → SNMP client: performs SNMP requests
mcp/handlers.go - MIB model and parsing → SNMP code generation: supplies MIB model
codegen/codegen.go - Native MIB definitions → MIB model and parsing: provides definitions