wiRedPanda
Home
About
Download
Try out
API Docs
wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
ServerInfoHandler.h
Go to the documentation of this file.
1
// Copyright 2015 - 2026, GIBIS-UNIFESP and the wiRedPanda contributors
2
// SPDX-License-Identifier: GPL-3.0-or-later
3
4
#pragma once
5
6
#include "
MCP/Server/Handlers/BaseHandler.h
"
7
15
class
ServerInfoHandler
:
public
BaseHandler
16
{
17
public
:
18
explicit
ServerInfoHandler
(
MainWindow
*mainWindow,
const
MCPValidator
*validator);
19
20
QJsonObject
handleCommand
(
const
QString &command,
const
QJsonObject ¶ms,
const
QJsonValue &requestId)
override
;
21
22
private
:
23
QJsonObject handleGetServerInfo(
const
QJsonObject ¶ms,
const
QJsonValue &requestId);
24
QJsonObject handleListCommands(
const
QJsonObject ¶ms,
const
QJsonValue &requestId);
25
QJsonObject handleDescribeCommand(
const
QJsonObject ¶ms,
const
QJsonValue &requestId);
26
};
BaseHandler.h
BaseHandler::BaseHandler
BaseHandler(MainWindow *mainWindow, const MCPValidator *validator)
Definition
BaseHandler.cpp:17
MCPValidator
JSON Schema validator for MCP commands and responses using native json-schema-validator.
Definition
MCPValidator.h:49
MainWindow
The top-level application window hosting the tab bar, menus, element palette, and editor.
Definition
MainWindow.h:47
ServerInfoHandler::handleCommand
QJsonObject handleCommand(const QString &command, const QJsonObject ¶ms, const QJsonValue &requestId) override
Definition
ServerInfoHandler.cpp:90
ServerInfoHandler::ServerInfoHandler
ServerInfoHandler(MainWindow *mainWindow, const MCPValidator *validator)
Definition
ServerInfoHandler.cpp:85
MCP
Server
Handlers
ServerInfoHandler.h
Generated by
1.16.1