Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
client.h File Reference

Calling tools from the command line over HTTP: sonde tools, describe, call (and sonde TOOL) and session --reset. More...

#include "http.h"
#include <QtCore/QJsonObject>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <optional>

Go to the source code of this file.

Classes

struct  Sonde::Cli::Options
 The options given before the command. More...
class  Sonde::Cli::Client
 An MCP client of the server at a URL, whose session is remembered between runs in a per-user directory, so consecutive commands share it (sequence numbers, log levels). More...
struct  Sonde::Cli::Client::Answer
 An answer to a POST: its status, session and body (JSON, text or nothing). More...

Namespaces

namespace  Sonde
 Embeddable Model Context Protocol server for Qt applications.

Functions

Client Sonde::Cli::clientFrom (const Options &options)
 The client sonde uses with options: –url, $SONDE_URL, this checkout's endpoint.json, or the default.
void Sonde::Cli::toolsCommand (const Options &options, const QString &command, const QStringList &rest)
 sonde tools, describe, call and session, with the arguments after the command in rest.

Detailed Description

Calling tools from the command line over HTTP: sonde tools, describe, call (and sonde TOOL) and session --reset.