@tryfinch/finch-api-mcp 6.22.1

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 (463) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +247 -0
  3. package/index.d.mts +2 -0
  4. package/index.d.mts.map +1 -0
  5. package/index.d.ts +2 -0
  6. package/index.d.ts.map +1 -0
  7. package/index.js +162 -0
  8. package/index.js.map +1 -0
  9. package/index.mjs +156 -0
  10. package/index.mjs.map +1 -0
  11. package/package.json +50 -0
  12. package/server.d.mts +30 -0
  13. package/server.d.mts.map +1 -0
  14. package/server.d.ts +30 -0
  15. package/server.d.ts.map +1 -0
  16. package/server.js +77 -0
  17. package/server.js.map +1 -0
  18. package/server.mjs +67 -0
  19. package/server.mjs.map +1 -0
  20. package/src/index.ts +190 -0
  21. package/src/server.ts +89 -0
  22. package/src/tools/access-tokens/create-access-tokens.ts +40 -0
  23. package/src/tools/account/disconnect-account.ts +27 -0
  24. package/src/tools/account/introspect-account.ts +27 -0
  25. package/src/tools/connect/sessions/new-connect-sessions.ts +81 -0
  26. package/src/tools/connect/sessions/reauthenticate-connect-sessions.ts +58 -0
  27. package/src/tools/hris/benefits/create-hris-benefits.ts +67 -0
  28. package/src/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.ts +101 -0
  29. package/src/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.ts +31 -0
  30. package/src/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.ts +36 -0
  31. package/src/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.ts +38 -0
  32. package/src/tools/hris/benefits/list-hris-benefits.ts +27 -0
  33. package/src/tools/hris/benefits/list-supported-benefits-hris-benefits.ts +27 -0
  34. package/src/tools/hris/benefits/retrieve-hris-benefits.ts +31 -0
  35. package/src/tools/hris/benefits/update-hris-benefits.ts +35 -0
  36. package/src/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.ts +58 -0
  37. package/src/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.ts +78 -0
  38. package/src/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.ts +32 -0
  39. package/src/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.ts +28 -0
  40. package/src/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.ts +35 -0
  41. package/src/tools/hris/company/retrieve-hris-company.ts +27 -0
  42. package/src/tools/hris/directory/list-hris-directory.ts +36 -0
  43. package/src/tools/hris/directory/list-individuals-hris-directory.ts +36 -0
  44. package/src/tools/hris/documents/list-hris-documents.ts +53 -0
  45. package/src/tools/hris/documents/retreive-hris-documents.ts +32 -0
  46. package/src/tools/hris/employments/retrieve-many-hris-employments.ts +43 -0
  47. package/src/tools/hris/individuals/retrieve-many-hris-individuals.ts +52 -0
  48. package/src/tools/hris/pay-statements/retrieve-many-hris-pay-statements.ts +51 -0
  49. package/src/tools/hris/payments/list-hris-payments.ts +38 -0
  50. package/src/tools/index.ts +165 -0
  51. package/src/tools/jobs/automated/create-jobs-automated.ts +59 -0
  52. package/src/tools/jobs/automated/list-jobs-automated.ts +37 -0
  53. package/src/tools/jobs/automated/retrieve-jobs-automated.ts +31 -0
  54. package/src/tools/jobs/manual/retrieve-jobs-manual.ts +32 -0
  55. package/src/tools/payroll/pay-groups/list-payroll-pay-groups.ts +37 -0
  56. package/src/tools/payroll/pay-groups/retrieve-payroll-pay-groups.ts +31 -0
  57. package/src/tools/providers/list-providers.ts +27 -0
  58. package/src/tools/request-forwarding/forward-request-forwarding.ts +54 -0
  59. package/src/tools/sandbox/company/update-sandbox-company.ts +158 -0
  60. package/src/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.ts +48 -0
  61. package/src/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.ts +34 -0
  62. package/src/tools/sandbox/connections/create-sandbox-connections.ts +48 -0
  63. package/src/tools/sandbox/directory/create-sandbox-directory.ts +294 -0
  64. package/src/tools/sandbox/employment/update-sandbox-employment.ts +214 -0
  65. package/src/tools/sandbox/individual/update-sandbox-individual.ts +149 -0
  66. package/src/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.ts +27 -0
  67. package/src/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.ts +36 -0
  68. package/src/tools/sandbox/jobs/create-sandbox-jobs.ts +33 -0
  69. package/src/tools/sandbox/payment/create-sandbox-payment.ts +300 -0
  70. package/src/tools.ts +1 -0
  71. package/src/tsconfig.json +11 -0
  72. package/tools/access-tokens/create-access-tokens.d.mts +24 -0
  73. package/tools/access-tokens/create-access-tokens.d.mts.map +1 -0
  74. package/tools/access-tokens/create-access-tokens.d.ts +24 -0
  75. package/tools/access-tokens/create-access-tokens.d.ts.map +1 -0
  76. package/tools/access-tokens/create-access-tokens.js +37 -0
  77. package/tools/access-tokens/create-access-tokens.js.map +1 -0
  78. package/tools/access-tokens/create-access-tokens.mjs +33 -0
  79. package/tools/access-tokens/create-access-tokens.mjs.map +1 -0
  80. package/tools/account/disconnect-account.d.mts +24 -0
  81. package/tools/account/disconnect-account.d.mts.map +1 -0
  82. package/tools/account/disconnect-account.d.ts +24 -0
  83. package/tools/account/disconnect-account.d.ts.map +1 -0
  84. package/tools/account/disconnect-account.js +24 -0
  85. package/tools/account/disconnect-account.js.map +1 -0
  86. package/tools/account/disconnect-account.mjs +20 -0
  87. package/tools/account/disconnect-account.mjs.map +1 -0
  88. package/tools/account/introspect-account.d.mts +24 -0
  89. package/tools/account/introspect-account.d.mts.map +1 -0
  90. package/tools/account/introspect-account.d.ts +24 -0
  91. package/tools/account/introspect-account.d.ts.map +1 -0
  92. package/tools/account/introspect-account.js +24 -0
  93. package/tools/account/introspect-account.js.map +1 -0
  94. package/tools/account/introspect-account.mjs +20 -0
  95. package/tools/account/introspect-account.mjs.map +1 -0
  96. package/tools/connect/sessions/new-connect-sessions.d.mts +24 -0
  97. package/tools/connect/sessions/new-connect-sessions.d.mts.map +1 -0
  98. package/tools/connect/sessions/new-connect-sessions.d.ts +24 -0
  99. package/tools/connect/sessions/new-connect-sessions.d.ts.map +1 -0
  100. package/tools/connect/sessions/new-connect-sessions.js +78 -0
  101. package/tools/connect/sessions/new-connect-sessions.js.map +1 -0
  102. package/tools/connect/sessions/new-connect-sessions.mjs +74 -0
  103. package/tools/connect/sessions/new-connect-sessions.mjs.map +1 -0
  104. package/tools/connect/sessions/reauthenticate-connect-sessions.d.mts +24 -0
  105. package/tools/connect/sessions/reauthenticate-connect-sessions.d.mts.map +1 -0
  106. package/tools/connect/sessions/reauthenticate-connect-sessions.d.ts +24 -0
  107. package/tools/connect/sessions/reauthenticate-connect-sessions.d.ts.map +1 -0
  108. package/tools/connect/sessions/reauthenticate-connect-sessions.js +55 -0
  109. package/tools/connect/sessions/reauthenticate-connect-sessions.js.map +1 -0
  110. package/tools/connect/sessions/reauthenticate-connect-sessions.mjs +51 -0
  111. package/tools/connect/sessions/reauthenticate-connect-sessions.mjs.map +1 -0
  112. package/tools/hris/benefits/create-hris-benefits.d.mts +24 -0
  113. package/tools/hris/benefits/create-hris-benefits.d.mts.map +1 -0
  114. package/tools/hris/benefits/create-hris-benefits.d.ts +24 -0
  115. package/tools/hris/benefits/create-hris-benefits.d.ts.map +1 -0
  116. package/tools/hris/benefits/create-hris-benefits.js +62 -0
  117. package/tools/hris/benefits/create-hris-benefits.js.map +1 -0
  118. package/tools/hris/benefits/create-hris-benefits.mjs +58 -0
  119. package/tools/hris/benefits/create-hris-benefits.mjs.map +1 -0
  120. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.mts +24 -0
  121. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.mts.map +1 -0
  122. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.ts +24 -0
  123. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.ts.map +1 -0
  124. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.js +94 -0
  125. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.js.map +1 -0
  126. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.mjs +90 -0
  127. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.mjs.map +1 -0
  128. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.mts +24 -0
  129. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.mts.map +1 -0
  130. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.ts +24 -0
  131. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.ts.map +1 -0
  132. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.js +28 -0
  133. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.js.map +1 -0
  134. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.mjs +24 -0
  135. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.mjs.map +1 -0
  136. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.mts +24 -0
  137. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.mts.map +1 -0
  138. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.ts +24 -0
  139. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.ts.map +1 -0
  140. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.js +32 -0
  141. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.js.map +1 -0
  142. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.mjs +28 -0
  143. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.mjs.map +1 -0
  144. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.mts +24 -0
  145. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.mts.map +1 -0
  146. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.ts +24 -0
  147. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.ts.map +1 -0
  148. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.js +35 -0
  149. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.js.map +1 -0
  150. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.mjs +31 -0
  151. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.mjs.map +1 -0
  152. package/tools/hris/benefits/list-hris-benefits.d.mts +24 -0
  153. package/tools/hris/benefits/list-hris-benefits.d.mts.map +1 -0
  154. package/tools/hris/benefits/list-hris-benefits.d.ts +24 -0
  155. package/tools/hris/benefits/list-hris-benefits.d.ts.map +1 -0
  156. package/tools/hris/benefits/list-hris-benefits.js +24 -0
  157. package/tools/hris/benefits/list-hris-benefits.js.map +1 -0
  158. package/tools/hris/benefits/list-hris-benefits.mjs +20 -0
  159. package/tools/hris/benefits/list-hris-benefits.mjs.map +1 -0
  160. package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.mts +24 -0
  161. package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.mts.map +1 -0
  162. package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.ts +24 -0
  163. package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.ts.map +1 -0
  164. package/tools/hris/benefits/list-supported-benefits-hris-benefits.js +24 -0
  165. package/tools/hris/benefits/list-supported-benefits-hris-benefits.js.map +1 -0
  166. package/tools/hris/benefits/list-supported-benefits-hris-benefits.mjs +20 -0
  167. package/tools/hris/benefits/list-supported-benefits-hris-benefits.mjs.map +1 -0
  168. package/tools/hris/benefits/retrieve-hris-benefits.d.mts +24 -0
  169. package/tools/hris/benefits/retrieve-hris-benefits.d.mts.map +1 -0
  170. package/tools/hris/benefits/retrieve-hris-benefits.d.ts +24 -0
  171. package/tools/hris/benefits/retrieve-hris-benefits.d.ts.map +1 -0
  172. package/tools/hris/benefits/retrieve-hris-benefits.js +28 -0
  173. package/tools/hris/benefits/retrieve-hris-benefits.js.map +1 -0
  174. package/tools/hris/benefits/retrieve-hris-benefits.mjs +24 -0
  175. package/tools/hris/benefits/retrieve-hris-benefits.mjs.map +1 -0
  176. package/tools/hris/benefits/update-hris-benefits.d.mts +24 -0
  177. package/tools/hris/benefits/update-hris-benefits.d.mts.map +1 -0
  178. package/tools/hris/benefits/update-hris-benefits.d.ts +24 -0
  179. package/tools/hris/benefits/update-hris-benefits.d.ts.map +1 -0
  180. package/tools/hris/benefits/update-hris-benefits.js +32 -0
  181. package/tools/hris/benefits/update-hris-benefits.js.map +1 -0
  182. package/tools/hris/benefits/update-hris-benefits.mjs +28 -0
  183. package/tools/hris/benefits/update-hris-benefits.mjs.map +1 -0
  184. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.mts +24 -0
  185. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.mts.map +1 -0
  186. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.ts +24 -0
  187. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.ts.map +1 -0
  188. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.js +51 -0
  189. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.js.map +1 -0
  190. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.mjs +47 -0
  191. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.mjs.map +1 -0
  192. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.mts +24 -0
  193. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.mts.map +1 -0
  194. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.ts +24 -0
  195. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.ts.map +1 -0
  196. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.js +73 -0
  197. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.js.map +1 -0
  198. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.mjs +69 -0
  199. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.mjs.map +1 -0
  200. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.mts +24 -0
  201. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.mts.map +1 -0
  202. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.ts +24 -0
  203. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.ts.map +1 -0
  204. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.js +28 -0
  205. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.js.map +1 -0
  206. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.mjs +24 -0
  207. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.mjs.map +1 -0
  208. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.mts +24 -0
  209. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.mts.map +1 -0
  210. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.ts +24 -0
  211. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.ts.map +1 -0
  212. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.js +24 -0
  213. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.js.map +1 -0
  214. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.mjs +20 -0
  215. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.mjs.map +1 -0
  216. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.mts +24 -0
  217. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.mts.map +1 -0
  218. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.ts +24 -0
  219. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.ts.map +1 -0
  220. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.js +31 -0
  221. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.js.map +1 -0
  222. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.mjs +27 -0
  223. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.mjs.map +1 -0
  224. package/tools/hris/company/retrieve-hris-company.d.mts +24 -0
  225. package/tools/hris/company/retrieve-hris-company.d.mts.map +1 -0
  226. package/tools/hris/company/retrieve-hris-company.d.ts +24 -0
  227. package/tools/hris/company/retrieve-hris-company.d.ts.map +1 -0
  228. package/tools/hris/company/retrieve-hris-company.js +24 -0
  229. package/tools/hris/company/retrieve-hris-company.js.map +1 -0
  230. package/tools/hris/company/retrieve-hris-company.mjs +20 -0
  231. package/tools/hris/company/retrieve-hris-company.mjs.map +1 -0
  232. package/tools/hris/directory/list-hris-directory.d.mts +24 -0
  233. package/tools/hris/directory/list-hris-directory.d.mts.map +1 -0
  234. package/tools/hris/directory/list-hris-directory.d.ts +24 -0
  235. package/tools/hris/directory/list-hris-directory.d.ts.map +1 -0
  236. package/tools/hris/directory/list-hris-directory.js +33 -0
  237. package/tools/hris/directory/list-hris-directory.js.map +1 -0
  238. package/tools/hris/directory/list-hris-directory.mjs +29 -0
  239. package/tools/hris/directory/list-hris-directory.mjs.map +1 -0
  240. package/tools/hris/directory/list-individuals-hris-directory.d.mts +24 -0
  241. package/tools/hris/directory/list-individuals-hris-directory.d.mts.map +1 -0
  242. package/tools/hris/directory/list-individuals-hris-directory.d.ts +24 -0
  243. package/tools/hris/directory/list-individuals-hris-directory.d.ts.map +1 -0
  244. package/tools/hris/directory/list-individuals-hris-directory.js +33 -0
  245. package/tools/hris/directory/list-individuals-hris-directory.js.map +1 -0
  246. package/tools/hris/directory/list-individuals-hris-directory.mjs +29 -0
  247. package/tools/hris/directory/list-individuals-hris-directory.mjs.map +1 -0
  248. package/tools/hris/documents/list-hris-documents.d.mts +24 -0
  249. package/tools/hris/documents/list-hris-documents.d.mts.map +1 -0
  250. package/tools/hris/documents/list-hris-documents.d.ts +24 -0
  251. package/tools/hris/documents/list-hris-documents.d.ts.map +1 -0
  252. package/tools/hris/documents/list-hris-documents.js +48 -0
  253. package/tools/hris/documents/list-hris-documents.js.map +1 -0
  254. package/tools/hris/documents/list-hris-documents.mjs +44 -0
  255. package/tools/hris/documents/list-hris-documents.mjs.map +1 -0
  256. package/tools/hris/documents/retreive-hris-documents.d.mts +24 -0
  257. package/tools/hris/documents/retreive-hris-documents.d.mts.map +1 -0
  258. package/tools/hris/documents/retreive-hris-documents.d.ts +24 -0
  259. package/tools/hris/documents/retreive-hris-documents.d.ts.map +1 -0
  260. package/tools/hris/documents/retreive-hris-documents.js +28 -0
  261. package/tools/hris/documents/retreive-hris-documents.js.map +1 -0
  262. package/tools/hris/documents/retreive-hris-documents.mjs +24 -0
  263. package/tools/hris/documents/retreive-hris-documents.mjs.map +1 -0
  264. package/tools/hris/employments/retrieve-many-hris-employments.d.mts +24 -0
  265. package/tools/hris/employments/retrieve-many-hris-employments.d.mts.map +1 -0
  266. package/tools/hris/employments/retrieve-many-hris-employments.d.ts +24 -0
  267. package/tools/hris/employments/retrieve-many-hris-employments.d.ts.map +1 -0
  268. package/tools/hris/employments/retrieve-many-hris-employments.js +39 -0
  269. package/tools/hris/employments/retrieve-many-hris-employments.js.map +1 -0
  270. package/tools/hris/employments/retrieve-many-hris-employments.mjs +35 -0
  271. package/tools/hris/employments/retrieve-many-hris-employments.mjs.map +1 -0
  272. package/tools/hris/individuals/retrieve-many-hris-individuals.d.mts +24 -0
  273. package/tools/hris/individuals/retrieve-many-hris-individuals.d.mts.map +1 -0
  274. package/tools/hris/individuals/retrieve-many-hris-individuals.d.ts +24 -0
  275. package/tools/hris/individuals/retrieve-many-hris-individuals.d.ts.map +1 -0
  276. package/tools/hris/individuals/retrieve-many-hris-individuals.js +49 -0
  277. package/tools/hris/individuals/retrieve-many-hris-individuals.js.map +1 -0
  278. package/tools/hris/individuals/retrieve-many-hris-individuals.mjs +45 -0
  279. package/tools/hris/individuals/retrieve-many-hris-individuals.mjs.map +1 -0
  280. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.mts +24 -0
  281. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.mts.map +1 -0
  282. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.ts +24 -0
  283. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.ts.map +1 -0
  284. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.js +47 -0
  285. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.js.map +1 -0
  286. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.mjs +43 -0
  287. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.mjs.map +1 -0
  288. package/tools/hris/payments/list-hris-payments.d.mts +24 -0
  289. package/tools/hris/payments/list-hris-payments.d.mts.map +1 -0
  290. package/tools/hris/payments/list-hris-payments.d.ts +24 -0
  291. package/tools/hris/payments/list-hris-payments.d.ts.map +1 -0
  292. package/tools/hris/payments/list-hris-payments.js +35 -0
  293. package/tools/hris/payments/list-hris-payments.js.map +1 -0
  294. package/tools/hris/payments/list-hris-payments.mjs +31 -0
  295. package/tools/hris/payments/list-hris-payments.mjs.map +1 -0
  296. package/tools/index.d.mts +21 -0
  297. package/tools/index.d.mts.map +1 -0
  298. package/tools/index.d.ts +21 -0
  299. package/tools/index.d.ts.map +1 -0
  300. package/tools/index.js +140 -0
  301. package/tools/index.js.map +1 -0
  302. package/tools/index.mjs +133 -0
  303. package/tools/index.mjs.map +1 -0
  304. package/tools/jobs/automated/create-jobs-automated.d.mts +24 -0
  305. package/tools/jobs/automated/create-jobs-automated.d.mts.map +1 -0
  306. package/tools/jobs/automated/create-jobs-automated.d.ts +24 -0
  307. package/tools/jobs/automated/create-jobs-automated.d.ts.map +1 -0
  308. package/tools/jobs/automated/create-jobs-automated.js +55 -0
  309. package/tools/jobs/automated/create-jobs-automated.js.map +1 -0
  310. package/tools/jobs/automated/create-jobs-automated.mjs +51 -0
  311. package/tools/jobs/automated/create-jobs-automated.mjs.map +1 -0
  312. package/tools/jobs/automated/list-jobs-automated.d.mts +24 -0
  313. package/tools/jobs/automated/list-jobs-automated.d.mts.map +1 -0
  314. package/tools/jobs/automated/list-jobs-automated.d.ts +24 -0
  315. package/tools/jobs/automated/list-jobs-automated.d.ts.map +1 -0
  316. package/tools/jobs/automated/list-jobs-automated.js +33 -0
  317. package/tools/jobs/automated/list-jobs-automated.js.map +1 -0
  318. package/tools/jobs/automated/list-jobs-automated.mjs +29 -0
  319. package/tools/jobs/automated/list-jobs-automated.mjs.map +1 -0
  320. package/tools/jobs/automated/retrieve-jobs-automated.d.mts +24 -0
  321. package/tools/jobs/automated/retrieve-jobs-automated.d.mts.map +1 -0
  322. package/tools/jobs/automated/retrieve-jobs-automated.d.ts +24 -0
  323. package/tools/jobs/automated/retrieve-jobs-automated.d.ts.map +1 -0
  324. package/tools/jobs/automated/retrieve-jobs-automated.js +28 -0
  325. package/tools/jobs/automated/retrieve-jobs-automated.js.map +1 -0
  326. package/tools/jobs/automated/retrieve-jobs-automated.mjs +24 -0
  327. package/tools/jobs/automated/retrieve-jobs-automated.mjs.map +1 -0
  328. package/tools/jobs/manual/retrieve-jobs-manual.d.mts +24 -0
  329. package/tools/jobs/manual/retrieve-jobs-manual.d.mts.map +1 -0
  330. package/tools/jobs/manual/retrieve-jobs-manual.d.ts +24 -0
  331. package/tools/jobs/manual/retrieve-jobs-manual.d.ts.map +1 -0
  332. package/tools/jobs/manual/retrieve-jobs-manual.js +28 -0
  333. package/tools/jobs/manual/retrieve-jobs-manual.js.map +1 -0
  334. package/tools/jobs/manual/retrieve-jobs-manual.mjs +24 -0
  335. package/tools/jobs/manual/retrieve-jobs-manual.mjs.map +1 -0
  336. package/tools/payroll/pay-groups/list-payroll-pay-groups.d.mts +24 -0
  337. package/tools/payroll/pay-groups/list-payroll-pay-groups.d.mts.map +1 -0
  338. package/tools/payroll/pay-groups/list-payroll-pay-groups.d.ts +24 -0
  339. package/tools/payroll/pay-groups/list-payroll-pay-groups.d.ts.map +1 -0
  340. package/tools/payroll/pay-groups/list-payroll-pay-groups.js +34 -0
  341. package/tools/payroll/pay-groups/list-payroll-pay-groups.js.map +1 -0
  342. package/tools/payroll/pay-groups/list-payroll-pay-groups.mjs +30 -0
  343. package/tools/payroll/pay-groups/list-payroll-pay-groups.mjs.map +1 -0
  344. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.mts +24 -0
  345. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.mts.map +1 -0
  346. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.ts +24 -0
  347. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.ts.map +1 -0
  348. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.js +28 -0
  349. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.js.map +1 -0
  350. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.mjs +24 -0
  351. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.mjs.map +1 -0
  352. package/tools/providers/list-providers.d.mts +24 -0
  353. package/tools/providers/list-providers.d.mts.map +1 -0
  354. package/tools/providers/list-providers.d.ts +24 -0
  355. package/tools/providers/list-providers.d.ts.map +1 -0
  356. package/tools/providers/list-providers.js +24 -0
  357. package/tools/providers/list-providers.js.map +1 -0
  358. package/tools/providers/list-providers.mjs +20 -0
  359. package/tools/providers/list-providers.mjs.map +1 -0
  360. package/tools/request-forwarding/forward-request-forwarding.d.mts +24 -0
  361. package/tools/request-forwarding/forward-request-forwarding.d.mts.map +1 -0
  362. package/tools/request-forwarding/forward-request-forwarding.d.ts +24 -0
  363. package/tools/request-forwarding/forward-request-forwarding.d.ts.map +1 -0
  364. package/tools/request-forwarding/forward-request-forwarding.js +45 -0
  365. package/tools/request-forwarding/forward-request-forwarding.js.map +1 -0
  366. package/tools/request-forwarding/forward-request-forwarding.mjs +41 -0
  367. package/tools/request-forwarding/forward-request-forwarding.mjs.map +1 -0
  368. package/tools/sandbox/company/update-sandbox-company.d.mts +24 -0
  369. package/tools/sandbox/company/update-sandbox-company.d.mts.map +1 -0
  370. package/tools/sandbox/company/update-sandbox-company.d.ts +24 -0
  371. package/tools/sandbox/company/update-sandbox-company.d.ts.map +1 -0
  372. package/tools/sandbox/company/update-sandbox-company.js +154 -0
  373. package/tools/sandbox/company/update-sandbox-company.js.map +1 -0
  374. package/tools/sandbox/company/update-sandbox-company.mjs +150 -0
  375. package/tools/sandbox/company/update-sandbox-company.mjs.map +1 -0
  376. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.mts +24 -0
  377. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.mts.map +1 -0
  378. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.ts +24 -0
  379. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.ts.map +1 -0
  380. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.js +44 -0
  381. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.js.map +1 -0
  382. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.mjs +40 -0
  383. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.mjs.map +1 -0
  384. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.mts +24 -0
  385. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.mts.map +1 -0
  386. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.ts +24 -0
  387. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.ts.map +1 -0
  388. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.js +30 -0
  389. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.js.map +1 -0
  390. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.mjs +26 -0
  391. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.mjs.map +1 -0
  392. package/tools/sandbox/connections/create-sandbox-connections.d.mts +24 -0
  393. package/tools/sandbox/connections/create-sandbox-connections.d.mts.map +1 -0
  394. package/tools/sandbox/connections/create-sandbox-connections.d.ts +24 -0
  395. package/tools/sandbox/connections/create-sandbox-connections.d.ts.map +1 -0
  396. package/tools/sandbox/connections/create-sandbox-connections.js +44 -0
  397. package/tools/sandbox/connections/create-sandbox-connections.js.map +1 -0
  398. package/tools/sandbox/connections/create-sandbox-connections.mjs +40 -0
  399. package/tools/sandbox/connections/create-sandbox-connections.mjs.map +1 -0
  400. package/tools/sandbox/directory/create-sandbox-directory.d.mts +24 -0
  401. package/tools/sandbox/directory/create-sandbox-directory.d.mts.map +1 -0
  402. package/tools/sandbox/directory/create-sandbox-directory.d.ts +24 -0
  403. package/tools/sandbox/directory/create-sandbox-directory.d.ts.map +1 -0
  404. package/tools/sandbox/directory/create-sandbox-directory.js +284 -0
  405. package/tools/sandbox/directory/create-sandbox-directory.js.map +1 -0
  406. package/tools/sandbox/directory/create-sandbox-directory.mjs +280 -0
  407. package/tools/sandbox/directory/create-sandbox-directory.mjs.map +1 -0
  408. package/tools/sandbox/employment/update-sandbox-employment.d.mts +24 -0
  409. package/tools/sandbox/employment/update-sandbox-employment.d.mts.map +1 -0
  410. package/tools/sandbox/employment/update-sandbox-employment.d.ts +24 -0
  411. package/tools/sandbox/employment/update-sandbox-employment.d.ts.map +1 -0
  412. package/tools/sandbox/employment/update-sandbox-employment.js +207 -0
  413. package/tools/sandbox/employment/update-sandbox-employment.js.map +1 -0
  414. package/tools/sandbox/employment/update-sandbox-employment.mjs +203 -0
  415. package/tools/sandbox/employment/update-sandbox-employment.mjs.map +1 -0
  416. package/tools/sandbox/individual/update-sandbox-individual.d.mts +24 -0
  417. package/tools/sandbox/individual/update-sandbox-individual.d.mts.map +1 -0
  418. package/tools/sandbox/individual/update-sandbox-individual.d.ts +24 -0
  419. package/tools/sandbox/individual/update-sandbox-individual.d.ts.map +1 -0
  420. package/tools/sandbox/individual/update-sandbox-individual.js +144 -0
  421. package/tools/sandbox/individual/update-sandbox-individual.js.map +1 -0
  422. package/tools/sandbox/individual/update-sandbox-individual.mjs +140 -0
  423. package/tools/sandbox/individual/update-sandbox-individual.mjs.map +1 -0
  424. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.mts +24 -0
  425. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.mts.map +1 -0
  426. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.ts +24 -0
  427. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.ts.map +1 -0
  428. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.js +24 -0
  429. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.js.map +1 -0
  430. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.mjs +20 -0
  431. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.mjs.map +1 -0
  432. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.mts +24 -0
  433. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.mts.map +1 -0
  434. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.ts +24 -0
  435. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.ts.map +1 -0
  436. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.js +33 -0
  437. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.js.map +1 -0
  438. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.mjs +29 -0
  439. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.mjs.map +1 -0
  440. package/tools/sandbox/jobs/create-sandbox-jobs.d.mts +24 -0
  441. package/tools/sandbox/jobs/create-sandbox-jobs.d.mts.map +1 -0
  442. package/tools/sandbox/jobs/create-sandbox-jobs.d.ts +24 -0
  443. package/tools/sandbox/jobs/create-sandbox-jobs.d.ts.map +1 -0
  444. package/tools/sandbox/jobs/create-sandbox-jobs.js +30 -0
  445. package/tools/sandbox/jobs/create-sandbox-jobs.js.map +1 -0
  446. package/tools/sandbox/jobs/create-sandbox-jobs.mjs +26 -0
  447. package/tools/sandbox/jobs/create-sandbox-jobs.mjs.map +1 -0
  448. package/tools/sandbox/payment/create-sandbox-payment.d.mts +24 -0
  449. package/tools/sandbox/payment/create-sandbox-payment.d.mts.map +1 -0
  450. package/tools/sandbox/payment/create-sandbox-payment.d.ts +24 -0
  451. package/tools/sandbox/payment/create-sandbox-payment.d.ts.map +1 -0
  452. package/tools/sandbox/payment/create-sandbox-payment.js +292 -0
  453. package/tools/sandbox/payment/create-sandbox-payment.js.map +1 -0
  454. package/tools/sandbox/payment/create-sandbox-payment.mjs +288 -0
  455. package/tools/sandbox/payment/create-sandbox-payment.mjs.map +1 -0
  456. package/tools.d.mts +2 -0
  457. package/tools.d.mts.map +1 -0
  458. package/tools.d.ts +2 -0
  459. package/tools.d.ts.map +1 -0
  460. package/tools.js +18 -0
  461. package/tools.js.map +1 -0
  462. package/tools.mjs +2 -0
  463. package/tools.mjs.map +1 -0
package/src/server.ts ADDED
@@ -0,0 +1,89 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Server } from '@modelcontextprotocol/sdk/server/index.js';
4
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
5
+ import { endpoints, HandlerFunction } from './tools';
6
+ import { CallToolRequestSchema, ListToolsRequestSchema, Tool } from '@modelcontextprotocol/sdk/types.js';
7
+ import Finch from '@tryfinch/finch-api';
8
+ export { endpoints } from './tools';
9
+
10
+ // Create server instance
11
+ export const server = new McpServer(
12
+ {
13
+ name: 'tryfinch_finch_api_api',
14
+ version: '6.22.1',
15
+ },
16
+ {
17
+ capabilities: {
18
+ tools: {},
19
+ },
20
+ },
21
+ );
22
+
23
+ /**
24
+ * Initializes the provided MCP Server with the given tools and handlers.
25
+ * If not provided, the default client, tools and handlers will be used.
26
+ */
27
+ export function init(params: {
28
+ server: Server | McpServer;
29
+ client?: Finch;
30
+ endpoints?: { tool: Tool; handler: HandlerFunction }[];
31
+ }) {
32
+ const server = params.server instanceof McpServer ? params.server.server : params.server;
33
+ const providedEndpoints = params.endpoints || endpoints;
34
+ const tools = providedEndpoints.map((endpoint) => endpoint.tool);
35
+ const handlers = Object.fromEntries(
36
+ providedEndpoints.map((endpoint) => [endpoint.tool.name, endpoint.handler]),
37
+ );
38
+
39
+ const client = params.client || new Finch({});
40
+
41
+ server.setRequestHandler(ListToolsRequestSchema, async () => {
42
+ return {
43
+ tools,
44
+ };
45
+ });
46
+
47
+ server.setRequestHandler(CallToolRequestSchema, async (request) => {
48
+ const { name, arguments: args } = request.params;
49
+
50
+ const handler = handlers[name];
51
+ if (!handler) {
52
+ throw new Error(`Unknown tool: ${name}`);
53
+ }
54
+
55
+ return executeHandler(handler, client, args);
56
+ });
57
+ }
58
+
59
+ /**
60
+ * Runs the provided handler with the given client and arguments.
61
+ */
62
+ export async function executeHandler(
63
+ handler: HandlerFunction,
64
+ client: Finch,
65
+ args: Record<string, unknown> | undefined,
66
+ ) {
67
+ const result = await handler(client, args || {});
68
+ return {
69
+ content: [
70
+ {
71
+ type: 'text',
72
+ text: JSON.stringify(result, null, 2),
73
+ },
74
+ ],
75
+ };
76
+ }
77
+
78
+ export const readEnv = (env: string): string => {
79
+ let envValue = undefined;
80
+ if (typeof (globalThis as any).process !== 'undefined') {
81
+ envValue = (globalThis as any).process.env?.[env]?.trim();
82
+ } else if (typeof (globalThis as any).Deno !== 'undefined') {
83
+ envValue = (globalThis as any).Deno.env?.get?.(env)?.trim();
84
+ }
85
+ if (envValue === undefined) {
86
+ throw new Error(`Environment variable ${env} is not set`);
87
+ }
88
+ return envValue;
89
+ };
@@ -0,0 +1,40 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
+ import type { Metadata } from '../';
5
+ import Finch from '@tryfinch/finch-api';
6
+
7
+ export const metadata: Metadata = {
8
+ resource: 'access_tokens',
9
+ operation: 'write',
10
+ tags: [],
11
+ };
12
+
13
+ export const tool: Tool = {
14
+ name: 'create_access_tokens',
15
+ description: 'Exchange the authorization code for an access token',
16
+ inputSchema: {
17
+ type: 'object',
18
+ properties: {
19
+ code: {
20
+ type: 'string',
21
+ },
22
+ client_id: {
23
+ type: 'string',
24
+ },
25
+ client_secret: {
26
+ type: 'string',
27
+ },
28
+ redirect_uri: {
29
+ type: 'string',
30
+ },
31
+ },
32
+ },
33
+ };
34
+
35
+ export const handler = (client: Finch, args: any) => {
36
+ const { ...body } = args;
37
+ return client.accessTokens.create(body);
38
+ };
39
+
40
+ export default { metadata, tool, handler };
@@ -0,0 +1,27 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
+ import type { Metadata } from '../';
5
+ import Finch from '@tryfinch/finch-api';
6
+
7
+ export const metadata: Metadata = {
8
+ resource: 'account',
9
+ operation: 'write',
10
+ tags: [],
11
+ };
12
+
13
+ export const tool: Tool = {
14
+ name: 'disconnect_account',
15
+ description: 'Disconnect one or more `access_token`s from your application.',
16
+ inputSchema: {
17
+ type: 'object',
18
+ properties: {},
19
+ },
20
+ };
21
+
22
+ export const handler = (client: Finch, args: any) => {
23
+ const {} = args;
24
+ return client.account.disconnect();
25
+ };
26
+
27
+ export default { metadata, tool, handler };
@@ -0,0 +1,27 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
+ import type { Metadata } from '../';
5
+ import Finch from '@tryfinch/finch-api';
6
+
7
+ export const metadata: Metadata = {
8
+ resource: 'account',
9
+ operation: 'read',
10
+ tags: [],
11
+ };
12
+
13
+ export const tool: Tool = {
14
+ name: 'introspect_account',
15
+ description: 'Read account information associated with an `access_token`',
16
+ inputSchema: {
17
+ type: 'object',
18
+ properties: {},
19
+ },
20
+ };
21
+
22
+ export const handler = (client: Finch, args: any) => {
23
+ const {} = args;
24
+ return client.account.introspect();
25
+ };
26
+
27
+ export default { metadata, tool, handler };
@@ -0,0 +1,81 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
+ import type { Metadata } from '../../';
5
+ import Finch from '@tryfinch/finch-api';
6
+
7
+ export const metadata: Metadata = {
8
+ resource: 'connect.sessions',
9
+ operation: 'write',
10
+ tags: [],
11
+ };
12
+
13
+ export const tool: Tool = {
14
+ name: 'new_connect_sessions',
15
+ description: 'Create a new connect session for an employer',
16
+ inputSchema: {
17
+ type: 'object',
18
+ properties: {
19
+ customer_id: {
20
+ type: 'string',
21
+ },
22
+ customer_name: {
23
+ type: 'string',
24
+ },
25
+ products: {
26
+ type: 'array',
27
+ items: {
28
+ type: 'string',
29
+ description: 'The Finch products that can be requested during the Connect flow.',
30
+ enum: [
31
+ 'company',
32
+ 'directory',
33
+ 'individual',
34
+ 'employment',
35
+ 'payment',
36
+ 'pay_statement',
37
+ 'benefits',
38
+ 'ssn',
39
+ ],
40
+ },
41
+ },
42
+ customer_email: {
43
+ type: 'string',
44
+ },
45
+ integration: {
46
+ type: 'object',
47
+ properties: {
48
+ auth_method: {
49
+ type: 'string',
50
+ enum: ['assisted', 'credential', 'oauth', 'api_token'],
51
+ },
52
+ provider: {
53
+ type: 'string',
54
+ },
55
+ },
56
+ required: [],
57
+ },
58
+ manual: {
59
+ type: 'boolean',
60
+ },
61
+ minutes_to_expire: {
62
+ type: 'number',
63
+ description: 'The number of minutes until the session expires (defaults to 43,200, which is 30 days)',
64
+ },
65
+ redirect_uri: {
66
+ type: 'string',
67
+ },
68
+ sandbox: {
69
+ type: 'string',
70
+ enum: ['finch', 'provider'],
71
+ },
72
+ },
73
+ },
74
+ };
75
+
76
+ export const handler = (client: Finch, args: any) => {
77
+ const { ...body } = args;
78
+ return client.connect.sessions.new(body);
79
+ };
80
+
81
+ export default { metadata, tool, handler };
@@ -0,0 +1,58 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
+ import type { Metadata } from '../../';
5
+ import Finch from '@tryfinch/finch-api';
6
+
7
+ export const metadata: Metadata = {
8
+ resource: 'connect.sessions',
9
+ operation: 'write',
10
+ tags: [],
11
+ };
12
+
13
+ export const tool: Tool = {
14
+ name: 'reauthenticate_connect_sessions',
15
+ description: 'Create a new Connect session for reauthenticating an existing connection',
16
+ inputSchema: {
17
+ type: 'object',
18
+ properties: {
19
+ connection_id: {
20
+ type: 'string',
21
+ description: 'The ID of the existing connection to reauthenticate',
22
+ },
23
+ minutes_to_expire: {
24
+ type: 'integer',
25
+ description: 'The number of minutes until the session expires (defaults to 43,200, which is 30 days)',
26
+ },
27
+ products: {
28
+ type: 'array',
29
+ description: 'The products to request access to (optional for reauthentication)',
30
+ items: {
31
+ type: 'string',
32
+ description: 'The Finch products that can be requested during the Connect flow.',
33
+ enum: [
34
+ 'company',
35
+ 'directory',
36
+ 'individual',
37
+ 'employment',
38
+ 'payment',
39
+ 'pay_statement',
40
+ 'benefits',
41
+ 'ssn',
42
+ ],
43
+ },
44
+ },
45
+ redirect_uri: {
46
+ type: 'string',
47
+ description: 'The URI to redirect to after the Connect flow is completed',
48
+ },
49
+ },
50
+ },
51
+ };
52
+
53
+ export const handler = (client: Finch, args: any) => {
54
+ const { ...body } = args;
55
+ return client.connect.sessions.reauthenticate(body);
56
+ };
57
+
58
+ export default { metadata, tool, handler };
@@ -0,0 +1,67 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
+ import type { Metadata } from '../../';
5
+ import Finch from '@tryfinch/finch-api';
6
+
7
+ export const metadata: Metadata = {
8
+ resource: 'hris.benefits',
9
+ operation: 'write',
10
+ tags: [],
11
+ };
12
+
13
+ export const tool: Tool = {
14
+ name: 'create_hris_benefits',
15
+ description:
16
+ 'Creates a new company-wide deduction or contribution. Please use the `/providers` endpoint to view available types for each provider.',
17
+ inputSchema: {
18
+ type: 'object',
19
+ properties: {
20
+ description: {
21
+ type: 'string',
22
+ title: 'BenefitDescription',
23
+ description:
24
+ 'Name of the benefit as it appears in the provider and pay statements. Recommend limiting this to <30 characters due to limitations in specific providers (e.g. Justworks).',
25
+ },
26
+ frequency: {
27
+ type: 'string',
28
+ title: 'BenefitFrequency',
29
+ description: 'The frequency of the benefit deduction/contribution.',
30
+ enum: ['one_time', 'every_paycheck', 'monthly'],
31
+ },
32
+ type: {
33
+ type: 'string',
34
+ title: 'BenefitType',
35
+ description: 'Type of benefit.',
36
+ enum: [
37
+ '401k',
38
+ '401k_roth',
39
+ '401k_loan',
40
+ '403b',
41
+ '403b_roth',
42
+ '457',
43
+ '457_roth',
44
+ 's125_medical',
45
+ 's125_dental',
46
+ 's125_vision',
47
+ 'hsa_pre',
48
+ 'hsa_post',
49
+ 'fsa_medical',
50
+ 'fsa_dependent_care',
51
+ 'simple_ira',
52
+ 'simple',
53
+ 'commuter',
54
+ 'custom_post_tax',
55
+ 'custom_pre_tax',
56
+ ],
57
+ },
58
+ },
59
+ },
60
+ };
61
+
62
+ export const handler = (client: Finch, args: any) => {
63
+ const { ...body } = args;
64
+ return client.hris.benefits.create(body);
65
+ };
66
+
67
+ export default { metadata, tool, handler };
@@ -0,0 +1,101 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
+ import type { Metadata } from '../../../';
5
+ import Finch from '@tryfinch/finch-api';
6
+
7
+ export const metadata: Metadata = {
8
+ resource: 'hris.benefits.individuals',
9
+ operation: 'write',
10
+ tags: [],
11
+ };
12
+
13
+ export const tool: Tool = {
14
+ name: 'enroll_many_benefits_hris_individuals',
15
+ description:
16
+ 'Enroll an individual into a deduction or contribution. This is an overwrite operation. If the employee is already enrolled, the enrollment amounts will be adjusted. Making the same request multiple times will not create new enrollments, but will continue to set the state of the existing enrollment.',
17
+ inputSchema: {
18
+ type: 'object',
19
+ properties: {
20
+ benefit_id: {
21
+ type: 'string',
22
+ },
23
+ individuals: {
24
+ type: 'array',
25
+ description: 'Array of the individual_id to enroll and a configuration object.',
26
+ items: {
27
+ type: 'object',
28
+ properties: {
29
+ configuration: {
30
+ type: 'object',
31
+ properties: {
32
+ annual_contribution_limit: {
33
+ type: 'string',
34
+ description:
35
+ 'For HSA benefits only - whether the contribution limit is for an individual or family',
36
+ enum: ['individual', 'family'],
37
+ },
38
+ annual_maximum: {
39
+ type: 'integer',
40
+ description: 'Maximum annual amount in cents',
41
+ },
42
+ catch_up: {
43
+ type: 'boolean',
44
+ description: 'For retirement benefits only - whether catch up contributions are enabled',
45
+ },
46
+ company_contribution: {
47
+ type: 'object',
48
+ properties: {
49
+ amount: {
50
+ type: 'integer',
51
+ description:
52
+ 'Amount in cents for fixed type or basis points (1/100th of a percent) for percent type',
53
+ },
54
+ type: {
55
+ type: 'string',
56
+ enum: ['fixed', 'percent'],
57
+ },
58
+ },
59
+ required: [],
60
+ },
61
+ effective_date: {
62
+ type: 'string',
63
+ description: 'The date the enrollment will take effect',
64
+ format: 'date',
65
+ },
66
+ employee_deduction: {
67
+ type: 'object',
68
+ properties: {
69
+ amount: {
70
+ type: 'integer',
71
+ description:
72
+ 'Amount in cents for fixed type or basis points (1/100th of a percent) for percent type',
73
+ },
74
+ type: {
75
+ type: 'string',
76
+ enum: ['fixed', 'percent'],
77
+ },
78
+ },
79
+ required: [],
80
+ },
81
+ },
82
+ required: [],
83
+ },
84
+ individual_id: {
85
+ type: 'string',
86
+ description: 'Finch id (uuidv4) for the individual to enroll',
87
+ },
88
+ },
89
+ required: [],
90
+ },
91
+ },
92
+ },
93
+ },
94
+ };
95
+
96
+ export const handler = (client: Finch, args: any) => {
97
+ const { benefit_id, ...body } = args;
98
+ return client.hris.benefits.individuals.enrollMany(benefit_id, body);
99
+ };
100
+
101
+ export default { metadata, tool, handler };
@@ -0,0 +1,31 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
+ import type { Metadata } from '../../../';
5
+ import Finch from '@tryfinch/finch-api';
6
+
7
+ export const metadata: Metadata = {
8
+ resource: 'hris.benefits.individuals',
9
+ operation: 'read',
10
+ tags: [],
11
+ };
12
+
13
+ export const tool: Tool = {
14
+ name: 'enrolled_ids_benefits_hris_individuals',
15
+ description: 'Lists individuals currently enrolled in a given deduction.',
16
+ inputSchema: {
17
+ type: 'object',
18
+ properties: {
19
+ benefit_id: {
20
+ type: 'string',
21
+ },
22
+ },
23
+ },
24
+ };
25
+
26
+ export const handler = (client: Finch, args: any) => {
27
+ const { benefit_id } = args;
28
+ return client.hris.benefits.individuals.enrolledIds(benefit_id);
29
+ };
30
+
31
+ export default { metadata, tool, handler };
@@ -0,0 +1,36 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
+ import type { Metadata } from '../../../';
5
+ import Finch from '@tryfinch/finch-api';
6
+
7
+ export const metadata: Metadata = {
8
+ resource: 'hris.benefits.individuals',
9
+ operation: 'read',
10
+ tags: [],
11
+ };
12
+
13
+ export const tool: Tool = {
14
+ name: 'retrieve_many_benefits_benefits_hris_individuals',
15
+ description: 'Get enrollment information for the given individuals.',
16
+ inputSchema: {
17
+ type: 'object',
18
+ properties: {
19
+ benefit_id: {
20
+ type: 'string',
21
+ },
22
+ individual_ids: {
23
+ type: 'string',
24
+ description:
25
+ 'comma-delimited list of stable Finch uuids for each individual. If empty, defaults to all individuals',
26
+ },
27
+ },
28
+ },
29
+ };
30
+
31
+ export const handler = (client: Finch, args: any) => {
32
+ const { benefit_id, ...body } = args;
33
+ return client.hris.benefits.individuals.retrieveManyBenefits(benefit_id, body);
34
+ };
35
+
36
+ export default { metadata, tool, handler };
@@ -0,0 +1,38 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
+ import type { Metadata } from '../../../';
5
+ import Finch from '@tryfinch/finch-api';
6
+
7
+ export const metadata: Metadata = {
8
+ resource: 'hris.benefits.individuals',
9
+ operation: 'write',
10
+ tags: [],
11
+ };
12
+
13
+ export const tool: Tool = {
14
+ name: 'unenroll_many_benefits_hris_individuals',
15
+ description: 'Unenroll individuals from a deduction or contribution',
16
+ inputSchema: {
17
+ type: 'object',
18
+ properties: {
19
+ benefit_id: {
20
+ type: 'string',
21
+ },
22
+ individual_ids: {
23
+ type: 'array',
24
+ description: 'Array of individual_ids to unenroll.',
25
+ items: {
26
+ type: 'string',
27
+ },
28
+ },
29
+ },
30
+ },
31
+ };
32
+
33
+ export const handler = (client: Finch, args: any) => {
34
+ const { benefit_id, ...body } = args;
35
+ return client.hris.benefits.individuals.unenrollMany(benefit_id, body);
36
+ };
37
+
38
+ export default { metadata, tool, handler };
@@ -0,0 +1,27 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
+ import type { Metadata } from '../../';
5
+ import Finch from '@tryfinch/finch-api';
6
+
7
+ export const metadata: Metadata = {
8
+ resource: 'hris.benefits',
9
+ operation: 'read',
10
+ tags: [],
11
+ };
12
+
13
+ export const tool: Tool = {
14
+ name: 'list_hris_benefits',
15
+ description: 'List all company-wide deductions and contributions.',
16
+ inputSchema: {
17
+ type: 'object',
18
+ properties: {},
19
+ },
20
+ };
21
+
22
+ export const handler = (client: Finch, args: any) => {
23
+ const {} = args;
24
+ return client.hris.benefits.list();
25
+ };
26
+
27
+ export default { metadata, tool, handler };
@@ -0,0 +1,27 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
+ import type { Metadata } from '../../';
5
+ import Finch from '@tryfinch/finch-api';
6
+
7
+ export const metadata: Metadata = {
8
+ resource: 'hris.benefits',
9
+ operation: 'read',
10
+ tags: [],
11
+ };
12
+
13
+ export const tool: Tool = {
14
+ name: 'list_supported_benefits_hris_benefits',
15
+ description: 'Get deductions metadata',
16
+ inputSchema: {
17
+ type: 'object',
18
+ properties: {},
19
+ },
20
+ };
21
+
22
+ export const handler = (client: Finch, args: any) => {
23
+ const {} = args;
24
+ return client.hris.benefits.listSupportedBenefits();
25
+ };
26
+
27
+ export default { metadata, tool, handler };
@@ -0,0 +1,31 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
+ import type { Metadata } from '../../';
5
+ import Finch from '@tryfinch/finch-api';
6
+
7
+ export const metadata: Metadata = {
8
+ resource: 'hris.benefits',
9
+ operation: 'read',
10
+ tags: [],
11
+ };
12
+
13
+ export const tool: Tool = {
14
+ name: 'retrieve_hris_benefits',
15
+ description: 'Lists deductions and contributions information for a given item',
16
+ inputSchema: {
17
+ type: 'object',
18
+ properties: {
19
+ benefit_id: {
20
+ type: 'string',
21
+ },
22
+ },
23
+ },
24
+ };
25
+
26
+ export const handler = (client: Finch, args: any) => {
27
+ const { benefit_id } = args;
28
+ return client.hris.benefits.retrieve(benefit_id);
29
+ };
30
+
31
+ export default { metadata, tool, handler };