@myspec/mcp-server 0.1.1-next.25 → 0.1.1-next.27
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 +10 -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),
|
|
@@ -1531,9 +1535,11 @@ var HttpProjectClient = class {
|
|
|
1531
1535
|
this.httpClient = httpClient;
|
|
1532
1536
|
}
|
|
1533
1537
|
async createProject(request, jwtToken) {
|
|
1538
|
+
const { projectType, ...rest } = request;
|
|
1539
|
+
const body = projectType !== void 0 ? { ...rest, project_type: projectType } : { ...rest };
|
|
1534
1540
|
const raw = await this.httpClient.post(
|
|
1535
1541
|
"/project/v1/projects",
|
|
1536
|
-
|
|
1542
|
+
body,
|
|
1537
1543
|
jwtToken,
|
|
1538
1544
|
{}
|
|
1539
1545
|
);
|
|
@@ -1564,9 +1570,11 @@ var HttpProjectClient = class {
|
|
|
1564
1570
|
};
|
|
1565
1571
|
}
|
|
1566
1572
|
async updateProject(projectId, updates, jwtToken) {
|
|
1573
|
+
const { projectType, ...rest } = updates;
|
|
1574
|
+
const body = projectType !== void 0 ? { ...rest, project_type: projectType } : { ...rest };
|
|
1567
1575
|
const raw = await this.httpClient.put(
|
|
1568
1576
|
`/project/v1/projects/${projectId}`,
|
|
1569
|
-
|
|
1577
|
+
body,
|
|
1570
1578
|
jwtToken,
|
|
1571
1579
|
{}
|
|
1572
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.27",
|
|
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": {
|