This is the front page of the generated API reference, and a map of the public API. To generate the reference:
cmake --build build --target docs
then open build/docs/html/index.html.
The guides are in the notes/ directory of the repository; start with notes/README.md. They are written to be read as Markdown and are not part of the generated reference.
Public headers
Everything you need is in these headers, included as <sonde/...>. Anything else, such as server_p.h, is internal and may change without notice.
| Header | Library | Main entry points |
| sonde/server.h | Sonde::Core | Sonde::Server: listen, register tools and resources, add event sources; Sonde::ServerLimits: caps on sessions, connections, request size and time, concurrent calls, and in WorkerThread mode the time the main thread has to start one; Sonde::ServerThreading: transports on a worker thread |
| sonde/types.h | Sonde::Core | Sonde::ToolDefinition, Sonde::ToolResult, Sonde::ToolCall, Sonde::ResourceDefinition, Sonde::ResourceContents, Sonde::Event, Sonde::LogLevel |
| sonde/eventsource.h | Sonde::Core | Sonde::EventSource |
| sonde/logeventsource.h | Sonde::Core | Sonde::LogEventSource |
| sonde/stalleventsource.h | Sonde::Core | Sonde::StallEventSource: events when the main thread was blocked |
| sonde/objecttree.h | Sonde::Core | Sonde::ObjectTree: object specs, tree providers, QVariant/JSON conversion |
| sonde/schema.h | Sonde::Core | Sonde::Schema: helpers for tool argument schemas |
| sonde/introspectiontools.h | Sonde::Core | Sonde::installIntrospectionTools(), Sonde::installSignalTools(), Sonde::installStateTools() |
| sonde/guitools.h | Sonde::Gui | Sonde::installStandardTools(), Sonde::installWindowTools(), Sonde::installInputTools(), Sonde::installActionTools(), Sonde::installModelTools() |
| sonde/guiintegration.h | Sonde::Gui | Sonde::GuiIntegration, Sonde::Gui |
| sonde/widgetsintegration.h | Sonde::Widgets | Sonde::installWidgetsIntegration() |
| sonde/quickintegration.h | Sonde::Quick | Sonde::installQuickIntegration() |
| sonde/qmlwindowtools.h | Sonde::Quick | Sonde::installQmlWindowTools(): ui_open, ui_close, ui_template_list, ui_template_save, ui_template_delete |
| sonde/qmltemplatetrust.h | Sonde::Quick | Sonde::QmlTemplateTrust, Sonde::TrustRequest, Sonde::TrustFile: asking the application's user to trust a QML template |
| sonde/qmltools.h | Sonde::Quick | Sonde::installQmlTools() (qml_eval, qml_binding and the window tools), Sonde::installQmlEvalTool(), Sonde::installQmlBindingTool() |
The shortest working example
An embeddable Model Context Protocol server.
Definition server.h:92
bool listenFromEnvironment()
Starts the listeners configured by environment variables.
Definition server.cpp:661
void installWidgetsIntegration()
Teaches the GUI tools about Qt Widgets.
Definition widgetsintegration.cpp:301
void installStandardTools(Server &server)
Registers everything above, the QObject introspection tools, a LogEventSource that feeds Qt log outpu...
Definition windowtools.cpp:715
Internal code in this reference
The reference also documents internal classes (such as Sonde::ServerPrivate, Sonde::HttpTransport and Sonde::ToolCallPrivate), test helpers (SondeTest) and the examples, because the project requires every class and function to be documented. These are for contributors. Don't use them from application code.