@daghis/teamcity-mcp 2.1.10 → 2.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.2.0](https://github.com/Daghis/teamcity-mcp/compare/teamcity-mcp-v2.1.10...teamcity-mcp-v2.2.0) (2026-02-12)
4
+
5
+
6
+ ### Features
7
+
8
+ * add cancel_build tool to dev tools ([091e23d](https://github.com/Daghis/teamcity-mcp/commit/091e23d7d74b12723825dbebca716df536df6cac))
9
+
3
10
  ## [2.1.10](https://github.com/Daghis/teamcity-mcp/compare/teamcity-mcp-v2.1.9...teamcity-mcp-v2.1.10) (2026-02-12)
4
11
 
5
12
 
package/dist/index.js CHANGED
@@ -1207,7 +1207,7 @@ function debug2(message, meta) {
1207
1207
  // package.json
1208
1208
  var package_default = {
1209
1209
  name: "@daghis/teamcity-mcp",
1210
- version: "2.1.10",
1210
+ version: "2.2.0",
1211
1211
  description: "Model Control Protocol server for TeamCity CI/CD integration with AI coding assistants",
1212
1212
  mcpName: "io.github.Daghis/teamcity",
1213
1213
  main: "dist/index.js",
@@ -39488,6 +39488,52 @@ var DEV_TOOLS = [
39488
39488
  }
39489
39489
  // Available in dev and full modes (developer convenience)
39490
39490
  },
39491
+ {
39492
+ name: "cancel_build",
39493
+ description: "Cancel or stop a running (or queued) build by ID. Supports an optional comment and requeue flag.",
39494
+ inputSchema: {
39495
+ type: "object",
39496
+ properties: {
39497
+ buildId: { type: "string", description: "Build ID" },
39498
+ comment: { type: "string", description: "Optional cancellation comment" },
39499
+ readdIntoQueue: {
39500
+ type: "boolean",
39501
+ description: "If true, a new identical build will be queued after cancel (running builds only). Defaults to false."
39502
+ }
39503
+ },
39504
+ required: ["buildId"]
39505
+ },
39506
+ handler: async (args) => {
39507
+ const schema = import_zod4.z.object({
39508
+ buildId: import_zod4.z.string().min(1),
39509
+ comment: import_zod4.z.string().optional(),
39510
+ readdIntoQueue: import_zod4.z.boolean().optional()
39511
+ });
39512
+ return runTool(
39513
+ "cancel_build",
39514
+ schema,
39515
+ async (typed) => {
39516
+ const adapter = createAdapterFromTeamCityAPI(TeamCityAPI.getInstance());
39517
+ await adapter.modules.builds.cancelBuild(
39518
+ `id:${typed.buildId}`,
39519
+ void 0,
39520
+ {
39521
+ comment: typed.comment ?? "Cancelled via MCP",
39522
+ readdIntoQueue: typed.readdIntoQueue ?? false
39523
+ },
39524
+ { headers: { "Content-Type": "application/json" } }
39525
+ );
39526
+ return json({
39527
+ success: true,
39528
+ action: "cancel_build",
39529
+ buildId: typed.buildId,
39530
+ comment: typed.comment
39531
+ });
39532
+ },
39533
+ args
39534
+ );
39535
+ }
39536
+ },
39491
39537
  {
39492
39538
  name: "get_build_status",
39493
39539
  description: "Get build status with optional test/problem and queue context details",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daghis/teamcity-mcp",
3
- "version": "2.1.10",
3
+ "version": "2.2.0",
4
4
  "description": "Model Control Protocol server for TeamCity CI/CD integration with AI coding assistants",
5
5
  "mcpName": "io.github.Daghis/teamcity",
6
6
  "main": "dist/index.js",
package/server.json CHANGED
@@ -7,13 +7,13 @@
7
7
  "source": "github"
8
8
  },
9
9
  "websiteUrl": "https://github.com/Daghis/teamcity-mcp",
10
- "version": "2.1.10",
10
+ "version": "2.2.0",
11
11
  "packages": [
12
12
  {
13
13
  "registryType": "npm",
14
14
  "registryBaseUrl": "https://registry.npmjs.org",
15
15
  "identifier": "@daghis/teamcity-mcp",
16
- "version": "2.1.10",
16
+ "version": "2.2.0",
17
17
  "runtimeHint": "npx",
18
18
  "runtimeArguments": [
19
19
  {