@kontent-ai/mcp-server 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,10 +2,10 @@ import { createMapiClient } from "../clients/kontentClients.js";
|
|
|
2
2
|
import { handleMcpToolError } from "../utils/errorHandler.js";
|
|
3
3
|
import { createMcpToolSuccessResponse } from "../utils/responseHelper.js";
|
|
4
4
|
export const registerTool = (server) => {
|
|
5
|
-
server.tool("list-taxonomy-groups-mapi", "Get all taxonomy groups from Management API", {},
|
|
5
|
+
server.tool("list-taxonomy-groups-mapi", "Get all taxonomy groups from Management API", {}, async () => {
|
|
6
6
|
const client = createMapiClient();
|
|
7
7
|
try {
|
|
8
|
-
const response = await client.listTaxonomies().
|
|
8
|
+
const response = await client.listTaxonomies().toAllPromise();
|
|
9
9
|
return createMcpToolSuccessResponse(response.data);
|
|
10
10
|
}
|
|
11
11
|
catch (error) {
|