@ourroadmaps/mcp 0.20.0 → 0.22.0
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 +49 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1370,13 +1370,21 @@ function registerCreateRoadmapItem(server) {
|
|
|
1370
1370
|
title: z11.string().describe("Title of the roadmap item"),
|
|
1371
1371
|
status: roadmapStatusSchema.optional().describe('Status (defaults to "not_started")'),
|
|
1372
1372
|
horizon: horizonSchema.optional().describe('Planning horizon (defaults to "inbox")'),
|
|
1373
|
-
initiativeId: z11.string().optional().describe("UUID of initiative to link this item to on creation")
|
|
1373
|
+
initiativeId: z11.string().optional().describe("UUID of initiative to link this item to on creation"),
|
|
1374
|
+
dateGranularity: dateGranularitySchema2.optional().describe("Planned date granularity: day, month, quarter, half-year, or year"),
|
|
1375
|
+
dateValue: z11.string().optional().describe('Planned date value matching granularity (e.g., "2024-03-15" for day, "2024-Q1" for quarter)'),
|
|
1376
|
+
targetGranularity: dateGranularitySchema2.optional().describe("Deadline/target date granularity: day, month, quarter, half-year, or year"),
|
|
1377
|
+
targetValue: z11.string().optional().describe('Deadline/target date value matching granularity (e.g., "2024-03-15" for day, "2024-Q1" for quarter)')
|
|
1374
1378
|
}
|
|
1375
1379
|
}, async ({
|
|
1376
1380
|
title,
|
|
1377
1381
|
status,
|
|
1378
1382
|
horizon,
|
|
1379
|
-
initiativeId
|
|
1383
|
+
initiativeId,
|
|
1384
|
+
dateGranularity,
|
|
1385
|
+
dateValue,
|
|
1386
|
+
targetGranularity,
|
|
1387
|
+
targetValue
|
|
1380
1388
|
}) => {
|
|
1381
1389
|
const client2 = getApiClient();
|
|
1382
1390
|
const createData = {
|
|
@@ -1387,6 +1395,18 @@ function registerCreateRoadmapItem(server) {
|
|
|
1387
1395
|
if (initiativeId) {
|
|
1388
1396
|
createData.initiativeId = initiativeId;
|
|
1389
1397
|
}
|
|
1398
|
+
if (dateGranularity && dateValue) {
|
|
1399
|
+
createData.date = {
|
|
1400
|
+
granularity: dateGranularity,
|
|
1401
|
+
value: dateValue
|
|
1402
|
+
};
|
|
1403
|
+
}
|
|
1404
|
+
if (targetGranularity && targetValue) {
|
|
1405
|
+
createData.target = {
|
|
1406
|
+
granularity: targetGranularity,
|
|
1407
|
+
value: targetValue
|
|
1408
|
+
};
|
|
1409
|
+
}
|
|
1390
1410
|
const roadmap2 = await client2.createRoadmap(createData);
|
|
1391
1411
|
return {
|
|
1392
1412
|
content: [
|
|
@@ -1398,7 +1418,9 @@ function registerCreateRoadmapItem(server) {
|
|
|
1398
1418
|
id: roadmap2.id,
|
|
1399
1419
|
title: roadmap2.title,
|
|
1400
1420
|
status: roadmap2.status,
|
|
1401
|
-
horizon: roadmap2.horizon
|
|
1421
|
+
horizon: roadmap2.horizon,
|
|
1422
|
+
date: roadmap2.date,
|
|
1423
|
+
target: roadmap2.target
|
|
1402
1424
|
}
|
|
1403
1425
|
}, null, 2)
|
|
1404
1426
|
}
|
|
@@ -1424,8 +1446,10 @@ function registerUpdateRoadmapItem(server) {
|
|
|
1424
1446
|
buildDescription: z11.string().nullable().optional().describe("Description for the Build phase"),
|
|
1425
1447
|
releaseDescription: z11.string().nullable().optional().describe("Description for the Release phase"),
|
|
1426
1448
|
prompt: z11.string().nullable().optional().describe("Build prompt for the roadmap item"),
|
|
1427
|
-
dateGranularity: dateGranularitySchema2.nullable().optional().describe("
|
|
1428
|
-
dateValue: z11.string().nullable().optional().describe('
|
|
1449
|
+
dateGranularity: dateGranularitySchema2.nullable().optional().describe("Planned date granularity: day, month, quarter, half-year, or year"),
|
|
1450
|
+
dateValue: z11.string().nullable().optional().describe('Planned date value matching granularity (e.g., "2024-03-15" for day, "2024-Q1" for quarter)'),
|
|
1451
|
+
targetGranularity: dateGranularitySchema2.nullable().optional().describe("Deadline/target date granularity: day, month, quarter, half-year, or year"),
|
|
1452
|
+
targetValue: z11.string().nullable().optional().describe('Deadline/target date value matching granularity (e.g., "2024-03-15" for day, "2024-Q1" for quarter)')
|
|
1429
1453
|
}
|
|
1430
1454
|
}, async ({
|
|
1431
1455
|
id,
|
|
@@ -1442,7 +1466,9 @@ function registerUpdateRoadmapItem(server) {
|
|
|
1442
1466
|
releaseDescription,
|
|
1443
1467
|
prompt,
|
|
1444
1468
|
dateGranularity,
|
|
1445
|
-
dateValue
|
|
1469
|
+
dateValue,
|
|
1470
|
+
targetGranularity,
|
|
1471
|
+
targetValue
|
|
1446
1472
|
}) => {
|
|
1447
1473
|
const client2 = getApiClient();
|
|
1448
1474
|
const updates = {};
|
|
@@ -1460,10 +1486,18 @@ function registerUpdateRoadmapItem(server) {
|
|
|
1460
1486
|
updates.order = order;
|
|
1461
1487
|
if (initiativeId !== undefined)
|
|
1462
1488
|
updates.initiativeId = initiativeId;
|
|
1463
|
-
if (dateGranularity !== undefined)
|
|
1464
|
-
updates.
|
|
1465
|
-
|
|
1466
|
-
|
|
1489
|
+
if (dateGranularity !== undefined || dateValue !== undefined) {
|
|
1490
|
+
updates.date = {
|
|
1491
|
+
granularity: dateGranularity ?? null,
|
|
1492
|
+
value: dateValue ?? null
|
|
1493
|
+
};
|
|
1494
|
+
}
|
|
1495
|
+
if (targetGranularity !== undefined || targetValue !== undefined) {
|
|
1496
|
+
updates.target = {
|
|
1497
|
+
granularity: targetGranularity ?? null,
|
|
1498
|
+
value: targetValue ?? null
|
|
1499
|
+
};
|
|
1500
|
+
}
|
|
1467
1501
|
const roadmap2 = Object.keys(updates).length > 0 ? await client2.updateRoadmap(id, updates) : await client2.getRoadmap(id);
|
|
1468
1502
|
const phaseUpdates = {};
|
|
1469
1503
|
if (designDescription !== undefined) {
|
|
@@ -1504,8 +1538,8 @@ function registerUpdateRoadmapItem(server) {
|
|
|
1504
1538
|
value: roadmap2.value,
|
|
1505
1539
|
effort: roadmap2.effort,
|
|
1506
1540
|
order: roadmap2.order,
|
|
1507
|
-
|
|
1508
|
-
|
|
1541
|
+
date: roadmap2.date,
|
|
1542
|
+
target: roadmap2.target
|
|
1509
1543
|
},
|
|
1510
1544
|
phaseDescriptionsUpdated: phaseUpdates
|
|
1511
1545
|
}, null, 2)
|
|
@@ -2252,10 +2286,7 @@ function registerCreateAudience(server) {
|
|
|
2252
2286
|
name: z11.string().describe('Name of the audience (e.g., "Product Manager", "End User")'),
|
|
2253
2287
|
description: z11.string().nullable().optional().describe("Description of the audience")
|
|
2254
2288
|
}
|
|
2255
|
-
}, async ({
|
|
2256
|
-
name,
|
|
2257
|
-
description
|
|
2258
|
-
}) => {
|
|
2289
|
+
}, async ({ name, description }) => {
|
|
2259
2290
|
const client2 = getApiClient();
|
|
2260
2291
|
const audience2 = await client2.createAudience({
|
|
2261
2292
|
name,
|
|
@@ -3084,7 +3115,7 @@ Expires: ${expiryDate}`
|
|
|
3084
3115
|
};
|
|
3085
3116
|
});
|
|
3086
3117
|
}
|
|
3087
|
-
var dateGranularitySchema2 = z11.enum(["day", "month", "quarter", "
|
|
3118
|
+
var dateGranularitySchema2 = z11.enum(["day", "month", "quarter", "half-year", "year"]);
|
|
3088
3119
|
function registerSearchInitiatives(server) {
|
|
3089
3120
|
server.registerTool("search_initiatives", {
|
|
3090
3121
|
description: "Search for initiatives by title or filter by horizon. Returns a list of matching initiatives with item counts.",
|
|
@@ -3164,7 +3195,7 @@ function registerCreateInitiative(server) {
|
|
|
3164
3195
|
title: z11.string().describe("Title of the initiative"),
|
|
3165
3196
|
description: z11.string().optional().describe("Description of the initiative (markdown)"),
|
|
3166
3197
|
horizon: horizonSchema.optional().describe('Planning horizon (defaults to "inbox")'),
|
|
3167
|
-
dateGranularity: dateGranularitySchema2.optional().describe("Target date granularity: day, month, quarter,
|
|
3198
|
+
dateGranularity: dateGranularitySchema2.optional().describe("Target date granularity: day, month, quarter, half-year, or year"),
|
|
3168
3199
|
dateValue: z11.string().optional().describe('Target date value matching granularity (e.g., "2024-Q1", "2024-03")'),
|
|
3169
3200
|
targetDate: z11.string().optional().describe("Target date in YYYY-MM-DD format")
|
|
3170
3201
|
}
|