@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.
- package/index.js +9 -4
- 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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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.
|
|
50
|
+
version: "2.3.2",
|
|
46
51
|
},
|
|
47
52
|
{
|
|
48
53
|
capabilities: {
|