@contentful/mcp-server 1.7.18 → 1.7.19
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 +11 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4095,7 +4095,13 @@ var EnvSchema = external_exports.object({
|
|
|
4095
4095
|
APP_ID: external_exports.string().optional().describe("Contentful App ID"),
|
|
4096
4096
|
SPACE_ID: external_exports.string().optional().describe("Contentful Space ID"),
|
|
4097
4097
|
ENVIRONMENT_ID: external_exports.string().optional().default("master").describe("Contentful environment ID"),
|
|
4098
|
-
ORGANIZATION_ID: external_exports.string().optional().describe("Contentful organization ID")
|
|
4098
|
+
ORGANIZATION_ID: external_exports.string().optional().describe("Contentful organization ID"),
|
|
4099
|
+
CONTENTFUL_DELIVERY_TOKEN: external_exports.string().optional().describe(
|
|
4100
|
+
"Contentful CDA token (used with export_space to export only published content)"
|
|
4101
|
+
),
|
|
4102
|
+
CONTENTFUL_DELIVERY_HOST: external_exports.string().optional().describe(
|
|
4103
|
+
"Contentful Delivery API host (used with CONTENTFUL_DELIVERY_TOKEN for custom CDA endpoints)"
|
|
4104
|
+
)
|
|
4099
4105
|
});
|
|
4100
4106
|
var env = EnvSchema.safeParse(process.env);
|
|
4101
4107
|
if (!env.success && process.env["TEST_TYPE"] !== "unit") {
|
|
@@ -4108,7 +4114,7 @@ init_esm_shims();
|
|
|
4108
4114
|
|
|
4109
4115
|
// src/mcpVersion.ts
|
|
4110
4116
|
init_esm_shims();
|
|
4111
|
-
var MCP_VERSION = "1.7.
|
|
4117
|
+
var MCP_VERSION = "1.7.18";
|
|
4112
4118
|
|
|
4113
4119
|
// src/getVersion.ts
|
|
4114
4120
|
var getVersion = () => {
|
|
@@ -4127,7 +4133,9 @@ function registerAllTools(server) {
|
|
|
4127
4133
|
environmentId: env.data.ENVIRONMENT_ID,
|
|
4128
4134
|
organizationId: env.data.ORGANIZATION_ID,
|
|
4129
4135
|
appId: env.data.APP_ID,
|
|
4130
|
-
mcpVersion: getVersion()
|
|
4136
|
+
mcpVersion: getVersion(),
|
|
4137
|
+
deliveryToken: env.data.CONTENTFUL_DELIVERY_TOKEN,
|
|
4138
|
+
hostDelivery: env.data.CONTENTFUL_DELIVERY_HOST
|
|
4131
4139
|
});
|
|
4132
4140
|
const aiActionTools = tools.getAiActionTools();
|
|
4133
4141
|
const assetTools = tools.getAssetTools();
|