@x0333/bitrix24-mcp-server 2.3.1 → 2.3.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.
Files changed (2) hide show
  1. package/index.js +9 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -35,14 +35,19 @@ function bitrixPortalUrlFromBase(base) {
35
35
  }
36
36
 
37
37
  const B24_PORTAL_URL = bitrixPortalUrlFromBase(B24_BASE);
38
- const mcpInstructions = B24_PORTAL_URL
39
- ? `Bitrix24 address: ${B24_PORTAL_URL}`
40
- : "Bitrix24 address: take scheme and host from B24_BASE (the part before /rest/ in the webhook URL).";
38
+ if (!B24_PORTAL_URL) {
39
+ console.error("Error: B24_BASE must be a valid absolute URL with a host (e.g., https://domain.bitrix24.ru/rest/1/abcde/).");
40
+ process.exit(1);
41
+ }
42
+
43
+ const taskViewUrlPrefix = `${B24_PORTAL_URL}/company/personal/user/0/tasks/task/view/`;
44
+ const mcpInstructions =
45
+ `Bitrix24 address: ${B24_PORTAL_URL}. When the user needs a link to a task (or to paste one), use ${taskViewUrlPrefix}<task-id>/ — substitute only <task-id> with the numeric task ID from the API. Example: ${taskViewUrlPrefix}9483/`;
41
46
 
42
47
  const server = new Server(
43
48
  {
44
49
  name: "bitrix24-mcp-server",
45
- version: "2.3.0",
50
+ version: "2.3.2",
46
51
  },
47
52
  {
48
53
  capabilities: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x0333/bitrix24-mcp-server",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "description": "Bitrix24 MCP Server for AI Agent Integration.",
5
5
  "main": "index.js",
6
6
  "bin": {