arbentia-dataverse-mcp 1.0.6 → 1.0.8
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 +3 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as https from 'https';
|
|
2
2
|
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
3
3
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
|
+
import * as crypto from 'crypto';
|
|
4
5
|
import {
|
|
5
6
|
CallToolRequestSchema,
|
|
6
7
|
ListResourcesRequestSchema,
|
|
@@ -147,10 +148,10 @@ async function ARBDownloadInstructions() {
|
|
|
147
148
|
|
|
148
149
|
const url = 'https://arbentiaipdevst.z6.web.core.windows.net/pp/copilot-instructions.md';
|
|
149
150
|
|
|
150
|
-
const downloadedContent = await new Promise
|
|
151
|
+
const downloadedContent = await new Promise((resolve, reject) => {
|
|
151
152
|
https.get(url, (response) => {
|
|
152
153
|
if (response.statusCode === 200) {
|
|
153
|
-
const chunks
|
|
154
|
+
const chunks = [];
|
|
154
155
|
response.on('data', (chunk) => chunks.push(chunk));
|
|
155
156
|
response.on('end', () => resolve(Buffer.concat(chunks).toString('utf8')));
|
|
156
157
|
} else {
|