MCPcopy Index your code
hub / github.com/eclipse-mosquitto/mosquitto

github.com/eclipse-mosquitto/mosquitto @v2.1.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.1.2 ↗ · + Follow
6,891 symbols 20,397 edges 1,059 files 152 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Tests

Running

The Mosquitto test suite can be invoked using either of

make test
make check

The tests run in series and due to the nature of some of the tests being made can take a while.

Parallel Tests

To run the tests with some parallelism, use

make ptest

This runs up to 20 tests in parallel at once, yielding much faster overall run time at the expense of having up to 20 instances of Python running at once. This is not a particularly CPU intensive option, but does require more memory and may be unsuitable on e.g. a Raspberry Pi.

Dependencies

The tests require Python 3 and CUnit to be installed.

Core symbols most depended-on inside this repo

log__printf
called by 624
src/logging.c
free
called by 312
libcommon/memory_common.c
remove
called by 293
dashboard/src/lib/chart.umd.js
command_check
called by 278
test/broker/dynsec_helper.py
mosquitto_control_command_reply
called by 228
src/control_common.c
ctrl_shell_printf
called by 152
apps/mosquitto_ctrl/ctrl_shell_printf.c
utf8_helper
called by 147
test/unit/libcommon/utf8.c
mosquitto_strdup
called by 141
libcommon/memory_common.c

Shape

Function 4,189
Class 1,572
Method 1,033
Enum 97

Languages

C51%
C++19%
TypeScript17%
Python13%

Modules by API surface

dashboard/src/lib/chart.umd.js951 symbols
src/mosquitto_broker_internal.h107 symbols
test/unit/lib/property_read.c99 symbols
lib/cpp/mosquittopp.cpp84 symbols
test/mosq_test.py70 symbols
dashboard/src/lib/hammer.min.js62 symbols
src/database.c57 symbols
apps/mosquitto_ctrl/ctrl_shell.c55 symbols
dashboard/src/lib/chartjs-plugin-zoom.min.js52 symbols
lib/mosquitto_internal.h50 symbols
include/mosquitto/broker.h49 symbols
dashboard/src/app/dashboard.js48 symbols

For agents

$ claude mcp add mosquitto \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page