@contentful/mcp-server 1.12.2 → 1.12.4-next.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.
- package/dist/index.js +18 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4105,6 +4105,9 @@ var EnvSchema = external_exports.object({
|
|
|
4105
4105
|
"Maximum number of IDs allowed in a single bulk-operation tool call (default: 10, max: 100). Mitigates accidental mass operations from AI hallucinations."
|
|
4106
4106
|
),
|
|
4107
4107
|
ORGANIZATION_ID: external_exports.string().optional().describe("Contentful organization ID"),
|
|
4108
|
+
ENABLE_EXO_TOOLS: external_exports.string().optional().transform((v) => v === "true").describe(
|
|
4109
|
+
'Opt in to Experience Orchestration (ExO) tools. Set to "true" to register the ExO tool collections (component types, data assemblies, experiences, templates, fragments). Defaults to off.'
|
|
4110
|
+
),
|
|
4108
4111
|
CONTENTFUL_DELIVERY_TOKEN: external_exports.string().optional().describe(
|
|
4109
4112
|
"Contentful CDA token (used with export_space to export only published content)"
|
|
4110
4113
|
),
|
|
@@ -4123,7 +4126,7 @@ init_esm_shims();
|
|
|
4123
4126
|
|
|
4124
4127
|
// src/mcpVersion.ts
|
|
4125
4128
|
init_esm_shims();
|
|
4126
|
-
var MCP_VERSION = "1.12.
|
|
4129
|
+
var MCP_VERSION = "1.12.4-next.0";
|
|
4127
4130
|
|
|
4128
4131
|
// src/getVersion.ts
|
|
4129
4132
|
var getVersion = () => {
|
|
@@ -4138,7 +4141,7 @@ function registerAllTools(server) {
|
|
|
4138
4141
|
const parsedProtectedEnvs = env.data.PROTECTED_ENVIRONMENTS ? env.data.PROTECTED_ENVIRONMENTS.split(",").map((e) => e.trim()).filter(Boolean) : void 0;
|
|
4139
4142
|
const protectedEnvironments = parsedProtectedEnvs?.length ? parsedProtectedEnvs : void 0;
|
|
4140
4143
|
const maxBulkSize = env.data.MAX_BULK_SIZE ? Number(env.data.MAX_BULK_SIZE) : void 0;
|
|
4141
|
-
const
|
|
4144
|
+
const baseConfig = {
|
|
4142
4145
|
accessToken: env.data.CONTENTFUL_MANAGEMENT_ACCESS_TOKEN,
|
|
4143
4146
|
host: env.data.CONTENTFUL_HOST,
|
|
4144
4147
|
spaceId: env.data.SPACE_ID,
|
|
@@ -4150,6 +4153,11 @@ function registerAllTools(server) {
|
|
|
4150
4153
|
hostDelivery: env.data.CONTENTFUL_DELIVERY_HOST,
|
|
4151
4154
|
protectedEnvironments,
|
|
4152
4155
|
maxBulkSize
|
|
4156
|
+
};
|
|
4157
|
+
const registerExoTools = env.data.ENABLE_EXO_TOOLS;
|
|
4158
|
+
const tools = new ContentfulMcpTools({
|
|
4159
|
+
...baseConfig,
|
|
4160
|
+
exoToolsRegistered: registerExoTools
|
|
4153
4161
|
});
|
|
4154
4162
|
const aiActionTools = tools.getAiActionTools();
|
|
4155
4163
|
const assetTools = tools.getAssetTools();
|
|
@@ -4175,7 +4183,14 @@ function registerAllTools(server) {
|
|
|
4175
4183
|
orgTools,
|
|
4176
4184
|
spaceTools,
|
|
4177
4185
|
tagTools,
|
|
4178
|
-
taxonomyTools
|
|
4186
|
+
taxonomyTools,
|
|
4187
|
+
...registerExoTools ? [
|
|
4188
|
+
tools.getComponentTypeTools(),
|
|
4189
|
+
tools.getDataAssemblyTools(),
|
|
4190
|
+
tools.getExperienceTools(),
|
|
4191
|
+
tools.getTemplateTools(),
|
|
4192
|
+
tools.getFragmentTools()
|
|
4193
|
+
] : []
|
|
4179
4194
|
];
|
|
4180
4195
|
allToolCollections.forEach((toolCollection) => {
|
|
4181
4196
|
Object.values(toolCollection).forEach((tool) => {
|