@myspec/mcp-server 0.1.0-next.5 → 0.1.0-next.7
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 +9 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1150,7 +1150,9 @@ var HttpAttachmentClient = class {
|
|
|
1150
1150
|
const baseUrl = this.httpClient.getBaseUrl().replace(/\/$/, "");
|
|
1151
1151
|
const url = `${baseUrl}/project/v1/attachments/${attachmentId}/content`;
|
|
1152
1152
|
const attempt = async () => {
|
|
1153
|
-
const blob = new Blob([content], {
|
|
1153
|
+
const blob = new Blob([content], {
|
|
1154
|
+
type: "application/octet-stream"
|
|
1155
|
+
});
|
|
1154
1156
|
const response = await fetch(url, {
|
|
1155
1157
|
method: "PUT",
|
|
1156
1158
|
headers: {
|
|
@@ -1244,7 +1246,9 @@ var HttpFileClient = class {
|
|
|
1244
1246
|
async uploadContent(fileId, content, jwtToken) {
|
|
1245
1247
|
const baseUrl = this.httpClient.getBaseUrl().replace(/\/$/, "");
|
|
1246
1248
|
const url = `${baseUrl}/project/v1/files/${fileId}/content`;
|
|
1247
|
-
const blob = new Blob([content], {
|
|
1249
|
+
const blob = new Blob([content], {
|
|
1250
|
+
type: "application/octet-stream"
|
|
1251
|
+
});
|
|
1248
1252
|
const response = await fetch(url, {
|
|
1249
1253
|
method: "PUT",
|
|
1250
1254
|
headers: {
|
|
@@ -1271,7 +1275,9 @@ var HttpFileClient = class {
|
|
|
1271
1275
|
async saveManualRevision(fileId, content, jwtToken) {
|
|
1272
1276
|
const baseUrl = this.httpClient.getBaseUrl().replace(/\/$/, "");
|
|
1273
1277
|
const url = `${baseUrl}/project/v1/files/${fileId}/revisions`;
|
|
1274
|
-
const blob = new Blob([content], {
|
|
1278
|
+
const blob = new Blob([content], {
|
|
1279
|
+
type: "application/octet-stream"
|
|
1280
|
+
});
|
|
1275
1281
|
const response = await fetch(url, {
|
|
1276
1282
|
method: "POST",
|
|
1277
1283
|
headers: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myspec/mcp-server",
|
|
3
|
-
"version": "0.1.0-next.
|
|
3
|
+
"version": "0.1.0-next.7",
|
|
4
4
|
"description": "MySpec MCP server — exposes MySpec platform projects, files and attachments to MCP-aware clients via OAuth-authenticated access tokens.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@eslint/js": "^10.0.1",
|
|
51
51
|
"@myspec/platform-client": "file:../../packages/platform-client",
|
|
52
52
|
"@myspec/shared": "file:../../packages/shared",
|
|
53
|
-
"@types/node": "^
|
|
53
|
+
"@types/node": "^25.9.1",
|
|
54
54
|
"@types/ws": "^8.18.1",
|
|
55
55
|
"eslint": "^10.4.1",
|
|
56
56
|
"tsup": "^8.3.5",
|