TextAutoGenerateTextMcpProtocolCore::McpRegistryServerInfo Class

The McpRegistryServerInfo class describes a server published in the official MCP registry Author: Laurent Montel <montel@kde.org>. More...

Header: #include <TextAutoGenerateTextMcpProtocolCore/McpRegistryServerInfo>
CMake: find_package(KF6TextAutoGenerateTextMcpProtocolCore REQUIRED)
target_link_libraries(mytarget PRIVATE KF6::TextAutoGenerateTextMcpProtocolCore)

Public Types

struct EnvironmentVariable
struct Icon
struct Package
struct Remote

Public Functions

McpRegistryServerInfo()
~McpRegistryServerInfo()
QString description() const
QString displayName() const
QList<TextAutoGenerateTextMcpProtocolCore::McpRegistryServerInfo::Icon> icons() const
bool isValid() const
QList<TextAutoGenerateTextMcpProtocolCore::McpRegistryServerInfo::Package> packages() const
QList<TextAutoGenerateTextMcpProtocolCore::McpRegistryServerInfo::Remote> remotes() const
QString repositoryUrl() const
void setDescription(const QString &newDescription)
void setIcons(const QList<TextAutoGenerateTextMcpProtocolCore::McpRegistryServerInfo::Icon> &newIcons)
void setPackages(const QList<TextAutoGenerateTextMcpProtocolCore::McpRegistryServerInfo::Package> &newPackages)
void setRemotes(const QList<TextAutoGenerateTextMcpProtocolCore::McpRegistryServerInfo::Remote> &newRemotes)
void setRepositoryUrl(const QString &newRepositoryUrl)
void setVersion(const QString &newVersion)
void setWebsiteUrl(const QString &newWebsiteUrl)
QString version() const
QString websiteUrl() const

Static Public Members

TextAutoGenerateTextMcpProtocolCore::McpRegistryServerInfo fromJson(const QJsonObject &obj)
QList<TextAutoGenerateTextMcpProtocolCore::McpRegistryServerInfo> parseServerList(const QJsonObject &obj, QString &nextCursor)

Detailed Description

Member Function Documentation

McpRegistryServerInfo::McpRegistryServerInfo()

Constructs an empty McpRegistryServerInfo object.

[noexcept] McpRegistryServerInfo::~McpRegistryServerInfo()

Destroys the McpRegistryServerInfo object.

QString McpRegistryServerInfo::description() const

description Returns

See also setDescription().

QString McpRegistryServerInfo::displayName() const

Returns the title if defined, otherwise the name.

[static] TextAutoGenerateTextMcpProtocolCore::McpRegistryServerInfo McpRegistryServerInfo::fromJson(const QJsonObject &obj)

Creates a McpRegistryServerInfo from the "server" object of a registry answer. obj The json object Returns The server info

QList<TextAutoGenerateTextMcpProtocolCore::McpRegistryServerInfo::Icon> McpRegistryServerInfo::icons() const

icons Returns

See also setIcons().

bool McpRegistryServerInfo::isValid() const

Returns true if the server has a name.

QList<TextAutoGenerateTextMcpProtocolCore::McpRegistryServerInfo::Package> McpRegistryServerInfo::packages() const

packages Returns

See also setPackages().

[static] QList<TextAutoGenerateTextMcpProtocolCore::McpRegistryServerInfo> McpRegistryServerInfo::parseServerList(const QJsonObject &obj, QString &nextCursor)

Parses the answer of the registry "servers" endpoint. obj The json answer nextCursor Set to the cursor of the next page, empty when there is no more page Returns The list of valid servers

QList<TextAutoGenerateTextMcpProtocolCore::McpRegistryServerInfo::Remote> McpRegistryServerInfo::remotes() const

remotes Returns

See also setRemotes().

QString McpRegistryServerInfo::repositoryUrl() const

repositoryUrl Returns

See also setRepositoryUrl().

void McpRegistryServerInfo::setDescription(const QString &newDescription)

setDescription newDescription

See also description().

void McpRegistryServerInfo::setIcons(const QList<TextAutoGenerateTextMcpProtocolCore::McpRegistryServerInfo::Icon> &newIcons)

setIcons newIcons

See also icons().

void McpRegistryServerInfo::setPackages(const QList<TextAutoGenerateTextMcpProtocolCore::McpRegistryServerInfo::Package> &newPackages)

setPackages newPackages

See also packages().

void McpRegistryServerInfo::setRemotes(const QList<TextAutoGenerateTextMcpProtocolCore::McpRegistryServerInfo::Remote> &newRemotes)

setRemotes newRemotes

See also remotes().

void McpRegistryServerInfo::setRepositoryUrl(const QString &newRepositoryUrl)

setRepositoryUrl newRepositoryUrl

See also repositoryUrl().

void McpRegistryServerInfo::setVersion(const QString &newVersion)

setVersion newVersion

See also version().

void McpRegistryServerInfo::setWebsiteUrl(const QString &newWebsiteUrl)

setWebsiteUrl newWebsiteUrl

See also websiteUrl().

QString McpRegistryServerInfo::version() const

version Returns

See also setVersion().

QString McpRegistryServerInfo::websiteUrl() const

websiteUrl Returns

See also setWebsiteUrl().