@myspec/mcp-server 0.1.1-next.24 → 0.1.1-next.26
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 +12 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1162,6 +1162,9 @@ function transformFileListResult(raw) {
|
|
|
1162
1162
|
}
|
|
1163
1163
|
|
|
1164
1164
|
// ../../packages/platform-client/project/types/project.types.ts
|
|
1165
|
+
function toProjectType(raw) {
|
|
1166
|
+
return raw === "greenfield" || raw === "brownfield" ? raw : void 0;
|
|
1167
|
+
}
|
|
1165
1168
|
function transformProjectResponse(raw) {
|
|
1166
1169
|
return {
|
|
1167
1170
|
id: raw.id,
|
|
@@ -1170,6 +1173,7 @@ function transformProjectResponse(raw) {
|
|
|
1170
1173
|
name: raw.name,
|
|
1171
1174
|
description: raw.description,
|
|
1172
1175
|
status: raw.status,
|
|
1176
|
+
projectType: toProjectType(raw.project_type),
|
|
1173
1177
|
metadata: raw.metadata,
|
|
1174
1178
|
createdAt: new Date(raw.created_at),
|
|
1175
1179
|
updatedAt: new Date(raw.updated_at),
|
|
@@ -1464,6 +1468,8 @@ var HttpFileClient = class {
|
|
|
1464
1468
|
if (opts?.query) queryParams.set("q", opts.query);
|
|
1465
1469
|
if (opts?.limit !== void 0) queryParams.set("limit", String(opts.limit));
|
|
1466
1470
|
if (opts?.offset !== void 0) queryParams.set("offset", String(opts.offset));
|
|
1471
|
+
if (opts?.hideArchivedIncomplete)
|
|
1472
|
+
queryParams.set("hide_archived_incomplete", "true");
|
|
1467
1473
|
const query = queryParams.toString();
|
|
1468
1474
|
const path4 = `/project/v1/files?${query}`;
|
|
1469
1475
|
const raw = await this.httpClient.get(path4, jwtToken, {});
|
|
@@ -1529,9 +1535,11 @@ var HttpProjectClient = class {
|
|
|
1529
1535
|
this.httpClient = httpClient;
|
|
1530
1536
|
}
|
|
1531
1537
|
async createProject(request, jwtToken) {
|
|
1538
|
+
const { projectType, ...rest } = request;
|
|
1539
|
+
const body = projectType !== void 0 ? { ...rest, project_type: projectType } : { ...rest };
|
|
1532
1540
|
const raw = await this.httpClient.post(
|
|
1533
1541
|
"/project/v1/projects",
|
|
1534
|
-
|
|
1542
|
+
body,
|
|
1535
1543
|
jwtToken,
|
|
1536
1544
|
{}
|
|
1537
1545
|
);
|
|
@@ -1562,9 +1570,11 @@ var HttpProjectClient = class {
|
|
|
1562
1570
|
};
|
|
1563
1571
|
}
|
|
1564
1572
|
async updateProject(projectId, updates, jwtToken) {
|
|
1573
|
+
const { projectType, ...rest } = updates;
|
|
1574
|
+
const body = projectType !== void 0 ? { ...rest, project_type: projectType } : { ...rest };
|
|
1565
1575
|
const raw = await this.httpClient.put(
|
|
1566
1576
|
`/project/v1/projects/${projectId}`,
|
|
1567
|
-
|
|
1577
|
+
body,
|
|
1568
1578
|
jwtToken,
|
|
1569
1579
|
{}
|
|
1570
1580
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myspec/mcp-server",
|
|
3
|
-
"version": "0.1.1-next.
|
|
3
|
+
"version": "0.1.1-next.26",
|
|
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": {
|