@myspec/mcp-server 0.1.4-next.48 → 0.1.4-next.49
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 +18 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1535,6 +1535,24 @@ var HttpFileClient = class {
|
|
|
1535
1535
|
);
|
|
1536
1536
|
return response.revisions.map(transformFileRevisionResponse);
|
|
1537
1537
|
}
|
|
1538
|
+
async signRevisionLinks(request, jwtToken) {
|
|
1539
|
+
const body = {
|
|
1540
|
+
files: request.files.map((f) => ({
|
|
1541
|
+
fileId: f.fileId,
|
|
1542
|
+
revisionNumber: f.revisionNumber
|
|
1543
|
+
}))
|
|
1544
|
+
};
|
|
1545
|
+
if (request.expirySeconds !== void 0) {
|
|
1546
|
+
body.expirySeconds = request.expirySeconds;
|
|
1547
|
+
}
|
|
1548
|
+
const response = await this.httpClient.post(
|
|
1549
|
+
"/project/v1/files/revision-links",
|
|
1550
|
+
body,
|
|
1551
|
+
jwtToken,
|
|
1552
|
+
{}
|
|
1553
|
+
);
|
|
1554
|
+
return response.files;
|
|
1555
|
+
}
|
|
1538
1556
|
async getRevision(fileId, revisionNumber, jwtToken) {
|
|
1539
1557
|
const revisions = await this.listRevisions(fileId, jwtToken);
|
|
1540
1558
|
const revision = revisions.find((r) => r.revisionNumber === revisionNumber);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myspec/mcp-server",
|
|
3
|
-
"version": "0.1.4-next.
|
|
3
|
+
"version": "0.1.4-next.49",
|
|
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": {
|