TextAutoGenerateTextMcpProtocolCore::McpServer Class
The McpServer class Author: Laurent Montel <montel@kde.org>. More...
| Header: | #include <TextAutoGenerateTextMcpProtocolCore/McpServer> |
Public Functions
| McpServer() | |
| ~McpServer() | |
| QStringList | allowedTools() const |
| void | createUniqueIdentifier() |
| bool | enabled() const |
| bool | filterTools() const |
| QIcon | icon() const |
| QString | iconName() const |
| QByteArray | identifier() const |
| bool | isToolAllowed(const QString &toolName) const |
| bool | isValid() const |
| void | load(const KConfigGroup &config) |
| QString | name() const |
| void | save(KConfigGroup &config) const |
| void | setAllowedTools(const QStringList &newAllowedTools) |
| void | setEnabled(bool newEnabled) |
| void | setFilterTools(bool newFilterTools) |
| void | setIconName(const QString &newIconName) |
| void | setIdentifier(const QByteArray &newIdentifier) |
| void | setName(const QString &newName) |
| void | setSettings(TextAutoGenerateTextMcpProtocolCore::McpProtocolSettings newSettings) |
| void | setTransportType(TextAutoGenerateTextMcpProtocolCore::McpProtocolPlugin::TransportType newServerType) |
| TextAutoGenerateTextMcpProtocolCore::McpProtocolSettings | settings() const |
| TextAutoGenerateTextMcpProtocolCore::McpProtocolPlugin::TransportType | transportType() const |
| bool | operator==(const TextAutoGenerateTextMcpProtocolCore::McpServer &other) const |
Static Public Members
| TextAutoGenerateTextMcpProtocolCore::McpProtocolPlugin::TransportType | convertTransportTypeFromString(const QString &str) |
| QString | convertTransportTypeToString(TextAutoGenerateTextMcpProtocolCore::McpProtocolPlugin::TransportType type) |
| QString | transportTypeI18n(TextAutoGenerateTextMcpProtocolCore::McpProtocolPlugin::TransportType type) |
Detailed Description
Member Function Documentation
McpServer::McpServer()
McpServer
[noexcept] McpServer::~McpServer()
QStringList McpServer::allowedTools() const
allowedTools Returns names of tools which can be used when tools are filtered
See also setAllowedTools().
[static] TextAutoGenerateTextMcpProtocolCore::McpProtocolPlugin::TransportType McpServer::convertTransportTypeFromString(const QString &str)
convertTransportTypeFromString str Returns
[static] QString McpServer::convertTransportTypeToString(TextAutoGenerateTextMcpProtocolCore::McpProtocolPlugin::TransportType type)
convertTransportTypeToString type Returns
void McpServer::createUniqueIdentifier()
createUniqueIdentifier
bool McpServer::enabled() const
enabled Returns
See also setEnabled().
bool McpServer::filterTools() const
filterTools Returns true when only allowed tools can be used
See also setFilterTools().
QIcon McpServer::icon() const
icon Returns
QString McpServer::iconName() const
iconName Returns
See also setIconName().
QByteArray McpServer::identifier() const
identifier Returns
See also setIdentifier().
bool McpServer::isToolAllowed(const QString &toolName) const
isToolAllowed toolName Returns true when tool toolName can be used (tools are not filtered or tool is allowed)
bool McpServer::isValid() const
isValid Returns
void McpServer::load(const KConfigGroup &config)
load config
QString McpServer::name() const
name Returns
See also setName().
void McpServer::save(KConfigGroup &config) const
save config
void McpServer::setAllowedTools(const QStringList &newAllowedTools)
setAllowedTools newAllowedTools
See also allowedTools().
void McpServer::setEnabled(bool newEnabled)
setEnabled newEnabled
See also enabled().
void McpServer::setFilterTools(bool newFilterTools)
setFilterTools newFilterTools
See also filterTools().
void McpServer::setIconName(const QString &newIconName)
setIconName newIconName
See also iconName().
void McpServer::setIdentifier(const QByteArray &newIdentifier)
setIdentifier newIdentifier
See also identifier().
void McpServer::setName(const QString &newName)
setName newName
See also name().
void McpServer::setSettings(TextAutoGenerateTextMcpProtocolCore::McpProtocolSettings newSettings)
setSettings newSettings
See also settings().
void McpServer::setTransportType(TextAutoGenerateTextMcpProtocolCore::McpProtocolPlugin::TransportType newServerType)
setTransportType newServerType
See also transportType().
TextAutoGenerateTextMcpProtocolCore::McpProtocolSettings McpServer::settings() const
settings Returns
TextAutoGenerateTextMcpProtocolCore::McpProtocolPlugin::TransportType McpServer::transportType() const
transportType Returns
See also setTransportType().
[static] QString McpServer::transportTypeI18n(TextAutoGenerateTextMcpProtocolCore::McpProtocolPlugin::TransportType type)
transportTypeI18n type Returns