@contentful/mcp-server 1.7.4 → 1.7.5

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 CHANGED
@@ -4103,6 +4103,18 @@ if (!env.success && process.env["TEST_TYPE"] !== "unit") {
4103
4103
  process.exit(1);
4104
4104
  }
4105
4105
 
4106
+ // src/getVersion.ts
4107
+ init_esm_shims();
4108
+
4109
+ // src/mcpVersion.ts
4110
+ init_esm_shims();
4111
+ var MCP_VERSION = "1.7.4";
4112
+
4113
+ // src/getVersion.ts
4114
+ var getVersion = () => {
4115
+ return MCP_VERSION;
4116
+ };
4117
+
4106
4118
  // src/tools/register.ts
4107
4119
  function registerAllTools(server) {
4108
4120
  if (!env.success || !env.data) {
@@ -4114,7 +4126,8 @@ function registerAllTools(server) {
4114
4126
  spaceId: env.data.SPACE_ID,
4115
4127
  environmentId: env.data.ENVIRONMENT_ID,
4116
4128
  organizationId: env.data.ORGANIZATION_ID,
4117
- appId: env.data.APP_ID
4129
+ appId: env.data.APP_ID,
4130
+ mcpVersion: getVersion()
4118
4131
  });
4119
4132
  const aiActionTools = tools.getAiActionTools();
4120
4133
  const assetTools = tools.getAssetTools();
@@ -4187,20 +4200,6 @@ function registerAllTools(server) {
4187
4200
  );
4188
4201
  }
4189
4202
 
4190
- // src/getVersion.ts
4191
- init_esm_shims();
4192
- import { readFileSync } from "fs";
4193
- import { join } from "path";
4194
- import { fileURLToPath } from "url";
4195
- import { dirname } from "path";
4196
- var getVersion = () => {
4197
- const __filename2 = fileURLToPath(import.meta.url);
4198
- const __dirname2 = dirname(__filename2);
4199
- const packageJsonPath = join(__dirname2, "../package.json");
4200
- const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf8"));
4201
- return packageJson.version;
4202
- };
4203
-
4204
4203
  // src/index.ts
4205
4204
  if (process.env.NODE_ENV === "development") {
4206
4205
  try {