Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
File List
Here is a list of all documented files with brief descriptions:
 examples
  acme-orders
   
main.cpp
"Acme Orders": an order form with a deliberate bug, used by the debugging walkthrough in notes/examples/invisible-overlay.md
  notebook
   
automation.cpp
The notebook's tools, approval and limits
   
automation.h
The notebook's automation interface, done the way a release build should (notes/guide/release.md): off until the user turns it on, visible while on, asking the user before a client gets in, and confirming what destroys data
   
main.cpp
Notebook: a small note-taking application whose automation interface is done the way a release build should (notes/guide/release.md, design 0033)
   
notesstore.cpp
The notes and their undoable commands
   
notesstore.h
The notebook's notes, with undo: the one place both the window and the automation interface change them
  parts-bin
   
main.cpp
"Parts Bin": a small Qt Widgets inventory, used by the walkthrough in notes/examples/widgets-to-qml.md, where an agent writes a matching QML front end for it while it runs
  pump-monitor
   
main.cpp
"Pump Monitor": a sensor dashboard with a deliberate bug, used by the walkthrough in notes/examples/packet-lag.md
  quick
   
main.cpp
Qt Quick demo application with the Sonde debug server embedded
  ticket-triage
   app
    
chorestore.cpp
The chores and their file
    
chorestore.h
The chores and their file, for the Chores application
    
chorestore_test.cpp
Tests for ChoreStore
    
main.cpp
Chores: a small to-do list that keeps its chores in a JSON file
  widgets
   
main.cpp
Qt Widgets demo application with the Sonde debug server embedded
 src
  core
   sonde
    
eventsource.h
Sonde::EventSource, the base class of event streams
    
expected.h
Sonde::Expected, Sonde::Unexpected and Sonde::Error: results that are a value or an error (design 0031)
    
global.h
What every Sonde header includes: the version, and the deprecation macros (design 0031)
    
instance.h
Sonde::instanceKey(): a name for this build of the application (design 0018)
    
introspectiontools.h
Installer for the QObject introspection tools
    
logeventsource.h
Sonde::LogEventSource, which turns Qt log output into events
    
objecttree.h
Sonde::ObjectTree: the application's object tree, object specs and QVariant/JSON conversion
    
privateptr.h
Sonde::PrivatePtr: the owning, const-correct pointer to a class's private part (design 0031)
    
schema.h
Helpers for writing the JSON Schemas of tool arguments
    
server.h
Sonde::Server, the embeddable MCP server
    
session.h
Sessions as the application sees them: who a client is, asking whether to let it in, and the list of connected clients (design 0033)
    
stalleventsource.h
Sonde::StallEventSource: events when the main thread was blocked
    
types.h
Value types shared by the Sonde API: tool definitions and results, asynchronous tool-call handles, resources, log levels and events
    
version.h.in
Sonde's version, for #if (generated by CMake from version.h.in)
   
dispatch.cpp
ServerPrivate's JSON-RPC dispatch: requests and notifications, initialize, tools/call with argument validation, resources, and the published catalog
   
events.cpp
Event buffer, the event_read / event_wait tools and events:// resources
   
eventsource.cpp
Implementation of EventSource
   
global.cpp
Sonde::version(), and what Sonde::Expected calls when it is misused
   
httpparser.cpp
HTTP/1.1 request parsing for the HTTP transport
   
httpparser_p.h
HTTP/1.1 request parsing for the HTTP transport
   
httptransport.cpp
MCP Streamable HTTP transport on a bare QTcpServer
   
instance.cpp
The instance key and the {instance} placeholder (design 0018)
   
instance_p.h
Private: the {instance} placeholder in SONDE_LOCAL and SONDE_HTTP (design 0018)
   
introspectiontools.cpp
The object_tree / object_inspect / object_set / object_invoke tools
   
localtransport.cpp
Newline-delimited JSON-RPC over QLocalServer
   
logeventsource.cpp
LogEventSource: Qt message handler that turns log output into events
   
objecttree.cpp
ObjectTree: providers, object specs, describe() and QVariant/JSON conversion
   
peer.cpp
The peer-process lookups of peer_p.h, for each platform
   
peer_p.h
Private: which process is at the other end of a local connection, and what it is (design 0033)
   
server.cpp
Server, and ServerPrivate's threads, sessions and notifications
   
server_p.h
Internal declarations shared by the core implementation files
   
sessions.cpp
Letting clients in (design 0033): initialize, the application's approval, SessionRequest, and the list of sessions
   
signalcapture_p.h
Shared by signal_watch and signal_trace_start: capturing a signal's arguments, and installing the trace tools
   
signaltools.cpp
The signal_watch / signal_unwatch tools: signal emissions as events
   
signaltrace.cpp
Signal_trace_start / signal_trace_stop: every signal a subtree emits during an action (design 0021)
   
stackcapture.cpp
Private: Sonde::Detail::StackCapture, FrameNamer and formatSamples() (design 0016)
   
stackcapture_p.h
Private: taking a sample of another thread's call stack, and naming its frames (design 0016)
   
stacksampler.cpp
Private: Sonde::Detail::StackSampler (design 0016)
   
stacksampler_p.h
Private: Sonde::Detail::StackSampler, which samples a thread's stack while it is stalled (design 0016)
   
stalleventsource.cpp
Sonde::StallEventSource
   
stalleventsource_p.h
Private: StallEventSource's private part, which the server reaches to switch its stack samples on and off (design 0016)
   
statetools.cpp
State_wait, state_snapshot and state_diff: waiting for and comparing application state
   
threadcheck.cpp
The thread checks of threadcheck_p.h
   
threadcheck_p.h
Private: the loud checks that Sonde's thread-affine functions are called on the right thread (design 0031, R9)
   
toolcall.cpp
ToolCall and ToolCallPrivate: one tool call, its result, progress and cancellation
   
trust.cpp
Where the QML template libraries and the trust file are, and the trust store (designs 0023 and 0030)
   
trust_p.h
Private: where the QML template libraries and the trust file are, and the trust store (designs 0023 and 0030)
   
types.cpp
Implementation of the value types in types.h
  gui
   sonde
    
guiintegration.h
Sonde::GuiIntegration and the Sonde::Gui window helpers
    
guitools.h
Installers for the GUI tool sets (windows, screenshots, input)
   
actiontools.cpp
The action_list tool: the application's commands (QAction, Qt Quick Controls Action)
   
guiintegration.cpp
GuiIntegration registry and the Gui window helpers
   
inputtools.cpp
The input tools' shared parts, the mouse tools, and installInputTools()
   
inputtools_p.h
Private: what the mouse tools (inputtools.cpp) and the keyboard tools (keyboardtools.cpp) share
   
keyboardtools.cpp
Input_keys and input_text: keys, shortcuts and typed text
   
modeltools.cpp
The model_read / model_locate tools: the data in item models, and where cells are shown
   
overflowtools.cpp
The layout_overflow tool: which items below an object stick out of it (design 0017)
   
overflowtools_p.h
Private: installs layout_overflow (overflowtools.cpp), for installWindowTools()
   
windowtools.cpp
The app_info, window_list, window_resize, screenshot, object_at and layout_explain tools, and installStandardTools()
  quick
   sonde
    
qmltemplatetrust.h
Asking the application's user to trust a QML template (design 0023)
    
qmltools.h
The qml_eval and qml_binding tools, and installQmlTools(): everything in Sonde::Quick that needs a server
    
qmlwindowtools.h
The ui_open / ui_close tools: windows written in QML by the client
    
quickintegration.h
Qt Quick support for the GUI tools
   
qmlbindingtools.cpp
The qml_binding tool: which properties of an object are bound now (design 0022)
   
qmldebugclient.cpp
QmlDebug: an in-process client of the QML engine debug service (design 0022, step 2a)
   
qmldebugclient_p.h
An in-process client of the QML engine debug service (design 0022, step 2a)
   
qmltemplates.cpp
The QML template libraries, their headers, and the trust store (design 0023)
   
qmltemplates_p.h
The QML template libraries, their headers, and the trust store (design 0023)
   
qmltemplatetools.cpp
Ui_template_list, ui_template_save and ui_template_delete: the QML template libraries (design 0023)
   
qmltools.cpp
The qml_eval tool
   
qmlwindowtools.cpp
The ui_open / ui_close tools, and the QML template library tools (design 0023)
   
quickintegration.cpp
GuiIntegration for Qt Quick
   
quickintegration_p.h
The part of installQuickIntegration() that other Sonde::Quick code needs
  widgets
   sonde
    
widgetsintegration.h
Qt Widgets support for the GUI tools
   
widgetsintegration.cpp
GuiIntegration for Qt Widgets
 tests
  fuzz
   
fuzz_http_parser.cpp
Fuzzes the HTTP request parser with arbitrary bytes, checking its invariants
   
fuzz_json_variant.cpp
Fuzzes QVariant/JSON conversion and object-spec lookup
   
fuzz_jsonrpc.cpp
Fuzzes JSON-RPC dispatch (ServerPrivate::handleMessage) with arbitrary message lines, as a client would send them over the local socket
  gui
   
guifixture.h
Shared fixture for the GUI tests: a server with every tool and integration installed, a Qt Widgets window and a Qt Quick window
  support
   
testobject.h
A QObject with properties and methods of many types, used to test introspection and QVariant/JSON conversion
   
testsupport.cpp
Implementation of the test helpers in testsupport.h
   
testsupport.h
Helpers shared by the Sonde unit tests: event-loop waiting and in-process MCP clients for the local-socket and HTTP transports
 tools
  bridge
   
bridge.cpp
The bridge between stdio and a Sonde local socket server, which sonde-bridge and sonde bridge both run (design 0030)
   
bridge.h
The bridge between stdio and a Sonde local socket server: sonde-bridge runs it, and so does sonde bridge, in its own process (design 0030)
   
main.cpp
Sonde-bridge: exposes a Sonde local-socket server as a stdio MCP server
  cli
   
arguments.cpp
A command's options read as Python's argparse read them
   
arguments.h
A command's options read as Python's argparse read them in the Python sonde: flags (abbreviated if unambiguous), -h, --, and the same messages
   
bridgecommand.cpp
sonde bridge: an MCP client's stdio connection to this checkout's application, or to one in a container (--docker)
   
bridgecommand.h
sonde bridge: an MCP client's stdio connection to this checkout's application, or to one in a container (--docker)
   
client.cpp
Calling tools from the command line over HTTP (was mcpcall.py)
   
client.h
Calling tools from the command line over HTTP: sonde tools, describe, call (and sonde TOOL) and session --reset
   
commands.cpp
The catalogue of sonde's commands (design 0036), and --help made from it
   
commands.h
The catalogue of sonde's commands: the one description from which --help, each command's -h and parsing, the man pages and the shell completions all come (design 0036)
   
common.cpp
Stopping, printing, and JSON values written as the Python sonde wrote them
   
common.h
What the sonde command's parts share: stopping with a status, printing, and JSON values written as the Python sonde wrote them (design 0030)
   
completion.cpp
Shell completion for sonde and sonde-bridge (design 0036)
   
completion.h
Shell completion for sonde and sonde-bridge (design 0036): the scripts, written from the command catalogue, and what they ask sonde for
   
describe.cpp
How sonde tools and sonde describe show a tool
   
describe.h
How sonde tools and sonde describe show a tool: its first sentence, or its description and arguments wrapped as Python's textwrap wraps them
   
endpoints.cpp
This checkout's endpoints, with {instance} resolved (designs 0018 and 0019)
   
endpoints.h
This checkout's endpoints, with {instance} resolved (designs 0018 and 0019), and asking a running copy which port it took
   
http.cpp
Plain HTTP requests, made one at a time and waited for
   
http.h
Plain HTTP requests, made one at a time and waited for, as sonde makes them
   
main.cpp
sonde: drive a Qt application with Sonde in it, for an AI agent (designs 0028 and 0030)
   
manpage.cpp
The man pages of sonde and sonde-bridge (design 0036)
   
manpage.h
The man pages of sonde and sonde-bridge, written from the command catalogue (design 0036)
   
migrate.cpp
sonde migrate: moving a project's files from the names before 0.5 (design 0028)
   
migrate.h
sonde migrate: moving a project's files from the names before 0.5 (design 0028)
   
processes.h
What sonde needs from the platform to run the application (design 0030): start it in a process group of its own, know whether a pid is still the process it started, and stop it with what it started
   
processinfo.cpp
Whether a pid is still the process sonde started: when it started, and whether it is alive (design 0030)
   
processstart.cpp
Starting the application in a process group of its own (design 0030)
   
processstop.cpp
Stopping the application and what it started (design 0030)
   
project.cpp
A project's files under .sonde/, and its configuration (design 0028)
   
project.h
A project's files under .sonde/, and its configuration (design 0028)
   
replaceprocess.cpp
Handing the terminal over to another program (design 0030)
   
replaceprocess.h
Handing the terminal over to another program, as Python's os.exec*() did
   
run.cpp
Running the application: sonde start, stop, status and log (design 0028)
   
run.h
Running the application: sonde start (and restart), stop, status and log (design 0028)
   
symbolize.cpp
sonde symbolize (design 0016)
   
symbolize.h
sonde symbolize: names the frames of stack samples that the application could not name itself (design 0016)
   
trustcommand.cpp
sonde trust: trusting the QML templates and components of a library (design 0023)
   
trustcommand.h
sonde trust: trusting the QML templates and components of a library (design 0023)