@softeria/ms-365-mcp-server 0.158.1 → 0.158.2

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.
@@ -1361,7 +1361,7 @@ async function executeGraphTool(tool, config, graphClient, params, authManager,
1361
1361
  /%3D/g,
1362
1362
  "="
1363
1363
  );
1364
- path2 = path2.replace(`{${paramName}}`, encodedValue).replace(`:${paramName}`, encodedValue).replace(`{${camelCaseParamName}}`, encodedValue).replace(`:${camelCaseParamName}`, encodedValue);
1364
+ path2 = path2.replace(`{${paramName}}`, () => encodedValue).replace(`:${paramName}`, () => encodedValue).replace(`{${camelCaseParamName}}`, () => encodedValue).replace(`:${camelCaseParamName}`, () => encodedValue);
1365
1365
  break;
1366
1366
  }
1367
1367
  case "Query":
@@ -1401,7 +1401,7 @@ async function executeGraphTool(tool, config, graphClient, params, authManager,
1401
1401
  const encodedValue = encodeURIComponent(
1402
1402
  escapeIfStringLiteral(tool.path, [paramName, camelCaseParamName], paramValue)
1403
1403
  ).replace(/%3D/g, "=");
1404
- path2 = path2.replace(`{${paramName}}`, encodedValue).replace(`:${paramName}`, encodedValue).replace(`{${camelCaseParamName}}`, encodedValue).replace(`:${camelCaseParamName}`, encodedValue);
1404
+ path2 = path2.replace(`{${paramName}}`, () => encodedValue).replace(`:${paramName}`, () => encodedValue).replace(`{${camelCaseParamName}}`, () => encodedValue).replace(`:${camelCaseParamName}`, () => encodedValue);
1405
1405
  logger.info(`Path param fallback: replaced :${camelCaseParamName} with encoded value`);
1406
1406
  } else if (paramName.toLowerCase() === "accept" && config?.acceptType) {
1407
1407
  headers["Accept"] = `${paramValue}`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@softeria/ms-365-mcp-server",
3
3
  "mcpName": "io.github.Softeria/ms-365-mcp-server",
4
- "version": "0.158.1",
4
+ "version": "0.158.2",
5
5
  "description": " A Model Context Protocol (MCP) server for interacting with Microsoft 365 and Office services through the Graph API",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",