@taiga-ai/mcp-server 0.51.0-dev.1269 → 0.51.0-dev.1270
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 +25 -25
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27838,7 +27838,7 @@ const AGENT_JOB_TYPES = [
|
|
|
27838
27838
|
"replan_run",
|
|
27839
27839
|
"compliance_check",
|
|
27840
27840
|
"engineering_review",
|
|
27841
|
-
"
|
|
27841
|
+
"assess_issues"
|
|
27842
27842
|
];
|
|
27843
27843
|
/**
|
|
27844
27844
|
* Why a PROMPTED `generate_backlog` job planned nothing.
|
|
@@ -28428,18 +28428,18 @@ const TRACKER_CONNECTION_STATUSES = [
|
|
|
28428
28428
|
"auth_failed",
|
|
28429
28429
|
"unreachable"
|
|
28430
28430
|
];
|
|
28431
|
-
/** What kind of place a provider files
|
|
28431
|
+
/** What kind of place a provider files issues in, in its own word. */
|
|
28432
28432
|
const TRACKER_PLACE_KINDS = [
|
|
28433
28433
|
"project",
|
|
28434
28434
|
"table",
|
|
28435
28435
|
"team"
|
|
28436
28436
|
];
|
|
28437
|
-
const
|
|
28437
|
+
const ISSUE_IMPORT_STATES = ["open", "in_progress"];
|
|
28438
28438
|
/**
|
|
28439
28439
|
* What a refresh of one source answers. `busy` is another refresh of the
|
|
28440
28440
|
* same source still running: nothing was read, and its result will arrive.
|
|
28441
28441
|
*/
|
|
28442
|
-
const
|
|
28442
|
+
const ISSUE_REFRESH_OUTCOMES = [...[
|
|
28443
28443
|
"read",
|
|
28444
28444
|
"unreachable",
|
|
28445
28445
|
"refused",
|
|
@@ -29728,7 +29728,7 @@ const trackerFilterField = string$2().trim().min(1).max(64).regex(/^[a-z][a-z0-9
|
|
|
29728
29728
|
* value's name is read from the tracker where the tracker gives values ids of
|
|
29729
29729
|
* their own; a free-text value, such as a label, is its own name.
|
|
29730
29730
|
*/
|
|
29731
|
-
const
|
|
29731
|
+
const issueSourceFilter = strictObject({
|
|
29732
29732
|
field: trackerFilterField,
|
|
29733
29733
|
valueIds: array(string$2().trim().min(1).max(255)).min(1).max(50)
|
|
29734
29734
|
});
|
|
@@ -30367,20 +30367,20 @@ strictObject({
|
|
|
30367
30367
|
answer: _enum(SCOPE_ANSWER_VALUES),
|
|
30368
30368
|
note: string$2().trim().max(SCOPE_ANSWER_NOTE_MAX_LENGTH).optional()
|
|
30369
30369
|
}), strictObject({ environments: array(string$2()).default(["development"]) }), object({ id: string$2().uuid() }), strictObject({
|
|
30370
|
-
|
|
30371
|
-
/** For
|
|
30370
|
+
issueId: uuid,
|
|
30371
|
+
/** For an issue Taiga read as too large: one initiative per piece of its split, all with the issue's key. */
|
|
30372
30372
|
asSplit: boolean().optional(),
|
|
30373
30373
|
/**
|
|
30374
30374
|
* With `asSplit`: when the assessment whose split the person was shown
|
|
30375
|
-
* was made. Refused when the
|
|
30375
|
+
* was made. Refused when the issue was assessed again since, so the
|
|
30376
30376
|
* pieces written are the ones confirmed. Optional for a tab of a build
|
|
30377
30377
|
* that sends none; the server then holds the job to the split it reads.
|
|
30378
30378
|
*/
|
|
30379
30379
|
splitAssessedAt: string$2().datetime({ offset: true }).optional()
|
|
30380
|
-
}), strictObject({
|
|
30380
|
+
}), strictObject({ issueIds: array(uuid).min(1).max(25) }), strictObject({
|
|
30381
30381
|
connectionId: uuid,
|
|
30382
30382
|
placeId: trackerPlaceId,
|
|
30383
|
-
filter:
|
|
30383
|
+
filter: issueSourceFilter.nullable().optional()
|
|
30384
30384
|
}), object({ sourceId: uuid }), strictObject({
|
|
30385
30385
|
connection: newCloudConnection,
|
|
30386
30386
|
environment: object({
|
|
@@ -30492,14 +30492,14 @@ object({
|
|
|
30492
30492
|
});
|
|
30493
30493
|
/** A source's import rules (PRO-5082): each list trimmed, distinct and bounded. */
|
|
30494
30494
|
const ruleValues = array(string$2().trim().min(1).max(255)).max(50).refine((values) => new Set(values.map((v) => v.toLowerCase())).size === values.length, "A value is listed twice");
|
|
30495
|
-
const
|
|
30495
|
+
const issueImportRules = strictObject({
|
|
30496
30496
|
types: ruleValues,
|
|
30497
|
-
states: array(_enum(
|
|
30497
|
+
states: array(_enum(ISSUE_IMPORT_STATES)).max(ISSUE_IMPORT_STATES.length),
|
|
30498
30498
|
labels: ruleValues
|
|
30499
30499
|
});
|
|
30500
|
-
strictObject({ filter:
|
|
30501
|
-
outcome: _enum(
|
|
30502
|
-
|
|
30500
|
+
strictObject({ filter: issueSourceFilter.nullable() }), strictObject({ rules: issueImportRules.nullable() }), object({
|
|
30501
|
+
outcome: _enum(ISSUE_REFRESH_OUTCOMES),
|
|
30502
|
+
issues: number$1().int().nullable(),
|
|
30503
30503
|
truncated: boolean()
|
|
30504
30504
|
});
|
|
30505
30505
|
strictObject({
|
|
@@ -43765,8 +43765,8 @@ const BACKLOG_SUMMARY_FIELDS = [
|
|
|
43765
43765
|
];
|
|
43766
43766
|
/**
|
|
43767
43767
|
* What a search of a product's initiatives reads: the title, and the key of
|
|
43768
|
-
* the
|
|
43769
|
-
* initiative in its own words, so someone holding the
|
|
43768
|
+
* the issue it came from in another tracker (PRO-4943). The agent names an
|
|
43769
|
+
* initiative in its own words, so someone holding the issue has only the key.
|
|
43770
43770
|
*/
|
|
43771
43771
|
const searchedText = (row) => [row["title"], row["externalRefKey"]];
|
|
43772
43772
|
/**
|
|
@@ -44054,11 +44054,11 @@ function registerBacklogTools(server, client) {
|
|
|
44054
44054
|
function registerBacklogReads(server, client) {
|
|
44055
44055
|
server.registerTool("taiga_list_initiatives", {
|
|
44056
44056
|
title: "List initiatives",
|
|
44057
|
-
description: "List a product's initiatives (units of work), newest first: open ones unless column says otherwise. Each row says its board column, whose turn it is (you, agent or idle), one sentence on where it stands, its latest run and how many acceptance criteria are met. query finds one by title, or by the key of the
|
|
44057
|
+
description: "List a product's initiatives (units of work), newest first: open ones unless column says otherwise. Each row says its board column, whose turn it is (you, agent or idle), one sentence on where it stands, its latest run and how many acceptance criteria are met. query finds one by title, or by the key of the issue it came from in another tracker (externalRefKey, such as KAN-1)." + (offersOrgReads(client) ? " Without productId, the initiatives across every product you can see, newest first, each naming its product, by column and query (factoryId narrows to one factory; category and includeArchived need a product)." : ""),
|
|
44058
44058
|
inputSchema: object({
|
|
44059
44059
|
productId: offersOrgReads(client) ? productId.optional().describe(ACROSS_PRODUCTS) : productId,
|
|
44060
44060
|
...offersOrgReads(client) ? { factoryId: factoryId$1 } : {},
|
|
44061
|
-
query: string$2().trim().min(1).max(200).optional().describe("Part of the title, or of the key of the
|
|
44061
|
+
query: string$2().trim().min(1).max(200).optional().describe("Part of the title, or of the key of the issue it came from (KAN-1), any case: only the items that contain it"),
|
|
44062
44062
|
column: _enum([
|
|
44063
44063
|
"open",
|
|
44064
44064
|
"all",
|
|
@@ -44122,7 +44122,7 @@ function registerBacklogReads(server, client) {
|
|
|
44122
44122
|
}));
|
|
44123
44123
|
server.registerTool("taiga_get_initiative", {
|
|
44124
44124
|
title: "Get initiative",
|
|
44125
|
-
description: "Read one initiative: where it stands (column, turn, a sentence naming the next step), its latest run, and the start of its description. full: true gives the whole description, every acceptance criterion with whether it is met, and its technical context: read it that way before implementing. A failed plan carries planFailure. assignee is the one person accountable for it. webUrl is where a person opens it in Taiga (null when this Taiga has no web address set); externalRefKey and externalRefUrl name the
|
|
44125
|
+
description: "Read one initiative: where it stands (column, turn, a sentence naming the next step), its latest run, and the start of its description. full: true gives the whole description, every acceptance criterion with whether it is met, and its technical context: read it that way before implementing. A failed plan carries planFailure. assignee is the one person accountable for it. webUrl is where a person opens it in Taiga (null when this Taiga has no web address set); externalRefKey and externalRefUrl name the issue it came from in another tracker.",
|
|
44126
44126
|
inputSchema: object({
|
|
44127
44127
|
initiativeId,
|
|
44128
44128
|
full: boolean().optional().describe("Read it whole: every criterion, technical context and the raw state fields (default false)")
|
|
@@ -44178,20 +44178,20 @@ function registerBacklogReads(server, client) {
|
|
|
44178
44178
|
function registerRequest(server, client) {
|
|
44179
44179
|
server.registerTool("taiga_request_initiatives", {
|
|
44180
44180
|
title: "Request new initiatives",
|
|
44181
|
-
description: "Turn described work into initiatives in a product's backlog: an agent writes them and returns a job (taiga_wait follows it). Without a title and description it adds the one initiative the product most needs. It may add none and say why. One request per product at a time (CONFLICT). Nothing starts on its own. reference names the
|
|
44181
|
+
description: "Turn described work into initiatives in a product's backlog: an agent writes them and returns a job (taiga_wait follows it). Without a title and description it adds the one initiative the product most needs. It may add none and say why. One request per product at a time (CONFLICT). Nothing starts on its own. reference names the issue the work came from in another tracker (Jira, ServiceNow, Azure DevOps): every initiative the request creates keeps it as given, and taiga_list_initiatives finds them by its key.",
|
|
44182
44182
|
inputSchema: object({
|
|
44183
44183
|
productId,
|
|
44184
44184
|
title: string$2().max(500).optional().describe("What the work is, in a line"),
|
|
44185
44185
|
description: string$2().max(2e4).optional().describe("The request in Markdown: the problem, what it should look like, what it covers and leaves alone"),
|
|
44186
44186
|
reference: strictObject({
|
|
44187
|
-
key: string$2().trim().min(1).max(100).refine((value) => readExternalReference({ key: value }) !== null, { message: "A key with no line breaks, tabs or invisible characters in it" }).describe("The
|
|
44188
|
-
url: string$2().trim().max(EXTERNAL_REFERENCE_URL_MAX_LENGTH).refine((value) => readExternalReferenceUrl(value) !== null, { message: "An http or https address, without a username or password in it" }).optional().describe("The
|
|
44189
|
-
}).optional().describe("The
|
|
44187
|
+
key: string$2().trim().min(1).max(100).refine((value) => readExternalReference({ key: value }) !== null, { message: "A key with no line breaks, tabs or invisible characters in it" }).describe("The issue key as its tracker shows it, such as KAN-1"),
|
|
44188
|
+
url: string$2().trim().max(EXTERNAL_REFERENCE_URL_MAX_LENGTH).refine((value) => readExternalReferenceUrl(value) !== null, { message: "An http or https address, without a username or password in it" }).optional().describe("The issue's address, http or https")
|
|
44189
|
+
}).optional().describe("The issue this work came from in another tracker. Stored as given, never rewritten; needs a title or a description")
|
|
44190
44190
|
}),
|
|
44191
44191
|
annotations: OPERATE
|
|
44192
44192
|
}, (params) => runTool(async () => {
|
|
44193
44193
|
const userPrompt = requestPrompt(params.title, params.description);
|
|
44194
|
-
if (params.reference && !userPrompt) return toolError("VALIDATION_ERROR", "reference names the
|
|
44194
|
+
if (params.reference && !userPrompt) return toolError("VALIDATION_ERROR", "reference names the issue a request came from: give the request too (title or description).");
|
|
44195
44195
|
const externalReference = readExternalReference(params.reference);
|
|
44196
44196
|
const metadata = {
|
|
44197
44197
|
...userPrompt ? { userPrompt } : {},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ai/mcp-server",
|
|
3
|
-
"version": "0.51.0-dev.
|
|
3
|
+
"version": "0.51.0-dev.1270",
|
|
4
4
|
"description": "Taiga for AI coding assistants: read products, policies, initiatives and runs, and operate the line, over MCP",
|
|
5
5
|
"mcpName": "ga.tai/mcp-server",
|
|
6
6
|
"license": "UNLICENSED",
|