boondmanager-mcp-server 1.5.1 → 1.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/LICENSE +200 -21
- package/NOTICE +11 -0
- package/README.md +75 -5
- package/dist/prompts/index.d.ts +10 -0
- package/dist/prompts/index.d.ts.map +1 -0
- package/dist/prompts/index.js +207 -0
- package/dist/prompts/index.js.map +1 -0
- package/dist/resources/index.d.ts +9 -0
- package/dist/resources/index.d.ts.map +1 -0
- package/dist/resources/index.js +90 -0
- package/dist/resources/index.js.map +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +4 -0
- package/dist/server.js.map +1 -1
- package/dist/services/boond-client.d.ts +15 -0
- package/dist/services/boond-client.d.ts.map +1 -1
- package/dist/services/boond-client.js +77 -4
- package/dist/services/boond-client.js.map +1 -1
- package/manifest.json +3 -3
- package/package.json +7 -4
package/LICENSE
CHANGED
|
@@ -1,21 +1,200 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for describing the origin of the Work and
|
|
141
|
+
reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may accept support,
|
|
167
|
+
warranty, indemnity, or other liability obligations and/or rights
|
|
168
|
+
consistent with this License. However, in accepting such obligations,
|
|
169
|
+
You may act only on Your own behalf and on Your sole responsibility,
|
|
170
|
+
not on behalf of any other Contributor, and only if You agree to
|
|
171
|
+
indemnify, defend, and hold each Contributor harmless for any
|
|
172
|
+
liability incurred by, or claims asserted against, such Contributor
|
|
173
|
+
by reason of your accepting any such warranty or additional liability.
|
|
174
|
+
|
|
175
|
+
END OF TERMS AND CONDITIONS
|
|
176
|
+
|
|
177
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
178
|
+
|
|
179
|
+
To apply the Apache License to your work, attach the following
|
|
180
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
181
|
+
replaced with your own identifying information. (Don't include
|
|
182
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
183
|
+
comment syntax for the file format. We also recommend that a
|
|
184
|
+
file or class name and description of purpose be included on the
|
|
185
|
+
same "printed page" as the copyright notice for easier
|
|
186
|
+
identification within third-party archives.
|
|
187
|
+
|
|
188
|
+
Copyright 2025 Frédéric Auguste
|
|
189
|
+
|
|
190
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
191
|
+
you may not use this file except in compliance with the License.
|
|
192
|
+
You may obtain a copy of the License at
|
|
193
|
+
|
|
194
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
195
|
+
|
|
196
|
+
Unless required by applicable law or agreed to in writing, software
|
|
197
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
198
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
199
|
+
See the License for the specific language governing permissions and
|
|
200
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
BoondManager MCP Server
|
|
2
|
+
Copyright 2025 Frédéric Auguste
|
|
3
|
+
|
|
4
|
+
This product includes software developed by Frédéric Auguste
|
|
5
|
+
and contributors to the BoondManager MCP Server project.
|
|
6
|
+
|
|
7
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
you may not use this file except in compliance with the License.
|
|
9
|
+
You may obtain a copy of the License at
|
|
10
|
+
|
|
11
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
package/README.md
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
[](https://nodejs.org/)
|
|
8
8
|
[](https://www.typescriptlang.org/)
|
|
9
9
|
[](https://registry.modelcontextprotocol.io/)
|
|
10
|
-
[](https://opensource.org/licenses/Apache-2.0)
|
|
11
11
|
|
|
12
12
|
Serveur MCP (Model Context Protocol) pour l'API BoondManager, permettant a Claude (Desktop, Cowork, Code) de rechercher, consulter, creer et modifier des enregistrements dans votre instance BoondManager.
|
|
13
13
|
|
|
14
|
-
**158 outils** couvrant **36 domaines** de l'API BoondManager.
|
|
14
|
+
**158 outils** couvrant **36 domaines** de l'API BoondManager. Voir [TOOLS.md](./TOOLS.md) pour le catalogue auto-généré (outils + prompts + ressources).
|
|
15
15
|
|
|
16
16
|
## Domaines couverts
|
|
17
17
|
|
|
@@ -103,6 +103,34 @@ Les entites principales disposent d'outils dedies par onglet pour un acces cible
|
|
|
103
103
|
| Opportunites | information, actions, positionings, projects, simulation |
|
|
104
104
|
| Projets | information, actions, simulation, deliveries-groupments, orders, purchases, productivity |
|
|
105
105
|
|
|
106
|
+
## Ressources MCP (dictionnaires)
|
|
107
|
+
|
|
108
|
+
Le serveur expose les dictionnaires de reference Boond comme **ressources MCP** (clients qui en supportent l'affichage : Claude Desktop, MCP Inspector, etc.). Permet au modele de traduire un `state` ou `typeOf` entier en libelle sans appel d'outil supplementaire.
|
|
109
|
+
|
|
110
|
+
| URI | Contenu |
|
|
111
|
+
|-----|---------|
|
|
112
|
+
| `boond://application/current-user` | Profil de l'utilisateur courant (id, agence, permissions) |
|
|
113
|
+
| `boond://dictionary/states/{entity}` | Etats par entite : `resources`, `candidates`, `contacts`, `companies`, `opportunities`, `projects`, `invoices`, `orders`, `positionings`, `absences` |
|
|
114
|
+
| `boond://dictionary/typeOf/{entity}` | Types par entite : `resources`, `candidates`, `contacts`, `projects`, `actions`, `absences` |
|
|
115
|
+
| `boond://dictionary/countries` | Liste des pays |
|
|
116
|
+
| `boond://dictionary/currencies` | Liste des devises |
|
|
117
|
+
| `boond://dictionary/languages` | Liste des langues |
|
|
118
|
+
|
|
119
|
+
Pour les dictionnaires hors de cette liste curee, l'outil `boond_application_dictionary` reste disponible.
|
|
120
|
+
|
|
121
|
+
## Prompts pre-orchestres
|
|
122
|
+
|
|
123
|
+
En plus des outils, le serveur expose des **prompts MCP** (templates pre-cables) qui orchestrent les bons appels d'outils dans le bon ordre pour les workflows recurrents. Visibles dans les clients qui supportent les prompts (slash command ou menu).
|
|
124
|
+
|
|
125
|
+
| Prompt | Usage |
|
|
126
|
+
|--------|-------|
|
|
127
|
+
| `synthese_equipe` | Etat d'une equipe : qui fait quoi, qui est absent, qui est dispo (par defaut : mon equipe). |
|
|
128
|
+
| `pipeline_commercial` | Opportunites avec closing dans une periode : repartition par etat, CA pondere, top 10. |
|
|
129
|
+
| `factures_a_relancer` | Factures impayees dont l'echeance est depassee, regroupees par societe. |
|
|
130
|
+
| `candidats_pour_opportunite` | A partir d'une opportunite, propose les candidats actifs qui matchent (outils, expertise, mobilite, dispo). |
|
|
131
|
+
| `fiche_consultant` | Vue 360 d'une ressource : info + technique + positionnements + absences + CRA recents. |
|
|
132
|
+
| `recap_hebdo` | Recap hebdomadaire : pipeline qui a bouge, equipe absente, projets actifs, actions a mener. |
|
|
133
|
+
|
|
106
134
|
## Prerequis
|
|
107
135
|
|
|
108
136
|
- Node.js >= 20
|
|
@@ -245,6 +273,29 @@ npm install
|
|
|
245
273
|
npm run build
|
|
246
274
|
```
|
|
247
275
|
|
|
276
|
+
### Smithery
|
|
277
|
+
|
|
278
|
+
Le serveur est aussi disponible sur [Smithery](https://smithery.ai/server/@fauguste/boondmanager-mcp-server). La configuration est dans `smithery.yaml` à la racine du repo : Smithery propose une UI avec les champs d'authentification (JWT auto / JWT pré-construit / BasicAuth) et installe le serveur via `npx`.
|
|
279
|
+
|
|
280
|
+
### LobeChat / LobeHub
|
|
281
|
+
|
|
282
|
+
Le serveur est listé sur le [marketplace MCP de LobeHub](https://lobehub.com/mcp/fauguste-boondmanager-mcp-server). Dans LobeChat (auto-hebergé ou cloud), ajouter le MCP via **Reglages > Plugins > MCP > Ajouter** avec :
|
|
283
|
+
|
|
284
|
+
```json
|
|
285
|
+
{
|
|
286
|
+
"name": "boondmanager",
|
|
287
|
+
"command": "npx",
|
|
288
|
+
"args": ["-y", "boondmanager-mcp-server"],
|
|
289
|
+
"env": {
|
|
290
|
+
"BOOND_USER_TOKEN": "<votre_user_token>",
|
|
291
|
+
"BOOND_CLIENT_TOKEN": "<votre_client_token>",
|
|
292
|
+
"BOOND_CLIENT_KEY": "<votre_client_key>"
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
Ou utiliser le transport HTTP (voir section [Transports](#transports)) pour un deploiement partage en mode gateway.
|
|
298
|
+
|
|
248
299
|
## Configuration
|
|
249
300
|
|
|
250
301
|
### Authentification
|
|
@@ -353,7 +404,22 @@ claude mcp add --transport http \
|
|
|
353
404
|
}
|
|
354
405
|
```
|
|
355
406
|
|
|
356
|
-
#### Exemple : Docker
|
|
407
|
+
#### Exemple : Docker (image officielle GHCR)
|
|
408
|
+
|
|
409
|
+
Une image Docker prete a l'emploi est publiee a chaque release sur GitHub Container Registry, multi-arch (`linux/amd64` + `linux/arm64`). Elle demarre par defaut en transport HTTP, sur le port 3000, sur l'interface `0.0.0.0`.
|
|
410
|
+
|
|
411
|
+
```bash
|
|
412
|
+
docker run --rm -p 3000:3000 \
|
|
413
|
+
-e MCP_HTTP_BEARER_TOKEN=$(openssl rand -hex 32) \
|
|
414
|
+
-e BOOND_API_TOKEN=$BOOND_API_TOKEN \
|
|
415
|
+
ghcr.io/fauguste/boondmanager-mcp-server:latest
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
Tags disponibles : `:latest`, `:1`, `:1.5`, `:1.5.1` (la version exacte est recommandee pour la prod). Variables d'environnement supportees : voir [Configuration](#configuration) et [Transports](#transports).
|
|
419
|
+
|
|
420
|
+
#### Exemple : Docker (image ad-hoc via npx)
|
|
421
|
+
|
|
422
|
+
Si vous preferez ne pas utiliser l'image GHCR, le serveur peut tourner dans une image Node generique :
|
|
357
423
|
|
|
358
424
|
```bash
|
|
359
425
|
docker run --rm -p 3000:3000 \
|
|
@@ -361,7 +427,7 @@ docker run --rm -p 3000:3000 \
|
|
|
361
427
|
-e MCP_HTTP_HOST=0.0.0.0 \
|
|
362
428
|
-e MCP_HTTP_BEARER_TOKEN=$(openssl rand -hex 32) \
|
|
363
429
|
-e BOOND_API_TOKEN=$BOOND_API_TOKEN \
|
|
364
|
-
node:
|
|
430
|
+
node:22-alpine \
|
|
365
431
|
npx -y boondmanager-mcp-server
|
|
366
432
|
```
|
|
367
433
|
|
|
@@ -518,7 +584,11 @@ npm run typecheck
|
|
|
518
584
|
- [Collection Postman BoondManager](https://www.postman.com/boondmanager)
|
|
519
585
|
- [Specification MCP](https://modelcontextprotocol.io/)
|
|
520
586
|
- [pyboondmanager (reference Python)](https://github.com/tominardi/pyboondmanager)
|
|
587
|
+
- [Catalogue d'outils auto-genere (TOOLS.md)](./TOOLS.md)
|
|
588
|
+
- [Distribution & marketplaces (docs/distribution.md)](./docs/distribution.md)
|
|
521
589
|
|
|
522
590
|
## Licence
|
|
523
591
|
|
|
524
|
-
|
|
592
|
+
Apache License 2.0 - Copyright (c) 2025 Frédéric Auguste
|
|
593
|
+
|
|
594
|
+
Voir [LICENSE](./LICENSE) et [NOTICE](./NOTICE) pour les détails.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
+
export declare function registerAllPrompts(server: McpServer): void;
|
|
3
|
+
/** Exposed for tests so we can assert names/coverage without instantiating a server. */
|
|
4
|
+
export declare const REGISTERED_PROMPTS: {
|
|
5
|
+
name: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
argKeys: string[];
|
|
9
|
+
}[];
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AA8NzE,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAY1D;AAED,wFAAwF;AACxF,eAAO,MAAM,kBAAkB;;;;;GAK5B,CAAC"}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Pre-orchestrated MCP prompts for the most common Boond workflows.
|
|
4
|
+
*
|
|
5
|
+
* Why: the search tools alone require the LLM to discover the right filter
|
|
6
|
+
* combination on its own — it works, but it costs tokens and a few wrong
|
|
7
|
+
* turns. A prompt names the goal ("synthese_equipe", "pipeline_commercial",
|
|
8
|
+
* …) and embeds the exact tool sequence + filter names the model should
|
|
9
|
+
* use. From the user's perspective it's a single command instead of a
|
|
10
|
+
* multi-turn conversation.
|
|
11
|
+
*
|
|
12
|
+
* Each prompt resolves to a user message. We deliberately do NOT execute
|
|
13
|
+
* the tools server-side here — the LLM still drives, the prompt just gives
|
|
14
|
+
* it the runbook. This keeps the LLM in control of error handling and
|
|
15
|
+
* follow-up questions.
|
|
16
|
+
*/
|
|
17
|
+
const userMessage = (text) => ({
|
|
18
|
+
messages: [
|
|
19
|
+
{ role: "user", content: { type: "text", text } },
|
|
20
|
+
],
|
|
21
|
+
});
|
|
22
|
+
const PROMPTS = [
|
|
23
|
+
{
|
|
24
|
+
name: "synthese_equipe",
|
|
25
|
+
title: "Synthèse d'une équipe",
|
|
26
|
+
description: "Produit un état d'équipe : qui est sur quoi, qui est absent, qui est disponible. "
|
|
27
|
+
+ "Si manager_id est omis, utilise l'utilisateur courant comme manager.",
|
|
28
|
+
argsSchema: {
|
|
29
|
+
manager_id: z.string().optional().describe("ID du manager (ressource Boond). Si absent, l'outil `boond_application_current_user` doit être appelé pour le récupérer."),
|
|
30
|
+
periode: z.string().optional().describe("Période d'analyse libre (ex: 'cette semaine', 'avril 2026'). Défaut: mois en cours."),
|
|
31
|
+
},
|
|
32
|
+
build: ({ manager_id, periode }) => {
|
|
33
|
+
const periodeText = periode || "le mois en cours";
|
|
34
|
+
const managerStep = manager_id
|
|
35
|
+
? `Le manager ciblé est l'ID ${manager_id}.`
|
|
36
|
+
: "Commence par appeler `boond_application_current_user` pour obtenir mon ID utilisateur, puis utilise-le comme `manager_id`.";
|
|
37
|
+
return [
|
|
38
|
+
`Produis une synthèse de l'équipe pour ${periodeText}.`,
|
|
39
|
+
"",
|
|
40
|
+
managerStep,
|
|
41
|
+
"",
|
|
42
|
+
"Étapes :",
|
|
43
|
+
"1. Lister les membres de l'équipe : `boond_resources_search` avec `perimeterManagers: [<manager_id>]` et `resourceStates` pour ne garder que les actifs (récupère les états valides via `boond_application_dictionary` avec `setting.state.resource` si besoin).",
|
|
44
|
+
"2. Pour chaque ressource retournée, récupérer en parallèle :",
|
|
45
|
+
" - `boond_resources_positionings` (qui est sur quel projet)",
|
|
46
|
+
" - `boond_resources_absences_reports` (absences validées/à venir)",
|
|
47
|
+
" - `boond_resources_times_reports` (CRA récent, pour confirmer l'occupation)",
|
|
48
|
+
"3. Synthétiser un tableau par personne : nom, projet courant, % occupation, absences sur la période, disponibilité.",
|
|
49
|
+
"4. Conclure par les signaux faibles (sur-/sous-charge, absences non couvertes, ressources sans positionnement).",
|
|
50
|
+
].join("\n");
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: "pipeline_commercial",
|
|
55
|
+
title: "Pipeline commercial sur une période",
|
|
56
|
+
description: "Analyse les opportunités commerciales avec closing prévu dans la période donnée : "
|
|
57
|
+
+ "répartition par état, CA pondéré, top opportunités.",
|
|
58
|
+
argsSchema: {
|
|
59
|
+
date_debut: z.string().describe("Début de période (YYYY-MM-DD)."),
|
|
60
|
+
date_fin: z.string().describe("Fin de période (YYYY-MM-DD)."),
|
|
61
|
+
manager_id: z.string().optional().describe("ID du commercial. Si absent, scope = équipe de l'utilisateur courant via `perimeterDynamic: ['data']`."),
|
|
62
|
+
},
|
|
63
|
+
build: ({ date_debut, date_fin, manager_id }) => {
|
|
64
|
+
const scopeFilter = manager_id
|
|
65
|
+
? `\`perimeterManagers: [${manager_id}]\``
|
|
66
|
+
: "`perimeterDynamic: ['data']` (mes opportunités)";
|
|
67
|
+
return [
|
|
68
|
+
`Analyse mon pipeline commercial avec closing entre ${date_debut} et ${date_fin}.`,
|
|
69
|
+
"",
|
|
70
|
+
`Périmètre : ${scopeFilter}.`,
|
|
71
|
+
"",
|
|
72
|
+
"Étapes :",
|
|
73
|
+
"1. Appeler `boond_opportunities_search` avec :",
|
|
74
|
+
` - \`period: "closingDate"\``,
|
|
75
|
+
` - \`startDate: "${date_debut}"\`, \`endDate: "${date_fin}"\``,
|
|
76
|
+
` - ${scopeFilter}`,
|
|
77
|
+
" - `pageSize: 100`",
|
|
78
|
+
"2. Si plus de 100 résultats, paginer via `page`.",
|
|
79
|
+
"3. Récupérer le dictionnaire des états via `boond_application_dictionary` avec `setting.state.opportunity` pour traduire les ID en libellés.",
|
|
80
|
+
"4. Restituer :",
|
|
81
|
+
" - Nombre total d'opportunités, par état",
|
|
82
|
+
" - CA pondéré total (somme de `turnoverWeightedExcludingTax`)",
|
|
83
|
+
" - Top 10 par montant pondéré, avec société/contact/closingDate",
|
|
84
|
+
" - Risques : opportunités dont la closingDate est passée mais qui ne sont pas encore en état Gagnée/Perdue.",
|
|
85
|
+
].join("\n");
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "factures_a_relancer",
|
|
90
|
+
title: "Factures impayées à relancer",
|
|
91
|
+
description: "Liste les factures impayées avec date d'échéance dépassée, regroupées par société. "
|
|
92
|
+
+ "Optionnellement filtrable sur une société spécifique.",
|
|
93
|
+
argsSchema: {
|
|
94
|
+
society_id: z.string().optional().describe("ID d'une société pour cibler la relance."),
|
|
95
|
+
},
|
|
96
|
+
build: ({ society_id }) => {
|
|
97
|
+
return [
|
|
98
|
+
"Identifie les factures à relancer (impayées dont l'échéance est dépassée).",
|
|
99
|
+
"",
|
|
100
|
+
"Étapes :",
|
|
101
|
+
"1. Appeler `boond_invoices_search` :",
|
|
102
|
+
society_id ? ` - \`companyId: "${society_id}"\`` : " - sans filtre société (toutes les factures du périmètre courant)",
|
|
103
|
+
" - `pageSize: 100`",
|
|
104
|
+
"2. Récupérer le dictionnaire `setting.state.invoice` via `boond_application_dictionary` pour identifier les états « payée » / « partiellement payée » / etc.",
|
|
105
|
+
"3. Filtrer côté agent : ne conserver que les factures dont l'état n'est PAS « payée » ET dont la `dueDate` est strictement antérieure à aujourd'hui.",
|
|
106
|
+
"4. Pour chaque facture retenue, récupérer le détail via `boond_invoices_get` si nécessaire pour obtenir le contact/email de relance.",
|
|
107
|
+
"5. Restituer un tableau groupé par société : société | nombre de factures impayées | total HT impayé | facture la plus ancienne (référence + jours de retard) | contact à relancer.",
|
|
108
|
+
"6. Ajouter une ligne « Total » en bas.",
|
|
109
|
+
].join("\n");
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: "candidats_pour_opportunite",
|
|
114
|
+
title: "Candidats correspondant à une opportunité",
|
|
115
|
+
description: "À partir d'une opportunité (ses outils, expertise, mobilité), trouve les candidats actifs qui matchent.",
|
|
116
|
+
argsSchema: {
|
|
117
|
+
opportunity_id: z.string().describe("ID de l'opportunité à pourvoir."),
|
|
118
|
+
},
|
|
119
|
+
build: ({ opportunity_id }) => {
|
|
120
|
+
return [
|
|
121
|
+
`Identifie les candidats qui matchent l'opportunité ${opportunity_id}.`,
|
|
122
|
+
"",
|
|
123
|
+
"Étapes :",
|
|
124
|
+
`1. Récupérer le détail de l'opportunité : \`boond_opportunities_get(id="${opportunity_id}")\` puis l'onglet \`information\` pour les attributs détaillés.`,
|
|
125
|
+
"2. Extraire les critères : `tools`, `expertiseAreas`, `activityAreas`, `places` (mobilité), `durations`, `startDate`/`endDate`.",
|
|
126
|
+
"3. Appeler `boond_candidates_search` avec :",
|
|
127
|
+
" - les `tools` extraits (logique OU par défaut ; si l'opportunité est très exigeante, repasser avec `[\"#AND#\", ...]` pour exiger toutes les compétences)",
|
|
128
|
+
" - `expertiseAreas` correspondants",
|
|
129
|
+
" - `mobilityAreas` matchant le lieu",
|
|
130
|
+
" - `candidateStates` actifs uniquement (consulter `setting.state.candidate` via `boond_application_dictionary`)",
|
|
131
|
+
" - `period: \"available\"` + `startDate`/`endDate` calés sur la mission, pour ne garder que les candidats disponibles",
|
|
132
|
+
" - `pageSize: 50`",
|
|
133
|
+
"4. Pour les top 20 candidats retournés, récupérer `boond_candidates_technical_data` pour vérifier l'adéquation fine.",
|
|
134
|
+
"5. Restituer un classement : nom | titre | dispo | note d'adéquation (sur 10) avec justification 1 ligne.",
|
|
135
|
+
].join("\n");
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: "fiche_consultant",
|
|
140
|
+
title: "Fiche complète d'un collaborateur",
|
|
141
|
+
description: "Vue 360° d'une ressource : info, profil technique, positionnements, absences, CRA récents.",
|
|
142
|
+
argsSchema: {
|
|
143
|
+
resource_id: z.string().describe("ID de la ressource."),
|
|
144
|
+
},
|
|
145
|
+
build: ({ resource_id }) => {
|
|
146
|
+
return [
|
|
147
|
+
`Produis la fiche complète de la ressource ${resource_id}.`,
|
|
148
|
+
"",
|
|
149
|
+
"Étapes (à exécuter en parallèle quand possible) :",
|
|
150
|
+
`1. \`boond_resources_information(id="${resource_id}")\` — coordonnées et état civil`,
|
|
151
|
+
`2. \`boond_resources_technical_data(id="${resource_id}")\` — compétences, formations, langues, CV`,
|
|
152
|
+
`3. \`boond_resources_administrative(id="${resource_id}")\` — données RH (TJM, salaire, contrat) si autorisé`,
|
|
153
|
+
`4. \`boond_resources_positionings(id="${resource_id}")\` — positionnements actifs et historiques`,
|
|
154
|
+
`5. \`boond_resources_projects(id="${resource_id}")\` — projets passés/en cours`,
|
|
155
|
+
`6. \`boond_resources_absences_reports(id="${resource_id}")\` — absences à venir et passées récentes`,
|
|
156
|
+
`7. \`boond_resources_times_reports(id="${resource_id}")\` — CRA des 3 derniers mois`,
|
|
157
|
+
"",
|
|
158
|
+
"Restitution : un document structuré en sections (Identité / Profil technique / Mission actuelle / Historique projets / Disponibilité / RH si pertinent). Mettre en évidence : projet courant, prochaine date de fin de mission, prochaine absence, taux d'occupation moyen sur 3 mois.",
|
|
159
|
+
].join("\n");
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
name: "recap_hebdo",
|
|
164
|
+
title: "Récap hebdomadaire (moi + mon équipe)",
|
|
165
|
+
description: "Compile en une vue ce qui s'est passé / va se passer cette semaine pour moi et mon équipe : opportunités, projets, absences, CRA.",
|
|
166
|
+
argsSchema: {
|
|
167
|
+
semaine: z.string().optional().describe("Semaine ciblée (ex: 'cette semaine', 'la semaine prochaine'). Défaut: cette semaine."),
|
|
168
|
+
},
|
|
169
|
+
build: ({ semaine }) => {
|
|
170
|
+
const semaineText = semaine || "cette semaine";
|
|
171
|
+
return [
|
|
172
|
+
`Produis mon récap pour ${semaineText}.`,
|
|
173
|
+
"",
|
|
174
|
+
"Étapes :",
|
|
175
|
+
"1. `boond_application_current_user` pour récupérer mon ID.",
|
|
176
|
+
"2. En parallèle :",
|
|
177
|
+
" a. `boond_opportunities_search` avec `perimeterDynamic: ['data']`, `period: 'updated'` + dates de la semaine — opportunités touchées cette semaine.",
|
|
178
|
+
" b. `boond_resources_search` avec `perimeterDynamic: ['managers']` — mon équipe (mes N-1).",
|
|
179
|
+
" c. Pour chaque membre d'équipe : `boond_resources_absences_reports` filtré sur la semaine.",
|
|
180
|
+
" d. `boond_projects_search` avec `perimeterDynamic: ['data']` et `period: 'running'` + dates de la semaine — mes projets actifs.",
|
|
181
|
+
"3. Récupérer `setting.state.opportunity` et `setting.state.project` via `boond_application_dictionary` pour libeller les états.",
|
|
182
|
+
"4. Restituer en 4 sections :",
|
|
183
|
+
" - **Pipeline** : opps qui ont bougé (nouvelles, état changé, closing imminent)",
|
|
184
|
+
" - **Équipe** : qui est absent cette semaine, qui termine sa mission",
|
|
185
|
+
" - **Projets** : projets actifs, dont ceux qui s'arrêtent ou démarrent dans la semaine",
|
|
186
|
+
" - **Actions à mener** : 3-5 puces concrètes (relances, validations, repositionnements)",
|
|
187
|
+
].join("\n");
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
];
|
|
191
|
+
export function registerAllPrompts(server) {
|
|
192
|
+
for (const p of PROMPTS) {
|
|
193
|
+
server.registerPrompt(p.name, {
|
|
194
|
+
title: p.title,
|
|
195
|
+
description: p.description,
|
|
196
|
+
argsSchema: p.argsSchema,
|
|
197
|
+
}, async (args) => userMessage(p.build((args ?? {}))));
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
/** Exposed for tests so we can assert names/coverage without instantiating a server. */
|
|
201
|
+
export const REGISTERED_PROMPTS = PROMPTS.map((p) => ({
|
|
202
|
+
name: p.name,
|
|
203
|
+
title: p.title,
|
|
204
|
+
description: p.description,
|
|
205
|
+
argKeys: Object.keys(p.argsSchema),
|
|
206
|
+
}));
|
|
207
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;GAcG;AAEH,MAAM,WAAW,G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C1B,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC;CACnC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
+
/** Exposed for tests; lets us assert the catalog without booting a server. */
|
|
3
|
+
export declare const REGISTERED_RESOURCES: {
|
|
4
|
+
name: string;
|
|
5
|
+
uri: string;
|
|
6
|
+
title: string;
|
|
7
|
+
}[];
|
|
8
|
+
export declare function registerAllResources(server: McpServer): void;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAsEzE,8EAA8E;AAC9E,eAAO,MAAM,oBAAoB;;;;GAOhC,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAsD5D"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { apiRequest } from "../services/boond-client.js";
|
|
2
|
+
/**
|
|
3
|
+
* Well-known Boond dictionaries surfaced as static MCP resources. We keep
|
|
4
|
+
* this list deliberately curated — better to expose the dozen the search
|
|
5
|
+
* tools actually depend on than the hundreds of obscure config dicts.
|
|
6
|
+
*/
|
|
7
|
+
const DICTIONARIES = [
|
|
8
|
+
// states/* — used to translate the integer `state` attribute on entities
|
|
9
|
+
{ slug: "states/resources", title: "États ressources", description: "Libellés des états de ressource (collaborateur)." },
|
|
10
|
+
{ slug: "states/candidates", title: "États candidats", description: "Libellés des états de candidat." },
|
|
11
|
+
{ slug: "states/contacts", title: "États contacts", description: "Libellés des états de contact." },
|
|
12
|
+
{ slug: "states/companies", title: "États sociétés", description: "Libellés des états de société." },
|
|
13
|
+
{ slug: "states/opportunities", title: "États opportunités", description: "Libellés des états d'opportunité commerciale." },
|
|
14
|
+
{ slug: "states/projects", title: "États projets", description: "Libellés des états de projet/mission." },
|
|
15
|
+
{ slug: "states/invoices", title: "États factures", description: "Libellés des états de facture client." },
|
|
16
|
+
{ slug: "states/orders", title: "États bons de commande", description: "Libellés des états de bon de commande." },
|
|
17
|
+
{ slug: "states/positionings", title: "États positionnements", description: "Libellés des états de positionnement." },
|
|
18
|
+
{ slug: "states/absences", title: "États absences", description: "Libellés des états des demandes d'absence." },
|
|
19
|
+
// typeOf/* — used to translate the integer `typeOf` attribute on entities
|
|
20
|
+
{ slug: "typeOf/resources", title: "Types ressources", description: "Types de ressource (interne, sous-traitant, freelance...)." },
|
|
21
|
+
{ slug: "typeOf/candidates", title: "Types candidats", description: "Types de candidat." },
|
|
22
|
+
{ slug: "typeOf/contacts", title: "Types contacts", description: "Types de contact." },
|
|
23
|
+
{ slug: "typeOf/projects", title: "Types projets", description: "Types de projet (régie, forfait, produit...)." },
|
|
24
|
+
{ slug: "typeOf/actions", title: "Types actions", description: "Types d'action (appel, email, RDV, note...)." },
|
|
25
|
+
{ slug: "typeOf/absences", title: "Types absences", description: "Types d'absence (CP, RTT, maladie, sans solde...)." },
|
|
26
|
+
// Global lookups
|
|
27
|
+
{ slug: "countries", title: "Pays", description: "Liste des pays (codes ISO + libellés)." },
|
|
28
|
+
{ slug: "currencies", title: "Devises", description: "Liste des devises supportées." },
|
|
29
|
+
{ slug: "languages", title: "Langues", description: "Liste des langues parlées." },
|
|
30
|
+
];
|
|
31
|
+
/** URI prefix under which all dictionaries are exposed. */
|
|
32
|
+
const DICTIONARY_URI_PREFIX = "boond://dictionary/";
|
|
33
|
+
/** URI of the cached identity resource. */
|
|
34
|
+
const CURRENT_USER_URI = "boond://application/current-user";
|
|
35
|
+
function buildResourceUri(slug) {
|
|
36
|
+
return `${DICTIONARY_URI_PREFIX}${slug}`;
|
|
37
|
+
}
|
|
38
|
+
/** Exposed for tests; lets us assert the catalog without booting a server. */
|
|
39
|
+
export const REGISTERED_RESOURCES = [
|
|
40
|
+
...DICTIONARIES.map((d) => ({
|
|
41
|
+
name: `dictionary/${d.slug}`,
|
|
42
|
+
uri: buildResourceUri(d.slug),
|
|
43
|
+
title: d.title,
|
|
44
|
+
})),
|
|
45
|
+
{ name: "application/current-user", uri: CURRENT_USER_URI, title: "Utilisateur courant" },
|
|
46
|
+
];
|
|
47
|
+
export function registerAllResources(server) {
|
|
48
|
+
for (const dict of DICTIONARIES) {
|
|
49
|
+
const uri = buildResourceUri(dict.slug);
|
|
50
|
+
server.registerResource(`dictionary/${dict.slug}`, uri, {
|
|
51
|
+
title: dict.title,
|
|
52
|
+
description: dict.description,
|
|
53
|
+
mimeType: "application/json",
|
|
54
|
+
}, async () => {
|
|
55
|
+
// Mirror the path used by the boond_application_dictionary tool so
|
|
56
|
+
// both read paths stay in sync if the upstream API moves.
|
|
57
|
+
const response = await apiRequest(`/application/dictionaries/${dict.slug}`);
|
|
58
|
+
return {
|
|
59
|
+
contents: [
|
|
60
|
+
{
|
|
61
|
+
uri,
|
|
62
|
+
mimeType: "application/json",
|
|
63
|
+
text: JSON.stringify(response, null, 2),
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
// The current-user resource is a convenience for prompts/tools that need
|
|
70
|
+
// the caller's userId without first issuing a tool call. The body is the
|
|
71
|
+
// full /application/current-user payload.
|
|
72
|
+
server.registerResource("application/current-user", CURRENT_USER_URI, {
|
|
73
|
+
title: "Utilisateur courant",
|
|
74
|
+
description: "Profil de l'utilisateur authentifié auprès de l'API BoondManager (id, agence, permissions). "
|
|
75
|
+
+ "Utile pour résoudre 'mon ID' avant un appel filtré par perimeterManagers.",
|
|
76
|
+
mimeType: "application/json",
|
|
77
|
+
}, async () => {
|
|
78
|
+
const response = await apiRequest("/application/current-user");
|
|
79
|
+
return {
|
|
80
|
+
contents: [
|
|
81
|
+
{
|
|
82
|
+
uri: CURRENT_USER_URI,
|
|
83
|
+
mimeType: "application/json",
|
|
84
|
+
text: JSON.stringify(response, null, 2),
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
};
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AA8BzD;;;;GAIG;AACH,MAAM,YAAY,GAAsB;IACtC,yEAAyE;IACzE,EAAE,IAAI,EAAE,kBAAkB,EAAM,KAAK,EAAE,kBAAkB,EAAM,WAAW,EAAE,kDAAkD,EAAE;IAChI,EAAE,IAAI,EAAE,mBAAmB,EAAK,KAAK,EAAE,iBAAiB,EAAO,WAAW,EAAE,iCAAiC,EAAE;IAC/G,EAAE,IAAI,EAAE,iBAAiB,EAAO,KAAK,EAAE,gBAAgB,EAAQ,WAAW,EAAE,gCAAgC,EAAE;IAC9G,EAAE,IAAI,EAAE,kBAAkB,EAAM,KAAK,EAAE,gBAAgB,EAAQ,WAAW,EAAE,gCAAgC,EAAE;IAC9G,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,oBAAoB,EAAI,WAAW,EAAE,+CAA+C,EAAE;IAC7H,EAAE,IAAI,EAAE,iBAAiB,EAAO,KAAK,EAAE,eAAe,EAAS,WAAW,EAAE,uCAAuC,EAAE;IACrH,EAAE,IAAI,EAAE,iBAAiB,EAAO,KAAK,EAAE,gBAAgB,EAAQ,WAAW,EAAE,uCAAuC,EAAE;IACrH,EAAE,IAAI,EAAE,eAAe,EAAS,KAAK,EAAE,wBAAwB,EAAE,WAAW,EAAE,wCAAwC,EAAE;IACxH,EAAE,IAAI,EAAE,qBAAqB,EAAG,KAAK,EAAE,uBAAuB,EAAE,WAAW,EAAE,uCAAuC,EAAE;IACtH,EAAE,IAAI,EAAE,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,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,2BAA2B,CAAC,CAAC;QAC/D,OAAO;YACL,QAAQ,EAAE;gBACR;oBACE,GAAG,EAAE,gBAAgB;oBACrB,QAAQ,EAAE,kBAAkB;oBAC5B,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;iBACxC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
|
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AA0CpE,eAAO,MAAM,WAAW,4BAA4B,CAAC;AACrD,eAAO,MAAM,cAAc,UAAU,CAAC;AAEtC,eAAO,MAAM,kBAAkB,qeAQrB,CAAC;AAEX,wBAAgB,eAAe,IAAI,SAAS,CA+C3C"}
|
package/dist/server.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import { registerCandidateTools, registerResourceTools, registerContactTools, registerCompanyTools, registerOpportunityTools, registerActionTools, registerTimesheetTools, registerProjectTools, registerInvoiceTools, registerOrderTools, registerDeliveryTools, registerAbsenceTools, registerExpenseTools, registerProductTools, registerPositioningTools, registerPaymentTools, registerAdvantageTools, registerApplicationTools, registerContractTools, registerPurchaseTools, registerProviderInvoiceTools, registerAccountTools, registerAgencyTools, registerBusinessUnitTools, registerRoleTools, registerLogTools, registerNotificationTools, registerThreadTools, registerTodolistTools, registerFlagTools, registerCalendarTools, registerWebhookTools, registerValidationTools, registerPoleTools, registerReportingTools, registerPlanningAbsenceTools, } from "./tools/index.js";
|
|
3
|
+
import { registerAllPrompts } from "./prompts/index.js";
|
|
4
|
+
import { registerAllResources } from "./resources/index.js";
|
|
3
5
|
export const SERVER_NAME = "boondmanager-mcp-server";
|
|
4
6
|
export const SERVER_VERSION = "1.0.0";
|
|
5
7
|
export const REGISTERED_DOMAINS = [
|
|
@@ -52,6 +54,8 @@ export function createMcpServer() {
|
|
|
52
54
|
registerPoleTools(server);
|
|
53
55
|
registerReportingTools(server);
|
|
54
56
|
registerPlanningAbsenceTools(server);
|
|
57
|
+
registerAllPrompts(server);
|
|
58
|
+
registerAllResources(server);
|
|
55
59
|
return server;
|
|
56
60
|
}
|
|
57
61
|
//# sourceMappingURL=server.js.map
|
package/dist/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,4BAA4B,EAC5B,oBAAoB,EACpB,mBAAmB,EACnB,yBAAyB,EACzB,iBAAiB,EACjB,gBAAgB,EAChB,yBAAyB,EACzB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],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AC,MAAM,CAAC,CAAC;IACzB,yBAAyB,CAAC,MAAM,CAAC,CAAC;IAClC,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAC5B,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAC9B,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAC1B,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAC9B,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAC7B,uBAAuB,CAAC,MAAM,CAAC,CAAC;IAChC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAC1B,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAC/B,4BAA4B,CAAC,MAAM,CAAC,CAAC;IAErC,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC3B,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAE7B,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -2,6 +2,21 @@ import type { JsonApiResponse, SearchParams } from "../types.js";
|
|
|
2
2
|
export declare function buildJwt(userToken: string, clientToken: string, clientKey: string): string;
|
|
3
3
|
export declare function initClient(): void;
|
|
4
4
|
export type QueryValue = string | number | Array<string | number> | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* Pull the human-readable bits out of a BoondManager error body.
|
|
7
|
+
*
|
|
8
|
+
* Boond returns JSON:API errors of the form:
|
|
9
|
+
* { "errors": [ { "status": "422", "code": "422", "detail": "...", "title": "..." } ] }
|
|
10
|
+
*
|
|
11
|
+
* Surfacing `detail` (and `title` when present) gives the model a focused
|
|
12
|
+
* message like `422 - password mismatch` instead of the full ~500-char body
|
|
13
|
+
* dump that previously made it hard for the LLM to reason about the failure.
|
|
14
|
+
*
|
|
15
|
+
* Exported for unit testing.
|
|
16
|
+
*/
|
|
17
|
+
export declare function parseBoondErrorBody(body: string): string | null;
|
|
18
|
+
/** Build the Error message for a non-2xx HTTP response. Exported for testing. */
|
|
19
|
+
export declare function formatApiError(status: number, statusText: string, method: string, path: string, body: string): string;
|
|
5
20
|
export declare function apiRequest(path: string, method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", body?: unknown, queryParams?: Record<string, QueryValue>): Promise<JsonApiResponse>;
|
|
6
21
|
export declare function buildSearchQuery(params: SearchParams): Record<string, QueryValue>;
|
|
7
22
|
export declare function formatEntitySummary(entity: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boond-client.d.ts","sourceRoot":"","sources":["../../src/services/boond-client.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAe,eAAe,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAS9E,wBAAgB,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAO1F;AASD,wBAAgB,UAAU,IAAI,IAAI,CA+BjC;AASD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,CAAC;AAE9E,wBAAsB,UAAU,CAC9B,IAAI,EAAE,MAAM,EACZ,MAAM,GAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAgB,EAC3D,IAAI,CAAC,EAAE,OAAO,EACd,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GACvC,OAAO,CAAC,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"boond-client.d.ts","sourceRoot":"","sources":["../../src/services/boond-client.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAe,eAAe,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAS9E,wBAAgB,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAO1F;AASD,wBAAgB,UAAU,IAAI,IAAI,CA+BjC;AASD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,CAAC;AAE9E;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAmB/D;AAuBD,iFAAiF;AACjF,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACX,MAAM,CAcR;AAED,wBAAsB,UAAU,CAC9B,IAAI,EAAE,MAAM,EACZ,MAAM,GAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAgB,EAC3D,IAAI,CAAC,EAAE,OAAO,EACd,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GACvC,OAAO,CAAC,eAAe,CAAC,CA8C1B;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAsBjF;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC,GAAG,MAAM,CAgBT;AAED,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,eAAe,EACzB,UAAU,EAAE,MAAM,GACjB,MAAM,CAoBR;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,eAAe,GAAG,MAAM,CAetE"}
|
|
@@ -53,6 +53,81 @@ function getConfig() {
|
|
|
53
53
|
}
|
|
54
54
|
return config;
|
|
55
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Pull the human-readable bits out of a BoondManager error body.
|
|
58
|
+
*
|
|
59
|
+
* Boond returns JSON:API errors of the form:
|
|
60
|
+
* { "errors": [ { "status": "422", "code": "422", "detail": "...", "title": "..." } ] }
|
|
61
|
+
*
|
|
62
|
+
* Surfacing `detail` (and `title` when present) gives the model a focused
|
|
63
|
+
* message like `422 - password mismatch` instead of the full ~500-char body
|
|
64
|
+
* dump that previously made it hard for the LLM to reason about the failure.
|
|
65
|
+
*
|
|
66
|
+
* Exported for unit testing.
|
|
67
|
+
*/
|
|
68
|
+
export function parseBoondErrorBody(body) {
|
|
69
|
+
if (!body)
|
|
70
|
+
return null;
|
|
71
|
+
try {
|
|
72
|
+
const parsed = JSON.parse(body);
|
|
73
|
+
const errors = Array.isArray(parsed.errors) ? parsed.errors : [];
|
|
74
|
+
const messages = errors
|
|
75
|
+
.map((e) => {
|
|
76
|
+
const parts = [];
|
|
77
|
+
if (e.title && e.title !== e.detail)
|
|
78
|
+
parts.push(e.title);
|
|
79
|
+
if (e.detail)
|
|
80
|
+
parts.push(e.detail);
|
|
81
|
+
else if (e.code)
|
|
82
|
+
parts.push(`code ${e.code}`);
|
|
83
|
+
return parts.join(": ").trim();
|
|
84
|
+
})
|
|
85
|
+
.filter((m) => m.length > 0);
|
|
86
|
+
if (messages.length === 0)
|
|
87
|
+
return null;
|
|
88
|
+
return messages.join(" | ");
|
|
89
|
+
}
|
|
90
|
+
catch {
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
/** Status-specific hint to help the LLM (or human) recover from common failures. */
|
|
95
|
+
function hintForStatus(status) {
|
|
96
|
+
switch (status) {
|
|
97
|
+
case 400:
|
|
98
|
+
return "Check the request body or query parameters — likely a malformed field.";
|
|
99
|
+
case 401:
|
|
100
|
+
return "Authentication failed. Verify BOOND_USER_TOKEN + BOOND_CLIENT_TOKEN + BOOND_CLIENT_KEY (or BOOND_API_TOKEN, or BOOND_USER + BOOND_PASSWORD).";
|
|
101
|
+
case 403:
|
|
102
|
+
return "Authenticated, but the user lacks permission for this endpoint or scope.";
|
|
103
|
+
case 404:
|
|
104
|
+
return "Endpoint or entity not found. Double-check the id and the API path.";
|
|
105
|
+
case 422:
|
|
106
|
+
return "Unprocessable: typically wrong credentials (the API returns 422 for password mismatch) or a query parameter the API rejects.";
|
|
107
|
+
case 429:
|
|
108
|
+
return "Rate-limited. Back off and retry after a few seconds.";
|
|
109
|
+
default:
|
|
110
|
+
if (status >= 500)
|
|
111
|
+
return "BoondManager-side error. Retrying after a short delay usually helps.";
|
|
112
|
+
return "Check your credentials and permissions for this endpoint.";
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
/** Build the Error message for a non-2xx HTTP response. Exported for testing. */
|
|
116
|
+
export function formatApiError(status, statusText, method, path, body) {
|
|
117
|
+
const detail = parseBoondErrorBody(body);
|
|
118
|
+
const headline = detail
|
|
119
|
+
? `BoondManager API ${status} ${statusText}: ${detail}`
|
|
120
|
+
: `BoondManager API ${status} ${statusText}`;
|
|
121
|
+
const lines = [headline, `Endpoint: ${method} ${path}`];
|
|
122
|
+
// Only attach the raw body when we couldn't extract a structured detail —
|
|
123
|
+
// otherwise it's noise that buries the useful message.
|
|
124
|
+
if (!detail && body) {
|
|
125
|
+
const trimmed = body.length > 500 ? body.slice(0, 500) + "…" : body;
|
|
126
|
+
lines.push(`Body: ${trimmed}`);
|
|
127
|
+
}
|
|
128
|
+
lines.push(`Hint: ${hintForStatus(status)}`);
|
|
129
|
+
return lines.join("\n");
|
|
130
|
+
}
|
|
56
131
|
export async function apiRequest(path, method = "GET", body, queryParams) {
|
|
57
132
|
const { baseUrl, authHeader } = getConfig();
|
|
58
133
|
const url = new URL(`${baseUrl}${path}`);
|
|
@@ -85,10 +160,8 @@ export async function apiRequest(path, method = "GET", body, queryParams) {
|
|
|
85
160
|
}
|
|
86
161
|
const response = await fetch(url.toString(), fetchOptions);
|
|
87
162
|
if (!response.ok) {
|
|
88
|
-
const errorText = await response.text().catch(() => "
|
|
89
|
-
throw new Error(
|
|
90
|
-
`Endpoint: ${method} ${path}\n` +
|
|
91
|
-
`Suggestion: Check your credentials and permissions for this endpoint.`);
|
|
163
|
+
const errorText = await response.text().catch(() => "");
|
|
164
|
+
throw new Error(formatApiError(response.status, response.statusText, method, path, errorText));
|
|
92
165
|
}
|
|
93
166
|
// DELETE may return empty body
|
|
94
167
|
if (response.status === 204 || response.headers.get("content-length") === "0") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boond-client.js","sourceRoot":"","sources":["../../src/services/boond-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGpE,IAAI,MAAM,GAAuB,IAAI,CAAC;AAEtC,SAAS,SAAS,CAAC,IAAqB;IACtC,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACjD,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,SAAiB,EAAE,WAAmB,EAAE,SAAiB;IAChF,MAAM,MAAM,GAAG,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IACvE,MAAM,OAAO,GAAG,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC;IACtE,MAAM,SAAS,GAAG,SAAS,CACzB,UAAU,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,GAAG,MAAM,IAAI,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CACxE,CAAC;IACF,OAAO,GAAG,MAAM,IAAI,OAAO,IAAI,SAAS,EAAE,CAAC;AAC7C,CAAC;AA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AI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;IAC/E,IAAI,CAAC,MAAM;QAAE,OAAO,qBAAqB,CAAC;IAE1C,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAC3B,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,aAAa,EAAE,MAAM,CAAC,aAAa,EAAE,EACxG,IAAI,EACJ,CAAC,CACF,CAAC;IAEF,IAAI,MAAM,CAAC,MAAM,GAAG,eAAe,EAAE,CAAC;QACpC,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,eAAe,CAAC,GAAG,2BAA2B,CAAC;IAC5E,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/manifest.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"manifest_version": "0.3",
|
|
3
3
|
"name": "boondmanager-mcp-server",
|
|
4
4
|
"display_name": "BoondManager MCP Server",
|
|
5
|
-
"version": "1.5.
|
|
5
|
+
"version": "1.5.3",
|
|
6
6
|
"description": "MCP Server for BoondManager API - 158 tools across 36 domains for ERP/CRM data",
|
|
7
7
|
"author": {
|
|
8
|
-
"name": "
|
|
8
|
+
"name": "Frédéric Auguste",
|
|
9
9
|
"url": "https://github.com/fauguste/boondmanager-mcp-server"
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"homepage": "https://github.com/fauguste/boondmanager-mcp-server#readme",
|
|
16
16
|
"support": "https://github.com/fauguste/boondmanager-mcp-server/issues",
|
|
17
|
-
"license": "
|
|
17
|
+
"license": "Apache-2.0",
|
|
18
18
|
"icons": [
|
|
19
19
|
{ "src": "icon.png", "size": "128x128" }
|
|
20
20
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "boondmanager-mcp-server",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "MCP Server for BoondManager API - Resources, Candidates & CRM",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"dist",
|
|
16
16
|
"manifest.json",
|
|
17
17
|
"README.md",
|
|
18
|
-
"LICENSE"
|
|
18
|
+
"LICENSE",
|
|
19
|
+
"NOTICE"
|
|
19
20
|
],
|
|
20
21
|
"repository": {
|
|
21
22
|
"type": "git",
|
|
@@ -35,6 +36,8 @@
|
|
|
35
36
|
"test:watch": "vitest",
|
|
36
37
|
"test:coverage": "vitest run --coverage",
|
|
37
38
|
"typecheck": "tsc --noEmit",
|
|
39
|
+
"docs:tools": "npm run build && node scripts/generate-tools-catalog.mjs",
|
|
40
|
+
"docs:tools:check": "npm run build && node scripts/generate-tools-catalog.mjs --check",
|
|
38
41
|
"prepublishOnly": "npm run build"
|
|
39
42
|
},
|
|
40
43
|
"keywords": [
|
|
@@ -46,8 +49,8 @@
|
|
|
46
49
|
"resources"
|
|
47
50
|
],
|
|
48
51
|
"mcpName": "io.github.fauguste/boondmanager-mcp-server",
|
|
49
|
-
"author": "
|
|
50
|
-
"license": "
|
|
52
|
+
"author": "Frédéric Auguste",
|
|
53
|
+
"license": "Apache-2.0",
|
|
51
54
|
"dependencies": {
|
|
52
55
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
53
56
|
"zod": "^4.3.6"
|