@smartytalent/mcp-tools 0.1.29 → 0.1.31

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.
Files changed (4) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +87 -0
  3. package/dist/tools.json +609 -154
  4. package/package.json +2 -2
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+ Copyright (c) 2026 SmartyTalent (SmartyMeet sp. z o.o.)
2
+
3
+ Apache License
4
+ Version 2.0, January 2004
5
+ http://www.apache.org/licenses/
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction,
12
+ and distribution as defined by Sections 1 through 9 of this document.
13
+
14
+ "Licensor" shall mean the copyright owner or entity authorized by
15
+ the copyright owner that is granting the License.
16
+
17
+ "Legal Entity" shall mean the union of the acting entity and all
18
+ other entities that control, are controlled by, or are under common
19
+ control with that entity. For the purposes of this definition,
20
+ "control" means (i) the power, direct or indirect, to cause the
21
+ direction or management of such entity, whether by contract or
22
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
23
+ outstanding shares, or (iii) beneficial ownership of such entity.
24
+
25
+ "You" (or "Your") shall mean an individual or Legal Entity
26
+ exercising permissions granted by this License.
27
+
28
+ "Source" form shall mean the preferred form for making modifications,
29
+ including but not limited to software source code, documentation
30
+ source, and configuration files.
31
+
32
+ "Object" form shall mean any form resulting from mechanical
33
+ transformation or translation of a Source form, including but
34
+ not limited to compiled object code, generated documentation,
35
+ and conversions to other media types.
36
+
37
+ "Work" shall mean the work of authorship, whether in Source or
38
+ Object form, made available under the License, as indicated by a
39
+ copyright notice that is included in or attached to the work
40
+ (an example is provided in the Appendix below).
41
+
42
+ "Derivative Works" shall mean any work, whether in Source or Object
43
+ form, that is based on (or derived from) the Work and for which the
44
+ editorial revisions, annotations, elaborations, or other modifications
45
+ represent, as a whole, an original work of authorship. For the purposes
46
+ of this License, Derivative Works shall not include works that remain
47
+ separable from, or merely link (or bind by name) to the interfaces of,
48
+ the Work and Derivative Works thereof.
49
+
50
+ "Contribution" shall mean any work of authorship, including
51
+ the original version of the Work and any modifications or additions
52
+ to that Work or Derivative Works thereof, that is intentionally
53
+ submitted to Licensor for inclusion in the Work by the copyright owner
54
+ or by an individual or Legal Entity authorized to submit on behalf of
55
+ the copyright owner. For the purposes of this definition, "submitted"
56
+ means any form of electronic, verbal, or written communication sent
57
+ to the Licensor or its representatives, including but not limited to
58
+ communication on electronic mailing lists, source code control systems,
59
+ and issue tracking systems that are managed by, or on behalf of, the
60
+ Licensor for the purpose of discussing and improving the Work, but
61
+ excluding communication that is conspicuously marked or otherwise
62
+ designated in writing by the copyright owner as "Not a Contribution."
63
+
64
+ "Contributor" shall mean Licensor and any individual or Legal Entity
65
+ on behalf of whom a Contribution has been received by Licensor and
66
+ subsequently incorporated within the Work.
67
+
68
+ 2. Grant of Copyright License. Subject to the terms and conditions of
69
+ this License, each Contributor hereby grants to You a perpetual,
70
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
71
+ copyright license to reproduce, prepare Derivative Works of,
72
+ publicly display, publicly perform, sublicense, and distribute the
73
+ Work and such Derivative Works in Source or Object form.
74
+
75
+ 3. Grant of Patent License. Subject to the terms and conditions of
76
+ this License, each Contributor hereby grants to You a perpetual,
77
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
78
+ (except as stated in this section) patent license to make, have made,
79
+ use, offer to sell, sell, import, and otherwise transfer the Work,
80
+ where such license applies only to those patent claims licensable
81
+ by such Contributor that are necessarily infringed by their
82
+ Contribution(s) alone or by combination of their Contribution(s)
83
+ with the Work to which such Contribution(s) was submitted. If You
84
+ institute patent litigation against any entity (including a
85
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
86
+ or a Contribution incorporated within the Work constitutes direct
87
+ or contributory patent infringement, then any patent licenses
88
+ granted to You under this License for that Work shall terminate
89
+ as of the date such litigation is filed.
90
+
91
+ 4. Redistribution. You may reproduce and distribute copies of the
92
+ Work or Derivative Works thereof in any medium, with or without
93
+ modifications, and in Source or Object form, provided that You
94
+ meet the following conditions:
95
+
96
+ (a) You must give any other recipients of the Work or
97
+ Derivative Works a copy of this License; and
98
+
99
+ (b) You must cause any modified files to carry prominent notices
100
+ stating that You changed the files; and
101
+
102
+ (c) You must retain, in the Source form of any Derivative Works
103
+ that You distribute, all copyright, patent, trademark, and
104
+ attribution notices from the Source form of the Work,
105
+ excluding those notices that do not pertain to any part of
106
+ the Derivative Works; and
107
+
108
+ (d) If the Work includes a "NOTICE" text file as part of its
109
+ distribution, then any Derivative Works that You distribute must
110
+ include a readable copy of the attribution notices contained
111
+ within such NOTICE file, excluding those notices that do not
112
+ pertain to any part of the Derivative Works, in at least one
113
+ of the following places: within a NOTICE text file distributed
114
+ as part of the Derivative Works; within the Source form or
115
+ documentation, if provided along with the Derivative Works; or,
116
+ within a display generated by the Derivative Works, if and
117
+ wherever such third-party notices normally appear. The contents
118
+ of the NOTICE file are for informational purposes only and
119
+ do not modify the License. You may add Your own attribution
120
+ notices within Derivative Works that You distribute, alongside
121
+ or as an addendum to the NOTICE text from the Work, provided
122
+ that such additional attribution notices cannot be construed
123
+ as modifying the License.
124
+
125
+ You may add Your own copyright statement to Your modifications and
126
+ may provide additional or different license terms and conditions
127
+ for use, reproduction, or distribution of Your modifications, or
128
+ for any such Derivative Works as a whole, provided Your use,
129
+ reproduction, and distribution of the Work otherwise complies with
130
+ the conditions stated in this License.
131
+
132
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
133
+ any Contribution intentionally submitted for inclusion in the Work
134
+ by You to the Licensor shall be under the terms and conditions of
135
+ this License, without any additional terms or conditions.
136
+ Notwithstanding the above, nothing herein shall supersede or modify
137
+ the terms of any separate license agreement you may have executed
138
+ with Licensor regarding such Contributions.
139
+
140
+ 6. Trademarks. This License does not grant permission to use the trade
141
+ names, trademarks, service marks, or product names of the Licensor,
142
+ except as required for describing the origin of the Work and
143
+ reproducing the content of the NOTICE file.
144
+
145
+ 7. Disclaimer of Warranty. Unless required by applicable law or
146
+ agreed to in writing, Licensor provides the Work (and each
147
+ Contributor provides its Contributions) on an "AS IS" BASIS,
148
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
149
+ implied, including, without limitation, any warranties or conditions
150
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
151
+ PARTICULAR PURPOSE. You are solely responsible for determining the
152
+ appropriateness of using or redistributing the Work and assume any
153
+ risks associated with Your exercise of permissions under this License.
154
+
155
+ 8. Limitation of Liability. In no event and under no legal theory,
156
+ whether in tort (including negligence), contract, or otherwise,
157
+ unless required by applicable law (such as deliberate and grossly
158
+ negligent acts) or agreed to in writing, shall any Contributor be
159
+ liable to You for damages, including any direct, indirect, special,
160
+ incidental, or consequential damages of any character arising as a
161
+ result of this License or out of the use or inability to use the
162
+ Work (including but not limited to damages for loss of goodwill,
163
+ work stoppage, computer failure or malfunction, or any and all
164
+ other commercial damages or losses), even if such Contributor
165
+ has been advised of the possibility of such damages.
166
+
167
+ 9. Accepting Warranty or Additional Liability. While redistributing
168
+ the Work or Derivative Works thereof, You may accept support,
169
+ warranty, indemnity, or other liability obligations and/or rights
170
+ consistent with this License. However, in accepting such obligations,
171
+ You may act only on Your own behalf and on Your sole responsibility,
172
+ not on behalf of any other Contributor, and only if You agree to
173
+ indemnify, defend, and hold each Contributor harmless for any
174
+ liability incurred by, or claims asserted against, such Contributor
175
+ by reason of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 SmartyTalent (SmartyMeet sp. z o.o.)
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,87 @@
1
+ # @smartytalent/mcp-tools
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@smartytalent/mcp-tools.svg)](https://www.npmjs.com/package/@smartytalent/mcp-tools)
4
+ [![npm downloads](https://img.shields.io/npm/dm/@smartytalent/mcp-tools.svg)](https://www.npmjs.com/package/@smartytalent/mcp-tools)
5
+
6
+ [Model Context Protocol](https://modelcontextprotocol.io/) tool definitions for the **SmartyTalent** recruitment API.
7
+
8
+ This package ships a pre-built `tools.json` generated from the SmartyTalent OpenAPI spec — one MCP tool per API operation — so you can plug the full API surface into any MCP server or LLM host with a few lines of glue code.
9
+
10
+ ## Install
11
+
12
+ ```bash
13
+ npm install @smartytalent/mcp-tools
14
+ ```
15
+
16
+ ## What's inside
17
+
18
+ - `tools` — an array of MCP tool definitions (`name`, `description`, `inputSchema`, `_meta`)
19
+ - `_meta` carries routing hints (`method`, `path`, `operationId`) so your MCP server can map tool calls back to HTTP requests
20
+
21
+ ```ts
22
+ interface MCPTool {
23
+ name: string // snake_case operationId, e.g. "list_tenants"
24
+ description: string // from OpenAPI summary/description
25
+ inputSchema: { // JSON Schema for tool arguments
26
+ type: 'object'
27
+ properties: Record<string, unknown>
28
+ required?: string[]
29
+ }
30
+ _meta: {
31
+ method: string // HTTP verb, e.g. "GET", "POST"
32
+ path: string // e.g. "/tenants/{id}"
33
+ operationId: string // original camelCase operationId
34
+ }
35
+ }
36
+ ```
37
+
38
+ ## Quick start
39
+
40
+ ### Register all tools with an MCP server
41
+
42
+ ```ts
43
+ import { tools } from '@smartytalent/mcp-tools'
44
+ import { Server } from '@modelcontextprotocol/sdk/server/index.js'
45
+ import { ListToolsRequestSchema, CallToolRequestSchema } from '@modelcontextprotocol/sdk/types.js'
46
+
47
+ const server = new Server({ name: 'smartytalent', version: '1.0.0' }, { capabilities: { tools: {} } })
48
+
49
+ server.setRequestHandler(ListToolsRequestSchema, async () => ({
50
+ tools: tools.map(({ name, description, inputSchema }) => ({ name, description, inputSchema })),
51
+ }))
52
+
53
+ server.setRequestHandler(CallToolRequestSchema, async (req) => {
54
+ const tool = tools.find((t) => t.name === req.params.name)
55
+ if (!tool) throw new Error(`Unknown tool: ${req.params.name}`)
56
+
57
+ const { method, path } = tool._meta
58
+ const args = req.params.arguments ?? {}
59
+
60
+ // Interpolate path params, split query/body, and dispatch...
61
+ const response = await callSmartyTalentApi(method, path, args)
62
+
63
+ return { content: [{ type: 'text', text: JSON.stringify(response) }] }
64
+ })
65
+ ```
66
+
67
+ ### Pair with the official API client
68
+
69
+ For type-safe execution, delegate to [`@smartytalent/api-client`](https://www.npmjs.com/package/@smartytalent/api-client) instead of building your own HTTP dispatcher. Match `_meta.operationId` to the corresponding API class method.
70
+
71
+ ## Raw JSON
72
+
73
+ If you're not in a JS runtime, import `tools.json` directly:
74
+
75
+ ```ts
76
+ import tools from '@smartytalent/mcp-tools/dist/tools.json'
77
+ ```
78
+
79
+ ## Versioning
80
+
81
+ Published in lockstep with `@smartytalent/api-client`. Pin both packages to the same version to guarantee the tool catalog matches the HTTP surface.
82
+
83
+ ## License
84
+
85
+ Licensed under the [Apache License, Version 2.0](./LICENSE).
86
+
87
+ Copyright © 2026 SmartyTalent (SmartyMeet sp. z o.o.)
package/dist/tools.json CHANGED
@@ -227,10 +227,6 @@
227
227
  "type": "string",
228
228
  "description": "Email address assigned to the Boe AI agent for this tenant"
229
229
  },
230
- "defaultFeedbackId": {
231
- "type": "string",
232
- "description": "Tenant-wide default feedback configuration applied when a job has no feedback override. Set to null to clear."
233
- },
234
230
  "defaultFormId": {
235
231
  "type": "string",
236
232
  "description": "Tenant-wide default form used for guest submissions when no job-specific form is configured. Set to null to clear."
@@ -239,7 +235,31 @@
239
235
  },
240
236
  "relationships": {
241
237
  "title": "TenantRelationshipsSchema",
242
- "type": "object"
238
+ "type": "object",
239
+ "properties": {
240
+ "feedbacks": {
241
+ "title": "TenantRelationshipsFeedbacksSchema",
242
+ "type": "object",
243
+ "description": "Tenant-wide default feedback configurations. Up to one per stage (screening, assessment). Used when the job has no stage-specific feedback override.",
244
+ "properties": {
245
+ "data": {
246
+ "type": "array",
247
+ "items": {
248
+ "title": "TenantRelationshipsFeedbacksDataSchema",
249
+ "type": "object",
250
+ "properties": {
251
+ "type": {
252
+ "type": "string"
253
+ },
254
+ "id": {
255
+ "type": "string"
256
+ }
257
+ }
258
+ }
259
+ }
260
+ }
261
+ }
262
+ }
243
263
  }
244
264
  }
245
265
  }
@@ -269,7 +289,19 @@
269
289
  "description": "Show Tenant",
270
290
  "inputSchema": {
271
291
  "type": "object",
272
- "properties": {}
292
+ "properties": {
293
+ "tenantId": {
294
+ "type": "string",
295
+ "description": "The tenant's identifier"
296
+ },
297
+ "include": {
298
+ "type": "string",
299
+ "description": "JSON:API compound document request — comma-separated list of relationship paths to include in the response (e.g. `feedbacks`, `feedbacks,boeUser`). Currently advisory: the service always returns all declared relationships with empty defaults."
300
+ }
301
+ },
302
+ "required": [
303
+ "tenantId"
304
+ ]
273
305
  },
274
306
  "_meta": {
275
307
  "method": "GET",
@@ -292,8 +324,7 @@
292
324
  "type": "object",
293
325
  "required": [
294
326
  "type",
295
- "id",
296
- "attributes"
327
+ "id"
297
328
  ],
298
329
  "properties": {
299
330
  "type": {
@@ -447,15 +478,39 @@
447
478
  "type": "string",
448
479
  "description": "Email address assigned to the Boe AI agent for this tenant"
449
480
  },
450
- "defaultFeedbackId": {
451
- "type": "string",
452
- "description": "Tenant-wide default feedback configuration applied when a job has no feedback override. Set to null to clear."
453
- },
454
481
  "defaultFormId": {
455
482
  "type": "string",
456
483
  "description": "Tenant-wide default form used for guest submissions when no job-specific form is configured. Set to null to clear."
457
484
  }
458
485
  }
486
+ },
487
+ "relationships": {
488
+ "title": "TenantRelationshipsSchema",
489
+ "type": "object",
490
+ "properties": {
491
+ "feedbacks": {
492
+ "title": "TenantRelationshipsFeedbacksSchema",
493
+ "type": "object",
494
+ "description": "Tenant-wide default feedback configurations. Up to one per stage (screening, assessment). Used when the job has no stage-specific feedback override.",
495
+ "properties": {
496
+ "data": {
497
+ "type": "array",
498
+ "items": {
499
+ "title": "TenantRelationshipsFeedbacksDataSchema",
500
+ "type": "object",
501
+ "properties": {
502
+ "type": {
503
+ "type": "string"
504
+ },
505
+ "id": {
506
+ "type": "string"
507
+ }
508
+ }
509
+ }
510
+ }
511
+ }
512
+ }
513
+ }
459
514
  }
460
515
  }
461
516
  }
@@ -7428,98 +7483,298 @@
7428
7483
  "title": "FeedbackAttributesSchema",
7429
7484
  "type": "object",
7430
7485
  "required": [
7431
- "name"
7486
+ "name",
7487
+ "stage"
7432
7488
  ],
7433
7489
  "properties": {
7434
7490
  "name": {
7435
7491
  "type": "string"
7436
7492
  },
7437
- "transparency": {
7493
+ "stage": {
7438
7494
  "type": "string",
7439
7495
  "enum": [
7440
- "generic",
7441
- "category",
7442
- "specific"
7443
- ]
7496
+ "screening",
7497
+ "assessment"
7498
+ ],
7499
+ "description": "Pipeline stage this feedback configuration applies to. Matches candidate.stage."
7444
7500
  },
7445
- "tone": {
7501
+ "status": {
7446
7502
  "type": "string",
7447
7503
  "enum": [
7448
- "casual",
7449
- "formal",
7450
- "superFormal"
7504
+ "active",
7505
+ "draft",
7506
+ "archived",
7507
+ "failed"
7451
7508
  ]
7452
7509
  },
7453
- "delay": {
7454
- "type": "integer",
7455
- "default": 72
7456
- },
7457
- "respectBusinessDays": {
7458
- "type": "boolean",
7459
- "default": false
7510
+ "source": {
7511
+ "type": "string"
7460
7512
  },
7461
- "signature": {
7513
+ "outcomes": {
7514
+ "title": "FeedbackOutcomesSchema",
7462
7515
  "type": "object",
7516
+ "description": "Per-outcome feedback rules. Outcome keys map to candidate.recommendationStatusCode: 1=notFit, 2=maybe, 3=fit. Code 0 (not evaluated) never triggers feedback — the workflow pauses instead.",
7463
7517
  "properties": {
7464
- "name": {
7465
- "type": "string"
7518
+ "notFit": {
7519
+ "title": "FeedbackOutcomeRuleSchema",
7520
+ "type": "object",
7521
+ "description": "Feedback rule for a single outcome within a stage. Every field is per-outcome; there are no top-level defaults.",
7522
+ "properties": {
7523
+ "enabled": {
7524
+ "type": "boolean",
7525
+ "default": false,
7526
+ "description": "When false, the workflow skips the feedback email for this outcome. The admin handles the candidate manually."
7527
+ },
7528
+ "tone": {
7529
+ "type": "string",
7530
+ "enum": [
7531
+ "casual",
7532
+ "formal",
7533
+ "superFormal"
7534
+ ]
7535
+ },
7536
+ "transparency": {
7537
+ "type": "string",
7538
+ "enum": [
7539
+ "generic",
7540
+ "category",
7541
+ "specific"
7542
+ ]
7543
+ },
7544
+ "delay": {
7545
+ "type": "integer",
7546
+ "default": 72
7547
+ },
7548
+ "respectBusinessDays": {
7549
+ "type": "boolean",
7550
+ "default": false
7551
+ },
7552
+ "aiDisclosure": {
7553
+ "type": "boolean",
7554
+ "default": true
7555
+ },
7556
+ "signature": {
7557
+ "type": "object",
7558
+ "properties": {
7559
+ "name": {
7560
+ "type": "string"
7561
+ },
7562
+ "title": {
7563
+ "type": "string"
7564
+ },
7565
+ "company": {
7566
+ "type": "string"
7567
+ }
7568
+ }
7569
+ },
7570
+ "instructions": {
7571
+ "type": "string"
7572
+ },
7573
+ "categories": {
7574
+ "type": "array",
7575
+ "items": {
7576
+ "type": "string"
7577
+ }
7578
+ },
7579
+ "reasons": {
7580
+ "type": "array",
7581
+ "items": {
7582
+ "type": "string"
7583
+ }
7584
+ },
7585
+ "links": {
7586
+ "type": "array",
7587
+ "items": {
7588
+ "type": "object",
7589
+ "properties": {
7590
+ "label": {
7591
+ "type": "string"
7592
+ },
7593
+ "url": {
7594
+ "type": "string"
7595
+ }
7596
+ }
7597
+ }
7598
+ },
7599
+ "feedbackFormUrl": {
7600
+ "type": "string"
7601
+ }
7602
+ }
7466
7603
  },
7467
- "title": {
7468
- "type": "string"
7604
+ "maybe": {
7605
+ "title": "FeedbackOutcomeRuleSchema",
7606
+ "type": "object",
7607
+ "description": "Feedback rule for a single outcome within a stage. Every field is per-outcome; there are no top-level defaults.",
7608
+ "properties": {
7609
+ "enabled": {
7610
+ "type": "boolean",
7611
+ "default": false,
7612
+ "description": "When false, the workflow skips the feedback email for this outcome. The admin handles the candidate manually."
7613
+ },
7614
+ "tone": {
7615
+ "type": "string",
7616
+ "enum": [
7617
+ "casual",
7618
+ "formal",
7619
+ "superFormal"
7620
+ ]
7621
+ },
7622
+ "transparency": {
7623
+ "type": "string",
7624
+ "enum": [
7625
+ "generic",
7626
+ "category",
7627
+ "specific"
7628
+ ]
7629
+ },
7630
+ "delay": {
7631
+ "type": "integer",
7632
+ "default": 72
7633
+ },
7634
+ "respectBusinessDays": {
7635
+ "type": "boolean",
7636
+ "default": false
7637
+ },
7638
+ "aiDisclosure": {
7639
+ "type": "boolean",
7640
+ "default": true
7641
+ },
7642
+ "signature": {
7643
+ "type": "object",
7644
+ "properties": {
7645
+ "name": {
7646
+ "type": "string"
7647
+ },
7648
+ "title": {
7649
+ "type": "string"
7650
+ },
7651
+ "company": {
7652
+ "type": "string"
7653
+ }
7654
+ }
7655
+ },
7656
+ "instructions": {
7657
+ "type": "string"
7658
+ },
7659
+ "categories": {
7660
+ "type": "array",
7661
+ "items": {
7662
+ "type": "string"
7663
+ }
7664
+ },
7665
+ "reasons": {
7666
+ "type": "array",
7667
+ "items": {
7668
+ "type": "string"
7669
+ }
7670
+ },
7671
+ "links": {
7672
+ "type": "array",
7673
+ "items": {
7674
+ "type": "object",
7675
+ "properties": {
7676
+ "label": {
7677
+ "type": "string"
7678
+ },
7679
+ "url": {
7680
+ "type": "string"
7681
+ }
7682
+ }
7683
+ }
7684
+ },
7685
+ "feedbackFormUrl": {
7686
+ "type": "string"
7687
+ }
7688
+ }
7469
7689
  },
7470
- "company": {
7471
- "type": "string"
7472
- }
7473
- }
7474
- },
7475
- "aiDisclosure": {
7476
- "type": "boolean",
7477
- "default": true
7478
- },
7479
- "instructions": {
7480
- "type": "string"
7481
- },
7482
- "categories": {
7483
- "type": "array",
7484
- "items": {
7485
- "type": "string"
7486
- }
7487
- },
7488
- "reasons": {
7489
- "type": "array",
7490
- "items": {
7491
- "type": "string"
7492
- }
7493
- },
7494
- "links": {
7495
- "type": "array",
7496
- "items": {
7497
- "type": "object",
7498
- "properties": {
7499
- "label": {
7500
- "type": "string"
7501
- },
7502
- "url": {
7503
- "type": "string"
7690
+ "fit": {
7691
+ "title": "FeedbackOutcomeRuleSchema",
7692
+ "type": "object",
7693
+ "description": "Feedback rule for a single outcome within a stage. Every field is per-outcome; there are no top-level defaults.",
7694
+ "properties": {
7695
+ "enabled": {
7696
+ "type": "boolean",
7697
+ "default": false,
7698
+ "description": "When false, the workflow skips the feedback email for this outcome. The admin handles the candidate manually."
7699
+ },
7700
+ "tone": {
7701
+ "type": "string",
7702
+ "enum": [
7703
+ "casual",
7704
+ "formal",
7705
+ "superFormal"
7706
+ ]
7707
+ },
7708
+ "transparency": {
7709
+ "type": "string",
7710
+ "enum": [
7711
+ "generic",
7712
+ "category",
7713
+ "specific"
7714
+ ]
7715
+ },
7716
+ "delay": {
7717
+ "type": "integer",
7718
+ "default": 72
7719
+ },
7720
+ "respectBusinessDays": {
7721
+ "type": "boolean",
7722
+ "default": false
7723
+ },
7724
+ "aiDisclosure": {
7725
+ "type": "boolean",
7726
+ "default": true
7727
+ },
7728
+ "signature": {
7729
+ "type": "object",
7730
+ "properties": {
7731
+ "name": {
7732
+ "type": "string"
7733
+ },
7734
+ "title": {
7735
+ "type": "string"
7736
+ },
7737
+ "company": {
7738
+ "type": "string"
7739
+ }
7740
+ }
7741
+ },
7742
+ "instructions": {
7743
+ "type": "string"
7744
+ },
7745
+ "categories": {
7746
+ "type": "array",
7747
+ "items": {
7748
+ "type": "string"
7749
+ }
7750
+ },
7751
+ "reasons": {
7752
+ "type": "array",
7753
+ "items": {
7754
+ "type": "string"
7755
+ }
7756
+ },
7757
+ "links": {
7758
+ "type": "array",
7759
+ "items": {
7760
+ "type": "object",
7761
+ "properties": {
7762
+ "label": {
7763
+ "type": "string"
7764
+ },
7765
+ "url": {
7766
+ "type": "string"
7767
+ }
7768
+ }
7769
+ }
7770
+ },
7771
+ "feedbackFormUrl": {
7772
+ "type": "string"
7773
+ }
7504
7774
  }
7505
7775
  }
7506
7776
  }
7507
7777
  },
7508
- "feedbackFormUrl": {
7509
- "type": "string"
7510
- },
7511
- "status": {
7512
- "type": "string",
7513
- "enum": [
7514
- "active",
7515
- "draft",
7516
- "archived",
7517
- "failed"
7518
- ]
7519
- },
7520
- "source": {
7521
- "type": "string"
7522
- },
7523
7778
  "timestamps": {
7524
7779
  "title": "ResourceTimestampsSchema",
7525
7780
  "type": "object",
@@ -7642,98 +7897,298 @@
7642
7897
  "title": "FeedbackAttributesSchema",
7643
7898
  "type": "object",
7644
7899
  "required": [
7645
- "name"
7900
+ "name",
7901
+ "stage"
7646
7902
  ],
7647
7903
  "properties": {
7648
7904
  "name": {
7649
7905
  "type": "string"
7650
7906
  },
7651
- "transparency": {
7907
+ "stage": {
7652
7908
  "type": "string",
7653
7909
  "enum": [
7654
- "generic",
7655
- "category",
7656
- "specific"
7657
- ]
7910
+ "screening",
7911
+ "assessment"
7912
+ ],
7913
+ "description": "Pipeline stage this feedback configuration applies to. Matches candidate.stage."
7658
7914
  },
7659
- "tone": {
7915
+ "status": {
7660
7916
  "type": "string",
7661
7917
  "enum": [
7662
- "casual",
7663
- "formal",
7664
- "superFormal"
7918
+ "active",
7919
+ "draft",
7920
+ "archived",
7921
+ "failed"
7665
7922
  ]
7666
7923
  },
7667
- "delay": {
7668
- "type": "integer",
7669
- "default": 72
7670
- },
7671
- "respectBusinessDays": {
7672
- "type": "boolean",
7673
- "default": false
7924
+ "source": {
7925
+ "type": "string"
7674
7926
  },
7675
- "signature": {
7927
+ "outcomes": {
7928
+ "title": "FeedbackOutcomesSchema",
7676
7929
  "type": "object",
7930
+ "description": "Per-outcome feedback rules. Outcome keys map to candidate.recommendationStatusCode: 1=notFit, 2=maybe, 3=fit. Code 0 (not evaluated) never triggers feedback — the workflow pauses instead.",
7677
7931
  "properties": {
7678
- "name": {
7679
- "type": "string"
7932
+ "notFit": {
7933
+ "title": "FeedbackOutcomeRuleSchema",
7934
+ "type": "object",
7935
+ "description": "Feedback rule for a single outcome within a stage. Every field is per-outcome; there are no top-level defaults.",
7936
+ "properties": {
7937
+ "enabled": {
7938
+ "type": "boolean",
7939
+ "default": false,
7940
+ "description": "When false, the workflow skips the feedback email for this outcome. The admin handles the candidate manually."
7941
+ },
7942
+ "tone": {
7943
+ "type": "string",
7944
+ "enum": [
7945
+ "casual",
7946
+ "formal",
7947
+ "superFormal"
7948
+ ]
7949
+ },
7950
+ "transparency": {
7951
+ "type": "string",
7952
+ "enum": [
7953
+ "generic",
7954
+ "category",
7955
+ "specific"
7956
+ ]
7957
+ },
7958
+ "delay": {
7959
+ "type": "integer",
7960
+ "default": 72
7961
+ },
7962
+ "respectBusinessDays": {
7963
+ "type": "boolean",
7964
+ "default": false
7965
+ },
7966
+ "aiDisclosure": {
7967
+ "type": "boolean",
7968
+ "default": true
7969
+ },
7970
+ "signature": {
7971
+ "type": "object",
7972
+ "properties": {
7973
+ "name": {
7974
+ "type": "string"
7975
+ },
7976
+ "title": {
7977
+ "type": "string"
7978
+ },
7979
+ "company": {
7980
+ "type": "string"
7981
+ }
7982
+ }
7983
+ },
7984
+ "instructions": {
7985
+ "type": "string"
7986
+ },
7987
+ "categories": {
7988
+ "type": "array",
7989
+ "items": {
7990
+ "type": "string"
7991
+ }
7992
+ },
7993
+ "reasons": {
7994
+ "type": "array",
7995
+ "items": {
7996
+ "type": "string"
7997
+ }
7998
+ },
7999
+ "links": {
8000
+ "type": "array",
8001
+ "items": {
8002
+ "type": "object",
8003
+ "properties": {
8004
+ "label": {
8005
+ "type": "string"
8006
+ },
8007
+ "url": {
8008
+ "type": "string"
8009
+ }
8010
+ }
8011
+ }
8012
+ },
8013
+ "feedbackFormUrl": {
8014
+ "type": "string"
8015
+ }
8016
+ }
7680
8017
  },
7681
- "title": {
7682
- "type": "string"
8018
+ "maybe": {
8019
+ "title": "FeedbackOutcomeRuleSchema",
8020
+ "type": "object",
8021
+ "description": "Feedback rule for a single outcome within a stage. Every field is per-outcome; there are no top-level defaults.",
8022
+ "properties": {
8023
+ "enabled": {
8024
+ "type": "boolean",
8025
+ "default": false,
8026
+ "description": "When false, the workflow skips the feedback email for this outcome. The admin handles the candidate manually."
8027
+ },
8028
+ "tone": {
8029
+ "type": "string",
8030
+ "enum": [
8031
+ "casual",
8032
+ "formal",
8033
+ "superFormal"
8034
+ ]
8035
+ },
8036
+ "transparency": {
8037
+ "type": "string",
8038
+ "enum": [
8039
+ "generic",
8040
+ "category",
8041
+ "specific"
8042
+ ]
8043
+ },
8044
+ "delay": {
8045
+ "type": "integer",
8046
+ "default": 72
8047
+ },
8048
+ "respectBusinessDays": {
8049
+ "type": "boolean",
8050
+ "default": false
8051
+ },
8052
+ "aiDisclosure": {
8053
+ "type": "boolean",
8054
+ "default": true
8055
+ },
8056
+ "signature": {
8057
+ "type": "object",
8058
+ "properties": {
8059
+ "name": {
8060
+ "type": "string"
8061
+ },
8062
+ "title": {
8063
+ "type": "string"
8064
+ },
8065
+ "company": {
8066
+ "type": "string"
8067
+ }
8068
+ }
8069
+ },
8070
+ "instructions": {
8071
+ "type": "string"
8072
+ },
8073
+ "categories": {
8074
+ "type": "array",
8075
+ "items": {
8076
+ "type": "string"
8077
+ }
8078
+ },
8079
+ "reasons": {
8080
+ "type": "array",
8081
+ "items": {
8082
+ "type": "string"
8083
+ }
8084
+ },
8085
+ "links": {
8086
+ "type": "array",
8087
+ "items": {
8088
+ "type": "object",
8089
+ "properties": {
8090
+ "label": {
8091
+ "type": "string"
8092
+ },
8093
+ "url": {
8094
+ "type": "string"
8095
+ }
8096
+ }
8097
+ }
8098
+ },
8099
+ "feedbackFormUrl": {
8100
+ "type": "string"
8101
+ }
8102
+ }
7683
8103
  },
7684
- "company": {
7685
- "type": "string"
7686
- }
7687
- }
7688
- },
7689
- "aiDisclosure": {
7690
- "type": "boolean",
7691
- "default": true
7692
- },
7693
- "instructions": {
7694
- "type": "string"
7695
- },
7696
- "categories": {
7697
- "type": "array",
7698
- "items": {
7699
- "type": "string"
7700
- }
7701
- },
7702
- "reasons": {
7703
- "type": "array",
7704
- "items": {
7705
- "type": "string"
7706
- }
7707
- },
7708
- "links": {
7709
- "type": "array",
7710
- "items": {
7711
- "type": "object",
7712
- "properties": {
7713
- "label": {
7714
- "type": "string"
7715
- },
7716
- "url": {
7717
- "type": "string"
8104
+ "fit": {
8105
+ "title": "FeedbackOutcomeRuleSchema",
8106
+ "type": "object",
8107
+ "description": "Feedback rule for a single outcome within a stage. Every field is per-outcome; there are no top-level defaults.",
8108
+ "properties": {
8109
+ "enabled": {
8110
+ "type": "boolean",
8111
+ "default": false,
8112
+ "description": "When false, the workflow skips the feedback email for this outcome. The admin handles the candidate manually."
8113
+ },
8114
+ "tone": {
8115
+ "type": "string",
8116
+ "enum": [
8117
+ "casual",
8118
+ "formal",
8119
+ "superFormal"
8120
+ ]
8121
+ },
8122
+ "transparency": {
8123
+ "type": "string",
8124
+ "enum": [
8125
+ "generic",
8126
+ "category",
8127
+ "specific"
8128
+ ]
8129
+ },
8130
+ "delay": {
8131
+ "type": "integer",
8132
+ "default": 72
8133
+ },
8134
+ "respectBusinessDays": {
8135
+ "type": "boolean",
8136
+ "default": false
8137
+ },
8138
+ "aiDisclosure": {
8139
+ "type": "boolean",
8140
+ "default": true
8141
+ },
8142
+ "signature": {
8143
+ "type": "object",
8144
+ "properties": {
8145
+ "name": {
8146
+ "type": "string"
8147
+ },
8148
+ "title": {
8149
+ "type": "string"
8150
+ },
8151
+ "company": {
8152
+ "type": "string"
8153
+ }
8154
+ }
8155
+ },
8156
+ "instructions": {
8157
+ "type": "string"
8158
+ },
8159
+ "categories": {
8160
+ "type": "array",
8161
+ "items": {
8162
+ "type": "string"
8163
+ }
8164
+ },
8165
+ "reasons": {
8166
+ "type": "array",
8167
+ "items": {
8168
+ "type": "string"
8169
+ }
8170
+ },
8171
+ "links": {
8172
+ "type": "array",
8173
+ "items": {
8174
+ "type": "object",
8175
+ "properties": {
8176
+ "label": {
8177
+ "type": "string"
8178
+ },
8179
+ "url": {
8180
+ "type": "string"
8181
+ }
8182
+ }
8183
+ }
8184
+ },
8185
+ "feedbackFormUrl": {
8186
+ "type": "string"
8187
+ }
7718
8188
  }
7719
8189
  }
7720
8190
  }
7721
8191
  },
7722
- "feedbackFormUrl": {
7723
- "type": "string"
7724
- },
7725
- "status": {
7726
- "type": "string",
7727
- "enum": [
7728
- "active",
7729
- "draft",
7730
- "archived",
7731
- "failed"
7732
- ]
7733
- },
7734
- "source": {
7735
- "type": "string"
7736
- },
7737
8192
  "timestamps": {
7738
8193
  "title": "ResourceTimestampsSchema",
7739
8194
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartytalent/mcp-tools",
3
- "version": "0.1.29",
3
+ "version": "0.1.31",
4
4
  "description": "MCP tool definitions for SmartyTalent API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,5 +20,5 @@
20
20
  "tools",
21
21
  "api"
22
22
  ],
23
- "license": "UNLICENSED"
23
+ "license": "Apache-2.0"
24
24
  }