MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / toJson

Method toJson

app/src/API/MCPProtocol.h:162–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160 QStringList tags;
161
162 QJsonObject toJson() const
163 {
164 QJsonObject json;
165 json[QStringLiteral("name")] = name;
166 json[QStringLiteral("description")] = description;
167 json[QStringLiteral("inputSchema")] = inputSchema;
168
169 if (!category.isEmpty())
170 json[QStringLiteral("category")] = category;
171
172 if (!tags.isEmpty())
173 json[QStringLiteral("tags")] = QJsonArray::fromStringList(tags);
174
175 return json;
176 }
177};
178
179/**

Callers 15

processMessageMethod · 0.45
handleToolsListMethod · 0.45
handleToolsCallMethod · 0.45
handleResourcesListMethod · 0.45
handleResourcesReadMethod · 0.45
handlePromptsListMethod · 0.45
writeRawDataMethod · 0.45
broadcastEventMethod · 0.45
processItemsMethod · 0.45
toJsonBytesMethod · 0.45
appendToolCallCardMethod · 0.45
updateToolCallCardMethod · 0.45

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected