targetprocess-mcp-server 2.2.12 → 2.2.13

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/README.md CHANGED
@@ -105,6 +105,7 @@ Teams
105
105
  User
106
106
  - `get_logged_in_user` — Get the currently logged-in user's info (no params needed)
107
107
  - `get_users` — Get all Targetprocess users (no params needed)
108
+ - `get_user_by_id` — Get a single Targetprocess user by their ID (id)
108
109
 
109
110
  Developer Tools
110
111
  - `get_commit_message` — Returns a formatted commit message string for a task or bug ID (id, type: task | bug)
package/build/index.js CHANGED
@@ -435,6 +435,30 @@ server.registerTool('get_bug_content', {
435
435
  }],
436
436
  };
437
437
  });
438
+ server.registerTool('get_user_by_id', {
439
+ title: 'Get user by id',
440
+ description: 'Get user by id',
441
+ inputSchema: {
442
+ id: z.string()
443
+ .describe('User email'),
444
+ },
445
+ }, async ({ id }) => {
446
+ const user = await tp.getUser(id);
447
+ if (!user) {
448
+ return {
449
+ content: [{
450
+ type: 'text',
451
+ text: `Failed to get user, id: ${id}\n JSON: ${JSON.stringify(user, null, 2)}`
452
+ }],
453
+ };
454
+ }
455
+ return {
456
+ content: [{
457
+ type: 'text',
458
+ text: JSON.stringify(user)
459
+ }],
460
+ };
461
+ });
438
462
  server.registerTool('get_users', {
439
463
  title: 'Get users',
440
464
  description: 'Get all users',
package/build/tp.js CHANGED
@@ -310,6 +310,12 @@ export class TpClient {
310
310
  param: { "format": "json" },
311
311
  }, testPlan);
312
312
  }
313
+ async getUser(userId) {
314
+ return this.get({
315
+ pathParam: ["Users", userId],
316
+ param: { "format": "json" },
317
+ });
318
+ }
313
319
  async getUsers() {
314
320
  return this.get({
315
321
  pathParam: ["Users"],
package/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "engines": {
26
26
  "node": ">=20.x"
27
27
  },
28
- "version": "2.2.12",
28
+ "version": "2.2.13",
29
29
  "description": "MCP server for Tartget Process",
30
30
  "main": "build/index.js",
31
31
  "keywords": [