@voxslopuli/teamdynamix-mcp 0.5.1 → 0.5.3
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/index.js +74 -38
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/sweep.js +22 -23
- package/sweep.js.map +1 -1
package/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var init_package = __esm({
|
|
|
15
15
|
"package.json"() {
|
|
16
16
|
package_default = {
|
|
17
17
|
name: "@voxslopuli/teamdynamix-mcp",
|
|
18
|
-
version: "0.5.
|
|
18
|
+
version: "0.5.3",
|
|
19
19
|
private: false,
|
|
20
20
|
description: "A production-ready TypeScript MCP server for TeamDynamix",
|
|
21
21
|
keywords: [
|
|
@@ -61,7 +61,7 @@ var init_package = __esm({
|
|
|
61
61
|
},
|
|
62
62
|
dependencies: {
|
|
63
63
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
64
|
-
"@voxslopuli/teamdynamix-ts": "^0.
|
|
64
|
+
"@voxslopuli/teamdynamix-ts": "^0.3.1",
|
|
65
65
|
tablemark: "^4.1.0",
|
|
66
66
|
zod: "^4.6.2"
|
|
67
67
|
},
|
|
@@ -405,7 +405,7 @@ var init_client_factory = __esm({
|
|
|
405
405
|
}
|
|
406
406
|
searchTickets(appId, body) {
|
|
407
407
|
return this.sdk().then(async (s) => {
|
|
408
|
-
const { data, error } = await s.
|
|
408
|
+
const { data, error } = await s.tickets.appIdTicketsSearch({
|
|
409
409
|
params: { path: { appId } },
|
|
410
410
|
body: mapTicketSearchBody(body)
|
|
411
411
|
});
|
|
@@ -452,7 +452,7 @@ var init_client_factory = __esm({
|
|
|
452
452
|
);
|
|
453
453
|
for (const entry of missing.slice(0, limit)) {
|
|
454
454
|
const target = entry;
|
|
455
|
-
const { data, error } = await s.GET(
|
|
455
|
+
const { data, error } = await s.GET(`/api/feed/${target.ID}`, {
|
|
456
456
|
params: { path: { id: target.ID } }
|
|
457
457
|
});
|
|
458
458
|
if (error) {
|
|
@@ -509,7 +509,7 @@ var init_client_factory = __esm({
|
|
|
509
509
|
return this.sdk().then((s) => s.people.peopleUid({ params: { path: { uid } } }));
|
|
510
510
|
}
|
|
511
511
|
searchUsers(body) {
|
|
512
|
-
return this.sdk().then((s) => s.people.
|
|
512
|
+
return this.sdk().then((s) => s.people.peopleSearch({ body: sanitizeTo(body, USER_SEARCH_KEYS) }));
|
|
513
513
|
}
|
|
514
514
|
getGroup(groupId) {
|
|
515
515
|
return this.sdk().then((s) => s.people.groupsId({ params: { path: { id: groupId } } }));
|
|
@@ -528,8 +528,7 @@ var init_client_factory = __esm({
|
|
|
528
528
|
}
|
|
529
529
|
searchKbArticles(appId, body) {
|
|
530
530
|
return this.sdk().then(async (s) => {
|
|
531
|
-
const
|
|
532
|
-
const { data, error } = await post("/api/{appId}/knowledgebase/search", {
|
|
531
|
+
const { data, error } = await s.knowledgeBase.appIdKnowledgebaseSearch({
|
|
533
532
|
params: { path: { appId } },
|
|
534
533
|
body: sanitizeTo(body, ARTICLE_SEARCH_KEYS)
|
|
535
534
|
});
|
|
@@ -604,28 +603,28 @@ var init_client_factory = __esm({
|
|
|
604
603
|
//
|
|
605
604
|
// Projects
|
|
606
605
|
//
|
|
607
|
-
getProject(projectId) {
|
|
608
|
-
return this.sdk().then((s) => s.projects.
|
|
606
|
+
getProject(appId, projectId) {
|
|
607
|
+
return this.sdk().then((s) => s.projects.appIdProjectsId({ params: { path: { appId, id: projectId } } }));
|
|
609
608
|
}
|
|
610
|
-
searchProjects(_body) {
|
|
611
|
-
return this.sdk().then((s) => s.projects.
|
|
609
|
+
searchProjects(appId, _body) {
|
|
610
|
+
return this.sdk().then((s) => s.projects.appIdProjectsFeed({ params: { path: { appId } } }));
|
|
612
611
|
}
|
|
613
|
-
listProjectTypes() {
|
|
614
|
-
return this.sdk().then((s) => s.
|
|
612
|
+
listProjectTypes(appId) {
|
|
613
|
+
return this.sdk().then((s) => s.referenceData.appIdProjectsTypes({ params: { path: { appId } } }));
|
|
615
614
|
}
|
|
616
|
-
getProjectPlans(projectId) {
|
|
615
|
+
getProjectPlans(appId, projectId) {
|
|
617
616
|
return this.sdk().then(
|
|
618
|
-
(s) => s.projects.
|
|
617
|
+
(s) => s.projects.appIdProjectsProjectIDPlansPlanID({ params: { path: { appId, id: projectId } } })
|
|
619
618
|
);
|
|
620
619
|
}
|
|
621
|
-
getProjectIssues(projectId) {
|
|
620
|
+
getProjectIssues(appId, projectId) {
|
|
622
621
|
return this.sdk().then(
|
|
623
|
-
(s) => s.projects.
|
|
622
|
+
(s) => s.projects.appIdProjectsProjectIdIssuesCategories({ params: { path: { appId, id: projectId } } })
|
|
624
623
|
);
|
|
625
624
|
}
|
|
626
|
-
getProjectRisks(projectId) {
|
|
625
|
+
getProjectRisks(appId, projectId) {
|
|
627
626
|
return this.sdk().then(
|
|
628
|
-
(s) => s.projects.
|
|
627
|
+
(s) => s.projects.appIdProjectsProjectIdRisksCategories({ params: { path: { appId, id: projectId } } })
|
|
629
628
|
);
|
|
630
629
|
}
|
|
631
630
|
//
|
|
@@ -676,11 +675,11 @@ var init_client_factory = __esm({
|
|
|
676
675
|
updateKbArticle(appId, articleId, body) {
|
|
677
676
|
return this.sdk().then((s) => s.knowledgeBase.updateArticle({ appId, articleId, body }));
|
|
678
677
|
}
|
|
679
|
-
createProjectIssue(_projectId, body) {
|
|
680
|
-
return this.sdk().then((s) => s.projects.createIssue({ body }));
|
|
678
|
+
createProjectIssue(appId, _projectId, body) {
|
|
679
|
+
return this.sdk().then((s) => s.projects.createIssue({ appId, body }));
|
|
681
680
|
}
|
|
682
|
-
createProjectRisk(_projectId, body) {
|
|
683
|
-
return this.sdk().then((s) => s.projects.createRisk({ body }));
|
|
681
|
+
createProjectRisk(appId, _projectId, body) {
|
|
682
|
+
return this.sdk().then((s) => s.projects.createRisk({ appId, body }));
|
|
684
683
|
}
|
|
685
684
|
//
|
|
686
685
|
// Delete mutations (confirm:true required for all)
|
|
@@ -2431,52 +2430,89 @@ function registerTeamDynamixProjectsGateway(server2) {
|
|
|
2431
2430
|
const client = createConfiguredTeamDynamixClient();
|
|
2432
2431
|
switch (action) {
|
|
2433
2432
|
case "get_project": {
|
|
2434
|
-
const parsed = parsePayload(
|
|
2435
|
-
|
|
2433
|
+
const parsed = parsePayload(
|
|
2434
|
+
z4.object({ app_id: TeamDynamixAppIdSchema, project_id: z4.number().int().positive() }),
|
|
2435
|
+
payload,
|
|
2436
|
+
action
|
|
2437
|
+
);
|
|
2438
|
+
const project = await client.getProject(parsed.app_id, parsed.project_id);
|
|
2436
2439
|
return toSuccessResponse(project, response_format);
|
|
2437
2440
|
}
|
|
2438
2441
|
case "search_projects": {
|
|
2439
|
-
const parsed = parsePayload(
|
|
2440
|
-
|
|
2442
|
+
const parsed = parsePayload(
|
|
2443
|
+
z4.object({ app_id: TeamDynamixAppIdSchema, search: ProjectSearchSchema }),
|
|
2444
|
+
payload,
|
|
2445
|
+
action
|
|
2446
|
+
);
|
|
2447
|
+
const projects = await client.searchProjects(parsed.app_id, parsed.search);
|
|
2441
2448
|
return toSuccessResponse({ count: projects.length, projects }, response_format);
|
|
2442
2449
|
}
|
|
2443
2450
|
case "list_project_types": {
|
|
2444
|
-
const
|
|
2451
|
+
const parsed = parsePayload(z4.object({ app_id: TeamDynamixAppIdSchema }), payload, action);
|
|
2452
|
+
const types = await client.listProjectTypes(parsed.app_id);
|
|
2445
2453
|
return toSuccessResponse({ count: types.length, types }, response_format);
|
|
2446
2454
|
}
|
|
2447
2455
|
case "get_project_plans": {
|
|
2448
|
-
const parsed = parsePayload(
|
|
2449
|
-
|
|
2456
|
+
const parsed = parsePayload(
|
|
2457
|
+
z4.object({ app_id: TeamDynamixAppIdSchema, project_id: z4.number().int().positive() }),
|
|
2458
|
+
payload,
|
|
2459
|
+
action
|
|
2460
|
+
);
|
|
2461
|
+
const plans = await client.getProjectPlans(parsed.app_id, parsed.project_id);
|
|
2450
2462
|
return toSuccessResponse({ projectId: parsed.project_id, count: plans.length, plans }, response_format);
|
|
2451
2463
|
}
|
|
2452
2464
|
case "get_project_issues": {
|
|
2453
|
-
const parsed = parsePayload(
|
|
2454
|
-
|
|
2465
|
+
const parsed = parsePayload(
|
|
2466
|
+
z4.object({ app_id: TeamDynamixAppIdSchema, project_id: z4.number().int().positive() }),
|
|
2467
|
+
payload,
|
|
2468
|
+
action
|
|
2469
|
+
);
|
|
2470
|
+
const issues = await client.getProjectIssues(parsed.app_id, parsed.project_id);
|
|
2455
2471
|
return toSuccessResponse({ projectId: parsed.project_id, count: issues.length, issues }, response_format);
|
|
2456
2472
|
}
|
|
2457
2473
|
case "get_project_risks": {
|
|
2458
|
-
const parsed = parsePayload(
|
|
2459
|
-
|
|
2474
|
+
const parsed = parsePayload(
|
|
2475
|
+
z4.object({ app_id: TeamDynamixAppIdSchema, project_id: z4.number().int().positive() }),
|
|
2476
|
+
payload,
|
|
2477
|
+
action
|
|
2478
|
+
);
|
|
2479
|
+
const risks = await client.getProjectRisks(parsed.app_id, parsed.project_id);
|
|
2460
2480
|
return toSuccessResponse({ projectId: parsed.project_id, count: risks.length, risks }, response_format);
|
|
2461
2481
|
}
|
|
2462
2482
|
case "create_project_issue": {
|
|
2463
2483
|
const parsed = parsePayload(
|
|
2464
|
-
z4.object({
|
|
2484
|
+
z4.object({
|
|
2485
|
+
app_id: TeamDynamixAppIdSchema,
|
|
2486
|
+
project_id: z4.number().int().positive(),
|
|
2487
|
+
issue: ProjectIssueCreateSchema
|
|
2488
|
+
}),
|
|
2465
2489
|
payload,
|
|
2466
2490
|
action
|
|
2467
2491
|
);
|
|
2468
2492
|
assertWriteToolsEnabled(getTeamDynamixConfig());
|
|
2469
|
-
const created = await client.createProjectIssue(
|
|
2493
|
+
const created = await client.createProjectIssue(
|
|
2494
|
+
parsed.app_id,
|
|
2495
|
+
parsed.project_id,
|
|
2496
|
+
parsed.issue
|
|
2497
|
+
);
|
|
2470
2498
|
return toSuccessResponse(created, response_format);
|
|
2471
2499
|
}
|
|
2472
2500
|
case "create_project_risk": {
|
|
2473
2501
|
const parsed = parsePayload(
|
|
2474
|
-
z4.object({
|
|
2502
|
+
z4.object({
|
|
2503
|
+
app_id: TeamDynamixAppIdSchema,
|
|
2504
|
+
project_id: z4.number().int().positive(),
|
|
2505
|
+
risk: ProjectRiskCreateSchema
|
|
2506
|
+
}),
|
|
2475
2507
|
payload,
|
|
2476
2508
|
action
|
|
2477
2509
|
);
|
|
2478
2510
|
assertWriteToolsEnabled(getTeamDynamixConfig());
|
|
2479
|
-
const created = await client.createProjectRisk(
|
|
2511
|
+
const created = await client.createProjectRisk(
|
|
2512
|
+
parsed.app_id,
|
|
2513
|
+
parsed.project_id,
|
|
2514
|
+
parsed.risk
|
|
2515
|
+
);
|
|
2480
2516
|
return toSuccessResponse(created, response_format);
|
|
2481
2517
|
}
|
|
2482
2518
|
}
|