@tryfinch/finch-api-mcp 6.31.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -259
- package/code-tool-types.d.mts +16 -0
- package/code-tool-types.d.mts.map +1 -0
- package/code-tool-types.d.ts +16 -0
- package/code-tool-types.d.ts.map +1 -0
- package/code-tool-types.js +4 -0
- package/code-tool-types.js.map +1 -0
- package/code-tool-types.mjs +3 -0
- package/code-tool-types.mjs.map +1 -0
- package/code-tool.d.mts +12 -0
- package/code-tool.d.mts.map +1 -0
- package/code-tool.d.ts +12 -0
- package/code-tool.d.ts.map +1 -0
- package/code-tool.js +55 -0
- package/code-tool.js.map +1 -0
- package/code-tool.mjs +52 -0
- package/code-tool.mjs.map +1 -0
- package/docs-search-tool.d.mts +50 -0
- package/docs-search-tool.d.mts.map +1 -0
- package/docs-search-tool.d.ts +50 -0
- package/docs-search-tool.d.ts.map +1 -0
- package/docs-search-tool.js +51 -0
- package/docs-search-tool.js.map +1 -0
- package/docs-search-tool.mjs +47 -0
- package/docs-search-tool.mjs.map +1 -0
- package/headers.d.mts +4 -0
- package/headers.d.mts.map +1 -0
- package/headers.d.ts +4 -0
- package/headers.d.ts.map +1 -0
- package/headers.js +31 -0
- package/headers.js.map +1 -0
- package/headers.mjs +27 -0
- package/headers.mjs.map +1 -0
- package/http.d.mts +9 -0
- package/http.d.mts.map +1 -0
- package/http.d.ts +9 -0
- package/http.d.ts.map +1 -0
- package/http.js +91 -0
- package/http.js.map +1 -0
- package/http.mjs +83 -0
- package/http.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.ts +1 -0
- package/index.js +14 -45
- package/index.js.map +1 -1
- package/index.mjs +17 -47
- package/index.mjs.map +1 -1
- package/options.d.mts +10 -10
- package/options.d.mts.map +1 -1
- package/options.d.ts +10 -10
- package/options.d.ts.map +1 -1
- package/options.js +42 -307
- package/options.js.map +1 -1
- package/options.mjs +40 -306
- package/options.mjs.map +1 -1
- package/package.json +121 -12
- package/server.d.mts +11 -19
- package/server.d.mts.map +1 -1
- package/server.d.ts +11 -19
- package/server.d.ts.map +1 -1
- package/server.js +67 -49
- package/server.js.map +1 -1
- package/server.mjs +65 -47
- package/server.mjs.map +1 -1
- package/src/code-tool-types.ts +18 -0
- package/src/code-tool.ts +65 -0
- package/src/docs-search-tool.ts +59 -0
- package/src/headers.ts +35 -0
- package/src/http.ts +109 -0
- package/src/index.ts +21 -62
- package/src/options.ts +57 -326
- package/src/server.ts +85 -65
- package/src/stdio.ts +12 -0
- package/src/types.ts +115 -0
- package/stdio.d.mts +2 -0
- package/stdio.d.mts.map +1 -0
- package/stdio.d.ts +2 -0
- package/stdio.d.ts.map +1 -0
- package/stdio.js +14 -0
- package/stdio.js.map +1 -0
- package/stdio.mjs +10 -0
- package/stdio.mjs.map +1 -0
- package/types.d.mts +52 -0
- package/types.d.mts.map +1 -0
- package/types.d.ts +52 -0
- package/types.d.ts.map +1 -0
- package/types.js +58 -0
- package/types.js.map +1 -0
- package/types.mjs +53 -0
- package/types.mjs.map +1 -0
- package/compat.d.mts +0 -52
- package/compat.d.mts.map +0 -1
- package/compat.d.ts +0 -52
- package/compat.d.ts.map +0 -1
- package/compat.js +0 -342
- package/compat.js.map +0 -1
- package/compat.mjs +0 -332
- package/compat.mjs.map +0 -1
- package/dynamic-tools.d.mts +0 -12
- package/dynamic-tools.d.mts.map +0 -1
- package/dynamic-tools.d.ts +0 -12
- package/dynamic-tools.d.ts.map +0 -1
- package/dynamic-tools.js +0 -133
- package/dynamic-tools.js.map +0 -1
- package/dynamic-tools.mjs +0 -130
- package/dynamic-tools.mjs.map +0 -1
- package/src/compat.ts +0 -429
- package/src/dynamic-tools.ts +0 -152
- package/src/tools/access-tokens/create-access-tokens.ts +0 -40
- package/src/tools/account/disconnect-account.ts +0 -26
- package/src/tools/account/introspect-account.ts +0 -26
- package/src/tools/connect/sessions/new-connect-sessions.ts +0 -83
- package/src/tools/connect/sessions/reauthenticate-connect-sessions.ts +0 -60
- package/src/tools/hris/benefits/create-hris-benefits.ts +0 -102
- package/src/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.ts +0 -101
- package/src/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.ts +0 -31
- package/src/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.ts +0 -36
- package/src/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.ts +0 -38
- package/src/tools/hris/benefits/list-hris-benefits.ts +0 -26
- package/src/tools/hris/benefits/list-supported-benefits-hris-benefits.ts +0 -26
- package/src/tools/hris/benefits/retrieve-hris-benefits.ts +0 -31
- package/src/tools/hris/benefits/update-hris-benefits.ts +0 -35
- package/src/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.ts +0 -58
- package/src/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.ts +0 -78
- package/src/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.ts +0 -32
- package/src/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.ts +0 -27
- package/src/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.ts +0 -35
- package/src/tools/hris/company/retrieve-hris-company.ts +0 -26
- package/src/tools/hris/directory/list-hris-directory.ts +0 -36
- package/src/tools/hris/directory/list-individuals-hris-directory.ts +0 -36
- package/src/tools/hris/documents/list-hris-documents.ts +0 -53
- package/src/tools/hris/documents/retreive-hris-documents.ts +0 -32
- package/src/tools/hris/employments/retrieve-many-hris-employments.ts +0 -43
- package/src/tools/hris/individuals/retrieve-many-hris-individuals.ts +0 -52
- package/src/tools/hris/pay-statements/retrieve-many-hris-pay-statements.ts +0 -51
- package/src/tools/hris/payments/list-hris-payments.ts +0 -38
- package/src/tools/index.ts +0 -175
- package/src/tools/jobs/automated/create-jobs-automated.ts +0 -59
- package/src/tools/jobs/automated/list-jobs-automated.ts +0 -37
- package/src/tools/jobs/automated/retrieve-jobs-automated.ts +0 -31
- package/src/tools/jobs/manual/retrieve-jobs-manual.ts +0 -32
- package/src/tools/payroll/pay-groups/list-payroll-pay-groups.ts +0 -37
- package/src/tools/payroll/pay-groups/retrieve-payroll-pay-groups.ts +0 -31
- package/src/tools/providers/list-providers.ts +0 -26
- package/src/tools/request-forwarding/forward-request-forwarding.ts +0 -54
- package/src/tools/sandbox/company/update-sandbox-company.ts +0 -164
- package/src/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.ts +0 -48
- package/src/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.ts +0 -39
- package/src/tools/sandbox/connections/create-sandbox-connections.ts +0 -48
- package/src/tools/sandbox/directory/create-sandbox-directory.ts +0 -303
- package/src/tools/sandbox/employment/update-sandbox-employment.ts +0 -223
- package/src/tools/sandbox/individual/update-sandbox-individual.ts +0 -154
- package/src/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.ts +0 -26
- package/src/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.ts +0 -36
- package/src/tools/sandbox/jobs/create-sandbox-jobs.ts +0 -33
- package/src/tools/sandbox/payment/create-sandbox-payment.ts +0 -308
- package/src/tools.ts +0 -1
- package/tools/access-tokens/create-access-tokens.d.mts +0 -32
- package/tools/access-tokens/create-access-tokens.d.mts.map +0 -1
- package/tools/access-tokens/create-access-tokens.d.ts +0 -32
- package/tools/access-tokens/create-access-tokens.d.ts.map +0 -1
- package/tools/access-tokens/create-access-tokens.js +0 -37
- package/tools/access-tokens/create-access-tokens.js.map +0 -1
- package/tools/access-tokens/create-access-tokens.mjs +0 -33
- package/tools/access-tokens/create-access-tokens.mjs.map +0 -1
- package/tools/account/disconnect-account.d.mts +0 -32
- package/tools/account/disconnect-account.d.mts.map +0 -1
- package/tools/account/disconnect-account.d.ts +0 -32
- package/tools/account/disconnect-account.d.ts.map +0 -1
- package/tools/account/disconnect-account.js +0 -23
- package/tools/account/disconnect-account.js.map +0 -1
- package/tools/account/disconnect-account.mjs +0 -19
- package/tools/account/disconnect-account.mjs.map +0 -1
- package/tools/account/introspect-account.d.mts +0 -32
- package/tools/account/introspect-account.d.mts.map +0 -1
- package/tools/account/introspect-account.d.ts +0 -32
- package/tools/account/introspect-account.d.ts.map +0 -1
- package/tools/account/introspect-account.js +0 -23
- package/tools/account/introspect-account.js.map +0 -1
- package/tools/account/introspect-account.mjs +0 -19
- package/tools/account/introspect-account.mjs.map +0 -1
- package/tools/connect/sessions/new-connect-sessions.d.mts +0 -32
- package/tools/connect/sessions/new-connect-sessions.d.mts.map +0 -1
- package/tools/connect/sessions/new-connect-sessions.d.ts +0 -32
- package/tools/connect/sessions/new-connect-sessions.d.ts.map +0 -1
- package/tools/connect/sessions/new-connect-sessions.js +0 -80
- package/tools/connect/sessions/new-connect-sessions.js.map +0 -1
- package/tools/connect/sessions/new-connect-sessions.mjs +0 -76
- package/tools/connect/sessions/new-connect-sessions.mjs.map +0 -1
- package/tools/connect/sessions/reauthenticate-connect-sessions.d.mts +0 -32
- package/tools/connect/sessions/reauthenticate-connect-sessions.d.mts.map +0 -1
- package/tools/connect/sessions/reauthenticate-connect-sessions.d.ts +0 -32
- package/tools/connect/sessions/reauthenticate-connect-sessions.d.ts.map +0 -1
- package/tools/connect/sessions/reauthenticate-connect-sessions.js +0 -57
- package/tools/connect/sessions/reauthenticate-connect-sessions.js.map +0 -1
- package/tools/connect/sessions/reauthenticate-connect-sessions.mjs +0 -53
- package/tools/connect/sessions/reauthenticate-connect-sessions.mjs.map +0 -1
- package/tools/hris/benefits/create-hris-benefits.d.mts +0 -32
- package/tools/hris/benefits/create-hris-benefits.d.mts.map +0 -1
- package/tools/hris/benefits/create-hris-benefits.d.ts +0 -32
- package/tools/hris/benefits/create-hris-benefits.d.ts.map +0 -1
- package/tools/hris/benefits/create-hris-benefits.js +0 -97
- package/tools/hris/benefits/create-hris-benefits.js.map +0 -1
- package/tools/hris/benefits/create-hris-benefits.mjs +0 -93
- package/tools/hris/benefits/create-hris-benefits.mjs.map +0 -1
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.mts +0 -32
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.mts.map +0 -1
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.ts +0 -32
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.ts.map +0 -1
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.js +0 -94
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.js.map +0 -1
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.mjs +0 -90
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.mjs.map +0 -1
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.mts +0 -32
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.mts.map +0 -1
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.ts +0 -32
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.ts.map +0 -1
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.js +0 -28
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.js.map +0 -1
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.mjs +0 -24
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.mjs.map +0 -1
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.mts +0 -32
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.mts.map +0 -1
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.ts +0 -32
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.ts.map +0 -1
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.js +0 -32
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.js.map +0 -1
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.mjs +0 -28
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.mjs.map +0 -1
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.mts +0 -32
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.mts.map +0 -1
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.ts +0 -32
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.ts.map +0 -1
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.js +0 -35
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.js.map +0 -1
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.mjs +0 -31
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.mjs.map +0 -1
- package/tools/hris/benefits/list-hris-benefits.d.mts +0 -32
- package/tools/hris/benefits/list-hris-benefits.d.mts.map +0 -1
- package/tools/hris/benefits/list-hris-benefits.d.ts +0 -32
- package/tools/hris/benefits/list-hris-benefits.d.ts.map +0 -1
- package/tools/hris/benefits/list-hris-benefits.js +0 -23
- package/tools/hris/benefits/list-hris-benefits.js.map +0 -1
- package/tools/hris/benefits/list-hris-benefits.mjs +0 -19
- package/tools/hris/benefits/list-hris-benefits.mjs.map +0 -1
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.mts +0 -32
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.mts.map +0 -1
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.ts +0 -32
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.ts.map +0 -1
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.js +0 -23
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.js.map +0 -1
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.mjs +0 -19
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.mjs.map +0 -1
- package/tools/hris/benefits/retrieve-hris-benefits.d.mts +0 -32
- package/tools/hris/benefits/retrieve-hris-benefits.d.mts.map +0 -1
- package/tools/hris/benefits/retrieve-hris-benefits.d.ts +0 -32
- package/tools/hris/benefits/retrieve-hris-benefits.d.ts.map +0 -1
- package/tools/hris/benefits/retrieve-hris-benefits.js +0 -28
- package/tools/hris/benefits/retrieve-hris-benefits.js.map +0 -1
- package/tools/hris/benefits/retrieve-hris-benefits.mjs +0 -24
- package/tools/hris/benefits/retrieve-hris-benefits.mjs.map +0 -1
- package/tools/hris/benefits/update-hris-benefits.d.mts +0 -32
- package/tools/hris/benefits/update-hris-benefits.d.mts.map +0 -1
- package/tools/hris/benefits/update-hris-benefits.d.ts +0 -32
- package/tools/hris/benefits/update-hris-benefits.d.ts.map +0 -1
- package/tools/hris/benefits/update-hris-benefits.js +0 -32
- package/tools/hris/benefits/update-hris-benefits.js.map +0 -1
- package/tools/hris/benefits/update-hris-benefits.mjs +0 -28
- package/tools/hris/benefits/update-hris-benefits.mjs.map +0 -1
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.mts +0 -32
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.mts.map +0 -1
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.ts +0 -32
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.ts.map +0 -1
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.js +0 -51
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.js.map +0 -1
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.mjs +0 -47
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.mjs.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.mts +0 -32
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.mts.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.ts +0 -32
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.ts.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.js +0 -73
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.js.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.mjs +0 -69
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.mjs.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.mts +0 -32
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.mts.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.ts +0 -32
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.ts.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.js +0 -28
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.js.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.mjs +0 -24
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.mjs.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.mts +0 -32
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.mts.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.ts +0 -32
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.ts.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.js +0 -23
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.js.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.mjs +0 -19
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.mjs.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.mts +0 -32
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.mts.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.ts +0 -32
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.ts.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.js +0 -31
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.js.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.mjs +0 -27
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.mjs.map +0 -1
- package/tools/hris/company/retrieve-hris-company.d.mts +0 -32
- package/tools/hris/company/retrieve-hris-company.d.mts.map +0 -1
- package/tools/hris/company/retrieve-hris-company.d.ts +0 -32
- package/tools/hris/company/retrieve-hris-company.d.ts.map +0 -1
- package/tools/hris/company/retrieve-hris-company.js +0 -23
- package/tools/hris/company/retrieve-hris-company.js.map +0 -1
- package/tools/hris/company/retrieve-hris-company.mjs +0 -19
- package/tools/hris/company/retrieve-hris-company.mjs.map +0 -1
- package/tools/hris/directory/list-hris-directory.d.mts +0 -32
- package/tools/hris/directory/list-hris-directory.d.mts.map +0 -1
- package/tools/hris/directory/list-hris-directory.d.ts +0 -32
- package/tools/hris/directory/list-hris-directory.d.ts.map +0 -1
- package/tools/hris/directory/list-hris-directory.js +0 -33
- package/tools/hris/directory/list-hris-directory.js.map +0 -1
- package/tools/hris/directory/list-hris-directory.mjs +0 -29
- package/tools/hris/directory/list-hris-directory.mjs.map +0 -1
- package/tools/hris/directory/list-individuals-hris-directory.d.mts +0 -32
- package/tools/hris/directory/list-individuals-hris-directory.d.mts.map +0 -1
- package/tools/hris/directory/list-individuals-hris-directory.d.ts +0 -32
- package/tools/hris/directory/list-individuals-hris-directory.d.ts.map +0 -1
- package/tools/hris/directory/list-individuals-hris-directory.js +0 -33
- package/tools/hris/directory/list-individuals-hris-directory.js.map +0 -1
- package/tools/hris/directory/list-individuals-hris-directory.mjs +0 -29
- package/tools/hris/directory/list-individuals-hris-directory.mjs.map +0 -1
- package/tools/hris/documents/list-hris-documents.d.mts +0 -32
- package/tools/hris/documents/list-hris-documents.d.mts.map +0 -1
- package/tools/hris/documents/list-hris-documents.d.ts +0 -32
- package/tools/hris/documents/list-hris-documents.d.ts.map +0 -1
- package/tools/hris/documents/list-hris-documents.js +0 -48
- package/tools/hris/documents/list-hris-documents.js.map +0 -1
- package/tools/hris/documents/list-hris-documents.mjs +0 -44
- package/tools/hris/documents/list-hris-documents.mjs.map +0 -1
- package/tools/hris/documents/retreive-hris-documents.d.mts +0 -32
- package/tools/hris/documents/retreive-hris-documents.d.mts.map +0 -1
- package/tools/hris/documents/retreive-hris-documents.d.ts +0 -32
- package/tools/hris/documents/retreive-hris-documents.d.ts.map +0 -1
- package/tools/hris/documents/retreive-hris-documents.js +0 -28
- package/tools/hris/documents/retreive-hris-documents.js.map +0 -1
- package/tools/hris/documents/retreive-hris-documents.mjs +0 -24
- package/tools/hris/documents/retreive-hris-documents.mjs.map +0 -1
- package/tools/hris/employments/retrieve-many-hris-employments.d.mts +0 -32
- package/tools/hris/employments/retrieve-many-hris-employments.d.mts.map +0 -1
- package/tools/hris/employments/retrieve-many-hris-employments.d.ts +0 -32
- package/tools/hris/employments/retrieve-many-hris-employments.d.ts.map +0 -1
- package/tools/hris/employments/retrieve-many-hris-employments.js +0 -39
- package/tools/hris/employments/retrieve-many-hris-employments.js.map +0 -1
- package/tools/hris/employments/retrieve-many-hris-employments.mjs +0 -35
- package/tools/hris/employments/retrieve-many-hris-employments.mjs.map +0 -1
- package/tools/hris/individuals/retrieve-many-hris-individuals.d.mts +0 -32
- package/tools/hris/individuals/retrieve-many-hris-individuals.d.mts.map +0 -1
- package/tools/hris/individuals/retrieve-many-hris-individuals.d.ts +0 -32
- package/tools/hris/individuals/retrieve-many-hris-individuals.d.ts.map +0 -1
- package/tools/hris/individuals/retrieve-many-hris-individuals.js +0 -49
- package/tools/hris/individuals/retrieve-many-hris-individuals.js.map +0 -1
- package/tools/hris/individuals/retrieve-many-hris-individuals.mjs +0 -45
- package/tools/hris/individuals/retrieve-many-hris-individuals.mjs.map +0 -1
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.mts +0 -32
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.mts.map +0 -1
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.ts +0 -32
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.ts.map +0 -1
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.js +0 -47
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.js.map +0 -1
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.mjs +0 -43
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.mjs.map +0 -1
- package/tools/hris/payments/list-hris-payments.d.mts +0 -32
- package/tools/hris/payments/list-hris-payments.d.mts.map +0 -1
- package/tools/hris/payments/list-hris-payments.d.ts +0 -32
- package/tools/hris/payments/list-hris-payments.d.ts.map +0 -1
- package/tools/hris/payments/list-hris-payments.js +0 -35
- package/tools/hris/payments/list-hris-payments.js.map +0 -1
- package/tools/hris/payments/list-hris-payments.mjs +0 -31
- package/tools/hris/payments/list-hris-payments.mjs.map +0 -1
- package/tools/index.d.mts +0 -21
- package/tools/index.d.mts.map +0 -1
- package/tools/index.d.ts +0 -21
- package/tools/index.d.ts.map +0 -1
- package/tools/index.js +0 -146
- package/tools/index.js.map +0 -1
- package/tools/index.mjs +0 -139
- package/tools/index.mjs.map +0 -1
- package/tools/jobs/automated/create-jobs-automated.d.mts +0 -32
- package/tools/jobs/automated/create-jobs-automated.d.mts.map +0 -1
- package/tools/jobs/automated/create-jobs-automated.d.ts +0 -32
- package/tools/jobs/automated/create-jobs-automated.d.ts.map +0 -1
- package/tools/jobs/automated/create-jobs-automated.js +0 -55
- package/tools/jobs/automated/create-jobs-automated.js.map +0 -1
- package/tools/jobs/automated/create-jobs-automated.mjs +0 -51
- package/tools/jobs/automated/create-jobs-automated.mjs.map +0 -1
- package/tools/jobs/automated/list-jobs-automated.d.mts +0 -32
- package/tools/jobs/automated/list-jobs-automated.d.mts.map +0 -1
- package/tools/jobs/automated/list-jobs-automated.d.ts +0 -32
- package/tools/jobs/automated/list-jobs-automated.d.ts.map +0 -1
- package/tools/jobs/automated/list-jobs-automated.js +0 -33
- package/tools/jobs/automated/list-jobs-automated.js.map +0 -1
- package/tools/jobs/automated/list-jobs-automated.mjs +0 -29
- package/tools/jobs/automated/list-jobs-automated.mjs.map +0 -1
- package/tools/jobs/automated/retrieve-jobs-automated.d.mts +0 -32
- package/tools/jobs/automated/retrieve-jobs-automated.d.mts.map +0 -1
- package/tools/jobs/automated/retrieve-jobs-automated.d.ts +0 -32
- package/tools/jobs/automated/retrieve-jobs-automated.d.ts.map +0 -1
- package/tools/jobs/automated/retrieve-jobs-automated.js +0 -28
- package/tools/jobs/automated/retrieve-jobs-automated.js.map +0 -1
- package/tools/jobs/automated/retrieve-jobs-automated.mjs +0 -24
- package/tools/jobs/automated/retrieve-jobs-automated.mjs.map +0 -1
- package/tools/jobs/manual/retrieve-jobs-manual.d.mts +0 -32
- package/tools/jobs/manual/retrieve-jobs-manual.d.mts.map +0 -1
- package/tools/jobs/manual/retrieve-jobs-manual.d.ts +0 -32
- package/tools/jobs/manual/retrieve-jobs-manual.d.ts.map +0 -1
- package/tools/jobs/manual/retrieve-jobs-manual.js +0 -28
- package/tools/jobs/manual/retrieve-jobs-manual.js.map +0 -1
- package/tools/jobs/manual/retrieve-jobs-manual.mjs +0 -24
- package/tools/jobs/manual/retrieve-jobs-manual.mjs.map +0 -1
- package/tools/payroll/pay-groups/list-payroll-pay-groups.d.mts +0 -32
- package/tools/payroll/pay-groups/list-payroll-pay-groups.d.mts.map +0 -1
- package/tools/payroll/pay-groups/list-payroll-pay-groups.d.ts +0 -32
- package/tools/payroll/pay-groups/list-payroll-pay-groups.d.ts.map +0 -1
- package/tools/payroll/pay-groups/list-payroll-pay-groups.js +0 -34
- package/tools/payroll/pay-groups/list-payroll-pay-groups.js.map +0 -1
- package/tools/payroll/pay-groups/list-payroll-pay-groups.mjs +0 -30
- package/tools/payroll/pay-groups/list-payroll-pay-groups.mjs.map +0 -1
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.mts +0 -32
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.mts.map +0 -1
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.ts +0 -32
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.ts.map +0 -1
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.js +0 -28
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.js.map +0 -1
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.mjs +0 -24
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.mjs.map +0 -1
- package/tools/providers/list-providers.d.mts +0 -32
- package/tools/providers/list-providers.d.mts.map +0 -1
- package/tools/providers/list-providers.d.ts +0 -32
- package/tools/providers/list-providers.d.ts.map +0 -1
- package/tools/providers/list-providers.js +0 -23
- package/tools/providers/list-providers.js.map +0 -1
- package/tools/providers/list-providers.mjs +0 -19
- package/tools/providers/list-providers.mjs.map +0 -1
- package/tools/request-forwarding/forward-request-forwarding.d.mts +0 -32
- package/tools/request-forwarding/forward-request-forwarding.d.mts.map +0 -1
- package/tools/request-forwarding/forward-request-forwarding.d.ts +0 -32
- package/tools/request-forwarding/forward-request-forwarding.d.ts.map +0 -1
- package/tools/request-forwarding/forward-request-forwarding.js +0 -45
- package/tools/request-forwarding/forward-request-forwarding.js.map +0 -1
- package/tools/request-forwarding/forward-request-forwarding.mjs +0 -41
- package/tools/request-forwarding/forward-request-forwarding.mjs.map +0 -1
- package/tools/sandbox/company/update-sandbox-company.d.mts +0 -32
- package/tools/sandbox/company/update-sandbox-company.d.mts.map +0 -1
- package/tools/sandbox/company/update-sandbox-company.d.ts +0 -32
- package/tools/sandbox/company/update-sandbox-company.d.ts.map +0 -1
- package/tools/sandbox/company/update-sandbox-company.js +0 -159
- package/tools/sandbox/company/update-sandbox-company.js.map +0 -1
- package/tools/sandbox/company/update-sandbox-company.mjs +0 -155
- package/tools/sandbox/company/update-sandbox-company.mjs.map +0 -1
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.mts +0 -32
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.mts.map +0 -1
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.ts +0 -32
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.ts.map +0 -1
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.js +0 -44
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.js.map +0 -1
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.mjs +0 -40
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.mjs.map +0 -1
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.mts +0 -32
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.mts.map +0 -1
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.ts +0 -32
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.ts.map +0 -1
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.js +0 -35
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.js.map +0 -1
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.mjs +0 -31
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.mjs.map +0 -1
- package/tools/sandbox/connections/create-sandbox-connections.d.mts +0 -32
- package/tools/sandbox/connections/create-sandbox-connections.d.mts.map +0 -1
- package/tools/sandbox/connections/create-sandbox-connections.d.ts +0 -32
- package/tools/sandbox/connections/create-sandbox-connections.d.ts.map +0 -1
- package/tools/sandbox/connections/create-sandbox-connections.js +0 -44
- package/tools/sandbox/connections/create-sandbox-connections.js.map +0 -1
- package/tools/sandbox/connections/create-sandbox-connections.mjs +0 -40
- package/tools/sandbox/connections/create-sandbox-connections.mjs.map +0 -1
- package/tools/sandbox/directory/create-sandbox-directory.d.mts +0 -32
- package/tools/sandbox/directory/create-sandbox-directory.d.mts.map +0 -1
- package/tools/sandbox/directory/create-sandbox-directory.d.ts +0 -32
- package/tools/sandbox/directory/create-sandbox-directory.d.ts.map +0 -1
- package/tools/sandbox/directory/create-sandbox-directory.js +0 -292
- package/tools/sandbox/directory/create-sandbox-directory.js.map +0 -1
- package/tools/sandbox/directory/create-sandbox-directory.mjs +0 -288
- package/tools/sandbox/directory/create-sandbox-directory.mjs.map +0 -1
- package/tools/sandbox/employment/update-sandbox-employment.d.mts +0 -32
- package/tools/sandbox/employment/update-sandbox-employment.d.mts.map +0 -1
- package/tools/sandbox/employment/update-sandbox-employment.d.ts +0 -32
- package/tools/sandbox/employment/update-sandbox-employment.d.ts.map +0 -1
- package/tools/sandbox/employment/update-sandbox-employment.js +0 -215
- package/tools/sandbox/employment/update-sandbox-employment.js.map +0 -1
- package/tools/sandbox/employment/update-sandbox-employment.mjs +0 -211
- package/tools/sandbox/employment/update-sandbox-employment.mjs.map +0 -1
- package/tools/sandbox/individual/update-sandbox-individual.d.mts +0 -32
- package/tools/sandbox/individual/update-sandbox-individual.d.mts.map +0 -1
- package/tools/sandbox/individual/update-sandbox-individual.d.ts +0 -32
- package/tools/sandbox/individual/update-sandbox-individual.d.ts.map +0 -1
- package/tools/sandbox/individual/update-sandbox-individual.js +0 -149
- package/tools/sandbox/individual/update-sandbox-individual.js.map +0 -1
- package/tools/sandbox/individual/update-sandbox-individual.mjs +0 -145
- package/tools/sandbox/individual/update-sandbox-individual.mjs.map +0 -1
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.mts +0 -32
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.mts.map +0 -1
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.ts +0 -32
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.ts.map +0 -1
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.js +0 -23
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.js.map +0 -1
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.mjs +0 -19
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.mjs.map +0 -1
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.mts +0 -32
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.mts.map +0 -1
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.ts +0 -32
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.ts.map +0 -1
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.js +0 -33
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.js.map +0 -1
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.mjs +0 -29
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.mjs.map +0 -1
- package/tools/sandbox/jobs/create-sandbox-jobs.d.mts +0 -32
- package/tools/sandbox/jobs/create-sandbox-jobs.d.mts.map +0 -1
- package/tools/sandbox/jobs/create-sandbox-jobs.d.ts +0 -32
- package/tools/sandbox/jobs/create-sandbox-jobs.d.ts.map +0 -1
- package/tools/sandbox/jobs/create-sandbox-jobs.js +0 -30
- package/tools/sandbox/jobs/create-sandbox-jobs.js.map +0 -1
- package/tools/sandbox/jobs/create-sandbox-jobs.mjs +0 -26
- package/tools/sandbox/jobs/create-sandbox-jobs.mjs.map +0 -1
- package/tools/sandbox/payment/create-sandbox-payment.d.mts +0 -32
- package/tools/sandbox/payment/create-sandbox-payment.d.mts.map +0 -1
- package/tools/sandbox/payment/create-sandbox-payment.d.ts +0 -32
- package/tools/sandbox/payment/create-sandbox-payment.d.ts.map +0 -1
- package/tools/sandbox/payment/create-sandbox-payment.js +0 -300
- package/tools/sandbox/payment/create-sandbox-payment.js.map +0 -1
- package/tools/sandbox/payment/create-sandbox-payment.mjs +0 -296
- package/tools/sandbox/payment/create-sandbox-payment.mjs.map +0 -1
- package/tools.d.mts +0 -2
- package/tools.d.mts.map +0 -1
- package/tools.d.ts +0 -2
- package/tools.d.ts.map +0 -1
- package/tools.js +0 -18
- package/tools.js.map +0 -1
- package/tools.mjs +0 -2
- package/tools.mjs.map +0 -1
package/options.mjs
CHANGED
|
@@ -1,331 +1,65 @@
|
|
|
1
|
+
import qs from 'qs';
|
|
1
2
|
import yargs from 'yargs';
|
|
2
3
|
import { hideBin } from 'yargs/helpers';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
// Note that these could change over time as models get better, so this is
|
|
6
|
-
// a best effort.
|
|
7
|
-
const CLIENT_PRESETS = {
|
|
8
|
-
'openai-agents': {
|
|
9
|
-
topLevelUnions: false,
|
|
10
|
-
validJson: true,
|
|
11
|
-
refs: true,
|
|
12
|
-
unions: true,
|
|
13
|
-
formats: true,
|
|
14
|
-
toolNameLength: undefined,
|
|
15
|
-
},
|
|
16
|
-
claude: {
|
|
17
|
-
topLevelUnions: true,
|
|
18
|
-
validJson: false,
|
|
19
|
-
refs: true,
|
|
20
|
-
unions: true,
|
|
21
|
-
formats: true,
|
|
22
|
-
toolNameLength: undefined,
|
|
23
|
-
},
|
|
24
|
-
'claude-code': {
|
|
25
|
-
topLevelUnions: false,
|
|
26
|
-
validJson: true,
|
|
27
|
-
refs: true,
|
|
28
|
-
unions: true,
|
|
29
|
-
formats: true,
|
|
30
|
-
toolNameLength: undefined,
|
|
31
|
-
},
|
|
32
|
-
cursor: {
|
|
33
|
-
topLevelUnions: false,
|
|
34
|
-
validJson: true,
|
|
35
|
-
refs: false,
|
|
36
|
-
unions: false,
|
|
37
|
-
formats: false,
|
|
38
|
-
toolNameLength: 50,
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
const CAPABILITY_CHOICES = [
|
|
42
|
-
'top-level-unions',
|
|
43
|
-
'valid-json',
|
|
44
|
-
'refs',
|
|
45
|
-
'unions',
|
|
46
|
-
'formats',
|
|
47
|
-
'tool-name-length',
|
|
48
|
-
];
|
|
49
|
-
function parseCapabilityValue(cap) {
|
|
50
|
-
if (cap.startsWith('tool-name-length=')) {
|
|
51
|
-
const parts = cap.split('=');
|
|
52
|
-
if (parts.length === 2) {
|
|
53
|
-
const length = parseInt(parts[1], 10);
|
|
54
|
-
if (!isNaN(length)) {
|
|
55
|
-
return { name: 'tool-name-length', value: length };
|
|
56
|
-
}
|
|
57
|
-
throw new Error(`Invalid tool-name-length value: ${parts[1]}. Expected a number.`);
|
|
58
|
-
}
|
|
59
|
-
throw new Error(`Invalid format for tool-name-length. Expected tool-name-length=N.`);
|
|
60
|
-
}
|
|
61
|
-
if (!CAPABILITY_CHOICES.includes(cap)) {
|
|
62
|
-
throw new Error(`Unknown capability: ${cap}. Valid capabilities are: ${CAPABILITY_CHOICES.join(', ')}`);
|
|
63
|
-
}
|
|
64
|
-
return { name: cap };
|
|
65
|
-
}
|
|
66
|
-
export function parseOptions() {
|
|
4
|
+
import z from 'zod';
|
|
5
|
+
export function parseCLIOptions() {
|
|
67
6
|
const opts = yargs(hideBin(process.argv))
|
|
68
7
|
.option('tools', {
|
|
69
8
|
type: 'string',
|
|
70
9
|
array: true,
|
|
71
|
-
choices: ['
|
|
10
|
+
choices: ['code', 'docs'],
|
|
72
11
|
description: 'Use dynamic tools or all tools',
|
|
73
12
|
})
|
|
74
13
|
.option('no-tools', {
|
|
75
14
|
type: 'string',
|
|
76
15
|
array: true,
|
|
77
|
-
choices: ['
|
|
16
|
+
choices: ['code', 'docs'],
|
|
78
17
|
description: 'Do not use any dynamic or all tools',
|
|
79
18
|
})
|
|
80
|
-
.option('
|
|
81
|
-
type: 'string',
|
|
82
|
-
array: true,
|
|
83
|
-
description: 'Include tools matching the specified names',
|
|
84
|
-
})
|
|
85
|
-
.option('resource', {
|
|
86
|
-
type: 'string',
|
|
87
|
-
array: true,
|
|
88
|
-
description: 'Include tools matching the specified resources',
|
|
89
|
-
})
|
|
90
|
-
.option('operation', {
|
|
91
|
-
type: 'string',
|
|
92
|
-
array: true,
|
|
93
|
-
choices: ['read', 'write'],
|
|
94
|
-
description: 'Include tools matching the specified operations',
|
|
95
|
-
})
|
|
96
|
-
.option('tag', {
|
|
19
|
+
.option('transport', {
|
|
97
20
|
type: 'string',
|
|
98
|
-
|
|
99
|
-
|
|
21
|
+
choices: ['stdio', 'http'],
|
|
22
|
+
default: 'stdio',
|
|
23
|
+
description: 'What transport to use; stdio for local servers or http for remote servers',
|
|
100
24
|
})
|
|
101
|
-
.option('
|
|
102
|
-
type: '
|
|
103
|
-
|
|
104
|
-
description: 'Exclude tools matching the specified names',
|
|
25
|
+
.option('port', {
|
|
26
|
+
type: 'number',
|
|
27
|
+
description: 'Port to serve on if using http transport',
|
|
105
28
|
})
|
|
106
|
-
.option('
|
|
29
|
+
.option('socket', {
|
|
107
30
|
type: 'string',
|
|
108
|
-
|
|
109
|
-
description: 'Exclude tools matching the specified resources',
|
|
110
|
-
})
|
|
111
|
-
.option('no-operation', {
|
|
112
|
-
type: 'string',
|
|
113
|
-
array: true,
|
|
114
|
-
description: 'Exclude tools matching the specified operations',
|
|
115
|
-
})
|
|
116
|
-
.option('no-tag', {
|
|
117
|
-
type: 'string',
|
|
118
|
-
array: true,
|
|
119
|
-
description: 'Exclude tools with the specified tags',
|
|
120
|
-
})
|
|
121
|
-
.option('list', {
|
|
122
|
-
type: 'boolean',
|
|
123
|
-
description: 'List all tools and exit',
|
|
124
|
-
})
|
|
125
|
-
.option('client', {
|
|
126
|
-
type: 'string',
|
|
127
|
-
choices: Object.keys(CLIENT_PRESETS),
|
|
128
|
-
description: 'Specify the MCP client being used',
|
|
129
|
-
})
|
|
130
|
-
.option('capability', {
|
|
131
|
-
type: 'string',
|
|
132
|
-
array: true,
|
|
133
|
-
description: 'Specify client capabilities',
|
|
134
|
-
coerce: (values) => {
|
|
135
|
-
return values.flatMap((v) => v.split(','));
|
|
136
|
-
},
|
|
137
|
-
})
|
|
138
|
-
.option('no-capability', {
|
|
139
|
-
type: 'string',
|
|
140
|
-
array: true,
|
|
141
|
-
description: 'Unset client capabilities',
|
|
142
|
-
choices: CAPABILITY_CHOICES,
|
|
143
|
-
coerce: (values) => {
|
|
144
|
-
return values.flatMap((v) => v.split(','));
|
|
145
|
-
},
|
|
146
|
-
})
|
|
147
|
-
.option('describe-capabilities', {
|
|
148
|
-
type: 'boolean',
|
|
149
|
-
description: 'Print detailed explanation of client capabilities and exit',
|
|
31
|
+
description: 'Unix socket to serve on if using http transport',
|
|
150
32
|
})
|
|
151
33
|
.help();
|
|
152
|
-
for (const [command, desc] of examples()) {
|
|
153
|
-
opts.example(command, desc);
|
|
154
|
-
}
|
|
155
34
|
const argv = opts.parseSync();
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
const filters = [];
|
|
162
|
-
// Helper function to support comma-separated values
|
|
163
|
-
const splitValues = (values) => {
|
|
164
|
-
if (!values)
|
|
165
|
-
return [];
|
|
166
|
-
return values.flatMap((v) => v.split(','));
|
|
167
|
-
};
|
|
168
|
-
for (const tag of splitValues(argv.tag)) {
|
|
169
|
-
filters.push({ type: 'tag', op: 'include', value: tag });
|
|
170
|
-
}
|
|
171
|
-
for (const tag of splitValues(argv.noTag)) {
|
|
172
|
-
filters.push({ type: 'tag', op: 'exclude', value: tag });
|
|
173
|
-
}
|
|
174
|
-
for (const resource of splitValues(argv.resource)) {
|
|
175
|
-
filters.push({ type: 'resource', op: 'include', value: resource });
|
|
176
|
-
}
|
|
177
|
-
for (const resource of splitValues(argv.noResource)) {
|
|
178
|
-
filters.push({ type: 'resource', op: 'exclude', value: resource });
|
|
179
|
-
}
|
|
180
|
-
for (const tool of splitValues(argv.tool)) {
|
|
181
|
-
filters.push({ type: 'tool', op: 'include', value: tool });
|
|
182
|
-
}
|
|
183
|
-
for (const tool of splitValues(argv.noTool)) {
|
|
184
|
-
filters.push({ type: 'tool', op: 'exclude', value: tool });
|
|
185
|
-
}
|
|
186
|
-
for (const operation of splitValues(argv.operation)) {
|
|
187
|
-
filters.push({ type: 'operation', op: 'include', value: operation });
|
|
188
|
-
}
|
|
189
|
-
for (const operation of splitValues(argv.noOperation)) {
|
|
190
|
-
filters.push({ type: 'operation', op: 'exclude', value: operation });
|
|
191
|
-
}
|
|
192
|
-
// Parse client capabilities
|
|
193
|
-
const clientCapabilities = {
|
|
194
|
-
topLevelUnions: true,
|
|
195
|
-
validJson: true,
|
|
196
|
-
refs: true,
|
|
197
|
-
unions: true,
|
|
198
|
-
formats: true,
|
|
199
|
-
toolNameLength: undefined,
|
|
200
|
-
};
|
|
201
|
-
// Apply client preset if specified
|
|
202
|
-
if (typeof argv.client === 'string') {
|
|
203
|
-
const clientKey = argv.client;
|
|
204
|
-
if (CLIENT_PRESETS[clientKey]) {
|
|
205
|
-
Object.assign(clientCapabilities, CLIENT_PRESETS[clientKey]);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
// Apply individual capability overrides
|
|
209
|
-
if (Array.isArray(argv.capability)) {
|
|
210
|
-
for (const cap of argv.capability) {
|
|
211
|
-
const parsedCap = parseCapabilityValue(cap);
|
|
212
|
-
if (parsedCap.name === 'top-level-unions') {
|
|
213
|
-
clientCapabilities.topLevelUnions = true;
|
|
214
|
-
}
|
|
215
|
-
else if (parsedCap.name === 'valid-json') {
|
|
216
|
-
clientCapabilities.validJson = true;
|
|
217
|
-
}
|
|
218
|
-
else if (parsedCap.name === 'refs') {
|
|
219
|
-
clientCapabilities.refs = true;
|
|
220
|
-
}
|
|
221
|
-
else if (parsedCap.name === 'unions') {
|
|
222
|
-
clientCapabilities.unions = true;
|
|
223
|
-
}
|
|
224
|
-
else if (parsedCap.name === 'formats') {
|
|
225
|
-
clientCapabilities.formats = true;
|
|
226
|
-
}
|
|
227
|
-
else if (parsedCap.name === 'tool-name-length') {
|
|
228
|
-
clientCapabilities.toolNameLength = parsedCap.value;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
// Handle no-capability options to unset capabilities
|
|
233
|
-
if (Array.isArray(argv.noCapability)) {
|
|
234
|
-
for (const cap of argv.noCapability) {
|
|
235
|
-
if (cap === 'top-level-unions') {
|
|
236
|
-
clientCapabilities.topLevelUnions = false;
|
|
237
|
-
}
|
|
238
|
-
else if (cap === 'valid-json') {
|
|
239
|
-
clientCapabilities.validJson = false;
|
|
240
|
-
}
|
|
241
|
-
else if (cap === 'refs') {
|
|
242
|
-
clientCapabilities.refs = false;
|
|
243
|
-
}
|
|
244
|
-
else if (cap === 'unions') {
|
|
245
|
-
clientCapabilities.unions = false;
|
|
246
|
-
}
|
|
247
|
-
else if (cap === 'formats') {
|
|
248
|
-
clientCapabilities.formats = false;
|
|
249
|
-
}
|
|
250
|
-
else if (cap === 'tool-name-length') {
|
|
251
|
-
clientCapabilities.toolNameLength = undefined;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
const explicitTools = Boolean(argv.tools || argv.noTools);
|
|
256
|
-
const includeDynamicTools = explicitTools ? argv.tools?.includes('dynamic') && !argv.noTools?.includes('dynamic') : undefined;
|
|
257
|
-
const includeAllTools = explicitTools ? argv.tools?.includes('all') && !argv.noTools?.includes('all') : undefined;
|
|
35
|
+
const shouldIncludeToolType = (toolType) => argv.noTools?.includes(toolType) ? false
|
|
36
|
+
: argv.tools?.includes(toolType) ? true
|
|
37
|
+
: undefined;
|
|
38
|
+
const includeDocsTools = shouldIncludeToolType('docs');
|
|
39
|
+
const transport = argv.transport;
|
|
258
40
|
return {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
list: argv.list || false,
|
|
41
|
+
includeDocsTools,
|
|
42
|
+
transport,
|
|
43
|
+
port: argv.port,
|
|
44
|
+
socket: argv.socket,
|
|
264
45
|
};
|
|
265
46
|
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
Some clients/LLMs may incorrectly send arguments as a JSON-encoded string instead of a proper JSON object. If a client *has* this capability, the MCP server will attempt to parse string values as JSON if the initial validation against the schema fails.
|
|
284
|
-
|
|
285
|
-
# unions
|
|
286
|
-
Some clients/LLMs do not support union types (anyOf) in JSON schemas. If a client lacks this capability, the MCP server removes all anyOf fields and uses only the first variant as the schema.
|
|
287
|
-
|
|
288
|
-
# formats
|
|
289
|
-
Some clients/LLMs do not support the 'format' keyword in JSON Schema specifications. If a client lacks this capability, the MCP server removes all format fields and appends the format information to the field's description in parentheses.
|
|
290
|
-
|
|
291
|
-
# tool-name-length=N
|
|
292
|
-
Some clients/LLMs impose a maximum length on tool names. If this capability is set, the MCP server will automatically truncate tool names exceeding the specified length (N), ensuring uniqueness by appending numbers if necessary.
|
|
293
|
-
|
|
294
|
-
Client Presets (--client):
|
|
295
|
-
Presets like '--client=openai-agents' or '--client=cursor' automatically configure these capabilities based on current known limitations of those clients, simplifying setup.
|
|
296
|
-
|
|
297
|
-
Current presets:
|
|
298
|
-
${JSON.stringify(CLIENT_PRESETS, null, 2)}
|
|
299
|
-
`;
|
|
300
|
-
}
|
|
301
|
-
function examples() {
|
|
302
|
-
const firstEndpoint = endpoints[0];
|
|
303
|
-
const secondEndpoint = endpoints.find((e) => e.metadata.resource !== firstEndpoint.metadata.resource) || endpoints[1];
|
|
304
|
-
const tag = endpoints.find((e) => e.metadata.tags.length > 0)?.metadata.tags[0];
|
|
305
|
-
const otherEndpoint = secondEndpoint || firstEndpoint;
|
|
306
|
-
return [
|
|
307
|
-
[
|
|
308
|
-
`--tool="${firstEndpoint.tool.name}" ${secondEndpoint ? `--tool="${secondEndpoint.tool.name}"` : ''}`,
|
|
309
|
-
'Include tools by name',
|
|
310
|
-
],
|
|
311
|
-
[
|
|
312
|
-
`--resource="${firstEndpoint.metadata.resource}" --operation="read"`,
|
|
313
|
-
'Filter by resource and operation',
|
|
314
|
-
],
|
|
315
|
-
[
|
|
316
|
-
`--resource="${otherEndpoint.metadata.resource}*" --no-tool="${otherEndpoint.tool.name}"`,
|
|
317
|
-
'Use resource wildcards and exclusions',
|
|
318
|
-
],
|
|
319
|
-
[`--client="cursor"`, 'Adjust schemas to be more compatible with Cursor'],
|
|
320
|
-
[
|
|
321
|
-
`--capability="top-level-unions" --capability="tool-name-length=40"`,
|
|
322
|
-
'Specify individual client capabilities',
|
|
323
|
-
],
|
|
324
|
-
[
|
|
325
|
-
`--client="cursor" --no-capability="tool-name-length"`,
|
|
326
|
-
'Use cursor client preset but remove tool name length limit',
|
|
327
|
-
],
|
|
328
|
-
...(tag ? [[`--tag="${tag}"`, 'Filter based on tags']] : []),
|
|
329
|
-
];
|
|
47
|
+
const coerceArray = (zodType) => z.preprocess((val) => Array.isArray(val) ? val
|
|
48
|
+
: val ? [val]
|
|
49
|
+
: val, z.array(zodType).optional());
|
|
50
|
+
const QueryOptions = z.object({
|
|
51
|
+
tools: coerceArray(z.enum(['code', 'docs'])).describe('Specify which MCP tools to use'),
|
|
52
|
+
no_tools: coerceArray(z.enum(['code', 'docs'])).describe('Specify which MCP tools to not use.'),
|
|
53
|
+
tool: coerceArray(z.string()).describe('Include tools matching the specified names'),
|
|
54
|
+
});
|
|
55
|
+
export function parseQueryOptions(defaultOptions, query) {
|
|
56
|
+
const queryObject = typeof query === 'string' ? qs.parse(query) : query;
|
|
57
|
+
const queryOptions = QueryOptions.parse(queryObject);
|
|
58
|
+
let docsTools = queryOptions.no_tools && queryOptions.no_tools?.includes('docs') ? false
|
|
59
|
+
: queryOptions.tools?.includes('docs') ? true
|
|
60
|
+
: defaultOptions.includeDocsTools;
|
|
61
|
+
return {
|
|
62
|
+
includeDocsTools: docsTools,
|
|
63
|
+
};
|
|
330
64
|
}
|
|
331
65
|
//# sourceMappingURL=options.mjs.map
|
package/options.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.mjs","sourceRoot":"","sources":["src/options.ts"],"names":[],"mappings":"OAAO,
|
|
1
|
+
{"version":3,"file":"options.mjs","sourceRoot":"","sources":["src/options.ts"],"names":[],"mappings":"OAAO,EAAE,MAAM,IAAI;OACZ,KAAK,MAAM,OAAO;OAClB,EAAE,OAAO,EAAE,MAAM,eAAe;OAChC,CAAC,MAAM,KAAK;AAYnB,MAAM,UAAU,eAAe;IAC7B,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACtC,MAAM,CAAC,OAAO,EAAE;QACf,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,IAAI;QACX,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;QACzB,WAAW,EAAE,gCAAgC;KAC9C,CAAC;SACD,MAAM,CAAC,UAAU,EAAE;QAClB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,IAAI;QACX,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;QACzB,WAAW,EAAE,qCAAqC;KACnD,CAAC;SACD,MAAM,CAAC,WAAW,EAAE;QACnB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAC1B,OAAO,EAAE,OAAO;QAChB,WAAW,EAAE,2EAA2E;KACzF,CAAC;SACD,MAAM,CAAC,MAAM,EAAE;QACd,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,0CAA0C;KACxD,CAAC;SACD,MAAM,CAAC,QAAQ,EAAE;QAChB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,iDAAiD;KAC/D,CAAC;SACD,IAAI,EAAE,CAAC;IAEV,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;IAE9B,MAAM,qBAAqB,GAAG,CAAC,QAAyB,EAAE,EAAE,CAC1D,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK;QACxC,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI;YACvC,CAAC,CAAC,SAAS,CAAC;IAEd,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAEvD,MAAM,SAAS,GAAG,IAAI,CAAC,SAA6B,CAAC;IAErD,OAAO;QACL,gBAAgB;QAChB,SAAS;QACT,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,MAAM,EAAE,IAAI,CAAC,MAAM;KACpB,CAAC;AACJ,CAAC;AAED,MAAM,WAAW,GAAG,CAAyB,OAAU,EAAE,EAAE,CACzD,CAAC,CAAC,UAAU,CACV,CAAC,GAAG,EAAE,EAAE,CACN,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG;IACxB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;QACb,CAAC,CAAC,GAAG,EACP,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAC5B,CAAC;AAEJ,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IACvF,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,qCAAqC,CAAC;IAC/F,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,4CAA4C,CAAC;CACrF,CAAC,CAAC;AAEH,MAAM,UAAU,iBAAiB,CAAC,cAA0B,EAAE,KAAc;IAC1E,MAAM,WAAW,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IACxE,MAAM,YAAY,GAAG,YAAY,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAErD,IAAI,SAAS,GACX,YAAY,CAAC,QAAQ,IAAI,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK;QACxE,CAAC,CAAC,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI;YAC7C,CAAC,CAAC,cAAc,CAAC,gBAAgB,CAAC;IAEpC,OAAO;QACL,gBAAgB,EAAE,SAAS;KAC5B,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryfinch/finch-api-mcp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "The official MCP Server for the Finch API",
|
|
5
5
|
"author": "Finch <founders@tryfinch.com>",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
"license": "Apache-2.0",
|
|
16
16
|
"packageManager": "yarn@1.22.22",
|
|
17
17
|
"private": false,
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
18
21
|
"scripts": {
|
|
19
22
|
"test": "jest",
|
|
20
23
|
"build": "bash ./build",
|
|
@@ -24,12 +27,20 @@
|
|
|
24
27
|
"fix": "eslint --fix --ext ts,js ."
|
|
25
28
|
},
|
|
26
29
|
"dependencies": {
|
|
27
|
-
"@tryfinch/finch-api": "^
|
|
28
|
-
"@modelcontextprotocol/sdk": "^1.6.1",
|
|
29
|
-
"yargs": "^17.7.2",
|
|
30
|
+
"@tryfinch/finch-api": "^8.0.0",
|
|
30
31
|
"@cloudflare/cabidela": "^0.2.4",
|
|
31
|
-
"
|
|
32
|
-
"
|
|
32
|
+
"@modelcontextprotocol/sdk": "^1.24.0",
|
|
33
|
+
"@valtown/deno-http-worker": "^0.0.21",
|
|
34
|
+
"cors": "^2.8.5",
|
|
35
|
+
"express": "^5.1.0",
|
|
36
|
+
"fuse.js": "^7.1.0",
|
|
37
|
+
"jq-web": "https://github.com/stainless-api/jq-web/releases/download/v0.8.8/jq-web.tar.gz",
|
|
38
|
+
"qs": "^6.14.0",
|
|
39
|
+
"typescript": "5.8.3",
|
|
40
|
+
"yargs": "^17.7.2",
|
|
41
|
+
"zod": "^3.25.20",
|
|
42
|
+
"zod-to-json-schema": "^3.24.5",
|
|
43
|
+
"zod-validation-error": "^4.0.1"
|
|
33
44
|
},
|
|
34
45
|
"bin": {
|
|
35
46
|
"mcp-server": "./index.js"
|
|
@@ -40,14 +51,112 @@
|
|
|
40
51
|
},
|
|
41
52
|
"exports": {
|
|
42
53
|
".": {
|
|
43
|
-
"require":
|
|
54
|
+
"require": {
|
|
55
|
+
"types": "./index.d.ts",
|
|
56
|
+
"default": "./index.js"
|
|
57
|
+
},
|
|
58
|
+
"types": "./index.d.mts",
|
|
44
59
|
"default": "./index.mjs"
|
|
45
60
|
},
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
61
|
+
"./code-tool-types": {
|
|
62
|
+
"import": "./code-tool-types.mjs",
|
|
63
|
+
"require": "./code-tool-types.js"
|
|
64
|
+
},
|
|
65
|
+
"./code-tool-types.js": {
|
|
66
|
+
"default": "./code-tool-types.js"
|
|
67
|
+
},
|
|
68
|
+
"./code-tool-types.mjs": {
|
|
69
|
+
"default": "./code-tool-types.mjs"
|
|
70
|
+
},
|
|
71
|
+
"./code-tool": {
|
|
72
|
+
"import": "./code-tool.mjs",
|
|
73
|
+
"require": "./code-tool.js"
|
|
74
|
+
},
|
|
75
|
+
"./code-tool.js": {
|
|
76
|
+
"default": "./code-tool.js"
|
|
77
|
+
},
|
|
78
|
+
"./code-tool.mjs": {
|
|
79
|
+
"default": "./code-tool.mjs"
|
|
80
|
+
},
|
|
81
|
+
"./docs-search-tool": {
|
|
82
|
+
"import": "./docs-search-tool.mjs",
|
|
83
|
+
"require": "./docs-search-tool.js"
|
|
84
|
+
},
|
|
85
|
+
"./docs-search-tool.js": {
|
|
86
|
+
"default": "./docs-search-tool.js"
|
|
87
|
+
},
|
|
88
|
+
"./docs-search-tool.mjs": {
|
|
89
|
+
"default": "./docs-search-tool.mjs"
|
|
90
|
+
},
|
|
91
|
+
"./headers": {
|
|
92
|
+
"import": "./headers.mjs",
|
|
93
|
+
"require": "./headers.js"
|
|
94
|
+
},
|
|
95
|
+
"./headers.js": {
|
|
96
|
+
"default": "./headers.js"
|
|
97
|
+
},
|
|
98
|
+
"./headers.mjs": {
|
|
99
|
+
"default": "./headers.mjs"
|
|
100
|
+
},
|
|
101
|
+
"./http": {
|
|
102
|
+
"import": "./http.mjs",
|
|
103
|
+
"require": "./http.js"
|
|
104
|
+
},
|
|
105
|
+
"./http.js": {
|
|
106
|
+
"default": "./http.js"
|
|
107
|
+
},
|
|
108
|
+
"./http.mjs": {
|
|
109
|
+
"default": "./http.mjs"
|
|
110
|
+
},
|
|
111
|
+
"./index": {
|
|
112
|
+
"import": "./index.mjs",
|
|
113
|
+
"require": "./index.js"
|
|
114
|
+
},
|
|
115
|
+
"./index.js": {
|
|
116
|
+
"default": "./index.js"
|
|
117
|
+
},
|
|
118
|
+
"./index.mjs": {
|
|
119
|
+
"default": "./index.mjs"
|
|
120
|
+
},
|
|
121
|
+
"./options": {
|
|
122
|
+
"import": "./options.mjs",
|
|
123
|
+
"require": "./options.js"
|
|
124
|
+
},
|
|
125
|
+
"./options.js": {
|
|
126
|
+
"default": "./options.js"
|
|
127
|
+
},
|
|
128
|
+
"./options.mjs": {
|
|
129
|
+
"default": "./options.mjs"
|
|
130
|
+
},
|
|
131
|
+
"./server": {
|
|
132
|
+
"import": "./server.mjs",
|
|
133
|
+
"require": "./server.js"
|
|
134
|
+
},
|
|
135
|
+
"./server.js": {
|
|
136
|
+
"default": "./server.js"
|
|
137
|
+
},
|
|
138
|
+
"./server.mjs": {
|
|
139
|
+
"default": "./server.mjs"
|
|
140
|
+
},
|
|
141
|
+
"./stdio": {
|
|
142
|
+
"import": "./stdio.mjs",
|
|
143
|
+
"require": "./stdio.js"
|
|
144
|
+
},
|
|
145
|
+
"./stdio.js": {
|
|
146
|
+
"default": "./stdio.js"
|
|
147
|
+
},
|
|
148
|
+
"./stdio.mjs": {
|
|
149
|
+
"default": "./stdio.mjs"
|
|
150
|
+
},
|
|
151
|
+
"./types": {
|
|
152
|
+
"import": "./types.mjs",
|
|
153
|
+
"require": "./types.js"
|
|
154
|
+
},
|
|
155
|
+
"./types.js": {
|
|
156
|
+
"default": "./types.js"
|
|
157
|
+
},
|
|
158
|
+
"./types.mjs": {
|
|
159
|
+
"default": "./types.mjs"
|
|
51
160
|
}
|
|
52
161
|
}
|
|
53
162
|
}
|
package/server.d.mts
CHANGED
|
@@ -1,38 +1,30 @@
|
|
|
1
1
|
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
2
2
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
|
-
import {
|
|
4
|
-
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import { ClientOptions } from '@tryfinch/finch-api';
|
|
5
4
|
import Finch from '@tryfinch/finch-api';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
export {
|
|
5
|
+
import { McpOptions } from "./options.mjs";
|
|
6
|
+
import { HandlerFunction, McpTool } from "./types.mjs";
|
|
7
|
+
export { McpOptions } from "./options.mjs";
|
|
8
|
+
export { ClientOptions } from '@tryfinch/finch-api';
|
|
9
|
+
export declare const newMcpServer: () => McpServer;
|
|
9
10
|
export declare const server: McpServer;
|
|
10
11
|
/**
|
|
11
12
|
* Initializes the provided MCP Server with the given tools and handlers.
|
|
12
13
|
* If not provided, the default client, tools and handlers will be used.
|
|
13
14
|
*/
|
|
14
|
-
export declare function
|
|
15
|
+
export declare function initMcpServer(params: {
|
|
15
16
|
server: Server | McpServer;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
tool: Tool;
|
|
19
|
-
handler: HandlerFunction;
|
|
20
|
-
}[];
|
|
21
|
-
capabilities?: Partial<ClientCapabilities>;
|
|
17
|
+
clientOptions?: ClientOptions;
|
|
18
|
+
mcpOptions?: McpOptions;
|
|
22
19
|
}): void;
|
|
23
20
|
/**
|
|
24
21
|
* Selects the tools to include in the MCP Server based on the provided options.
|
|
25
22
|
*/
|
|
26
|
-
export declare function selectTools(
|
|
23
|
+
export declare function selectTools(options?: McpOptions): McpTool[];
|
|
27
24
|
/**
|
|
28
25
|
* Runs the provided handler with the given client and arguments.
|
|
29
26
|
*/
|
|
30
|
-
export declare function executeHandler(
|
|
31
|
-
content: {
|
|
32
|
-
type: string;
|
|
33
|
-
text: string;
|
|
34
|
-
}[];
|
|
35
|
-
}>;
|
|
27
|
+
export declare function executeHandler(handler: HandlerFunction, client: Finch, args: Record<string, unknown> | undefined): Promise<import("./types").ToolCallResult>;
|
|
36
28
|
export declare const readEnv: (env: string) => string | undefined;
|
|
37
29
|
export declare const readEnvOrError: (env: string) => string;
|
|
38
30
|
//# sourceMappingURL=server.d.mts.map
|
package/server.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.mts","sourceRoot":"","sources":["src/server.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,MAAM,2CAA2C;OAC3D,EAAE,SAAS,EAAE,MAAM,yCAAyC;
|
|
1
|
+
{"version":3,"file":"server.d.mts","sourceRoot":"","sources":["src/server.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,MAAM,2CAA2C;OAC3D,EAAE,SAAS,EAAE,MAAM,yCAAyC;OAM5D,EAAE,aAAa,EAAE,MAAM,qBAAqB;OAC5C,KAAK,MAAM,qBAAqB;OAGhC,EAAE,UAAU,EAAE;OACd,EAAE,eAAe,EAAE,OAAO,EAAE;OAE5B,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAAE,MAAM,qBAAqB;AAEnD,eAAO,MAAM,YAAY,iBAOtB,CAAC;AAGJ,eAAO,MAAM,MAAM,WAAiB,CAAC;AAErC;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE;IACpC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,QAqEA;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,EAAE,CAM3D;AAED;;GAEG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,eAAe,EACxB,MAAM,EAAE,KAAK,EACb,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,6CAG1C;AAED,eAAO,MAAM,OAAO,GAAI,KAAK,MAAM,KAAG,MAAM,GAAG,SAO9C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,KAAK,MAAM,KAAG,MAM5C,CAAC"}
|