@zavudev/sdk-mcp 0.14.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/LICENSE +201 -0
- package/README.md +313 -0
- 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 +54 -0
- package/code-tool.d.mts.map +1 -0
- package/code-tool.d.ts +54 -0
- package/code-tool.d.ts.map +1 -0
- package/code-tool.js +49 -0
- package/code-tool.js.map +1 -0
- package/code-tool.mjs +46 -0
- package/code-tool.mjs.map +1 -0
- package/compat.d.mts +58 -0
- package/compat.d.mts.map +1 -0
- package/compat.d.ts +58 -0
- package/compat.d.ts.map +1 -0
- package/compat.js +387 -0
- package/compat.js.map +1 -0
- package/compat.mjs +378 -0
- package/compat.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/dynamic-tools.d.mts +12 -0
- package/dynamic-tools.d.mts.map +1 -0
- package/dynamic-tools.d.ts +12 -0
- package/dynamic-tools.d.ts.map +1 -0
- package/dynamic-tools.js +135 -0
- package/dynamic-tools.js.map +1 -0
- package/dynamic-tools.mjs +132 -0
- package/dynamic-tools.mjs.map +1 -0
- package/filtering.d.mts +3 -0
- package/filtering.d.mts.map +1 -0
- package/filtering.d.ts +3 -0
- package/filtering.d.ts.map +1 -0
- package/filtering.js +24 -0
- package/filtering.js.map +1 -0
- package/filtering.mjs +16 -0
- package/filtering.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 +22 -0
- package/headers.js.map +1 -0
- package/headers.mjs +18 -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 +108 -0
- package/http.js.map +1 -0
- package/http.mjs +100 -0
- package/http.mjs.map +1 -0
- package/index.d.mts +3 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -0
- package/index.js +91 -0
- package/index.js.map +1 -0
- package/index.mjs +89 -0
- package/index.mjs.map +1 -0
- package/options.d.mts +20 -0
- package/options.d.mts.map +1 -0
- package/options.d.ts +20 -0
- package/options.d.ts.map +1 -0
- package/options.js +427 -0
- package/options.js.map +1 -0
- package/options.mjs +420 -0
- package/options.mjs.map +1 -0
- package/package.json +201 -0
- package/server.d.mts +35 -0
- package/server.d.mts.map +1 -0
- package/server.d.ts +35 -0
- package/server.d.ts.map +1 -0
- package/server.js +174 -0
- package/server.js.map +1 -0
- package/server.mjs +160 -0
- package/server.mjs.map +1 -0
- package/src/code-tool-types.ts +18 -0
- package/src/code-tool.ts +59 -0
- package/src/compat.ts +483 -0
- package/src/docs-search-tool.ts +59 -0
- package/src/dynamic-tools.ts +153 -0
- package/src/filtering.ts +18 -0
- package/src/headers.ts +25 -0
- package/src/http.ts +127 -0
- package/src/index.ts +108 -0
- package/src/options.ts +473 -0
- package/src/server.ts +207 -0
- package/src/stdio.ts +13 -0
- package/src/tools/broadcasts/cancel-broadcasts.ts +52 -0
- package/src/tools/broadcasts/contacts/add-broadcasts-contacts.ts +73 -0
- package/src/tools/broadcasts/contacts/list-broadcasts-contacts.ts +71 -0
- package/src/tools/broadcasts/contacts/remove-broadcasts-contacts.ts +43 -0
- package/src/tools/broadcasts/create-broadcasts.ts +134 -0
- package/src/tools/broadcasts/delete-broadcasts.ts +40 -0
- package/src/tools/broadcasts/list-broadcasts.ts +68 -0
- package/src/tools/broadcasts/progress-broadcasts.ts +54 -0
- package/src/tools/broadcasts/retrieve-broadcasts.ts +54 -0
- package/src/tools/broadcasts/send-broadcasts.ts +57 -0
- package/src/tools/broadcasts/update-broadcasts.ts +106 -0
- package/src/tools/contacts/list-contacts.ts +61 -0
- package/src/tools/contacts/retrieve-by-phone-contacts.ts +56 -0
- package/src/tools/contacts/retrieve-contacts.ts +54 -0
- package/src/tools/contacts/update-contacts.ts +61 -0
- package/src/tools/index.ts +143 -0
- package/src/tools/introspect/validate-phone-introspect.ts +52 -0
- package/src/tools/messages/list-messages.ts +78 -0
- package/src/tools/messages/react-messages.ts +59 -0
- package/src/tools/messages/retrieve-messages.ts +54 -0
- package/src/tools/messages/send-messages.ts +233 -0
- package/src/tools/phone-numbers/list-phone-numbers.ts +68 -0
- package/src/tools/phone-numbers/purchase-phone-numbers.ts +57 -0
- package/src/tools/phone-numbers/release-phone-numbers.ts +40 -0
- package/src/tools/phone-numbers/retrieve-phone-numbers.ts +56 -0
- package/src/tools/phone-numbers/search-available-phone-numbers.ts +72 -0
- package/src/tools/phone-numbers/update-phone-numbers.ts +62 -0
- package/src/tools/senders/create-senders.ts +86 -0
- package/src/tools/senders/delete-senders.ts +40 -0
- package/src/tools/senders/list-senders.ts +58 -0
- package/src/tools/senders/regenerate-webhook-secret-senders.ts +54 -0
- package/src/tools/senders/retrieve-senders.ts +54 -0
- package/src/tools/senders/update-senders.ts +90 -0
- package/src/tools/templates/create-templates.ts +74 -0
- package/src/tools/templates/delete-templates.ts +40 -0
- package/src/tools/templates/list-templates.ts +58 -0
- package/src/tools/templates/retrieve-templates.ts +54 -0
- package/src/tools/templates/submit-templates.ts +66 -0
- package/src/tools/types.ts +115 -0
- package/src/tools.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/stdio.d.mts +3 -0
- package/stdio.d.mts.map +1 -0
- package/stdio.d.ts +3 -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/tools/broadcasts/cancel-broadcasts.d.mts +51 -0
- package/tools/broadcasts/cancel-broadcasts.d.mts.map +1 -0
- package/tools/broadcasts/cancel-broadcasts.d.ts +51 -0
- package/tools/broadcasts/cancel-broadcasts.d.ts.map +1 -0
- package/tools/broadcasts/cancel-broadcasts.js +52 -0
- package/tools/broadcasts/cancel-broadcasts.js.map +1 -0
- package/tools/broadcasts/cancel-broadcasts.mjs +45 -0
- package/tools/broadcasts/cancel-broadcasts.mjs.map +1 -0
- package/tools/broadcasts/contacts/add-broadcasts-contacts.d.mts +51 -0
- package/tools/broadcasts/contacts/add-broadcasts-contacts.d.mts.map +1 -0
- package/tools/broadcasts/contacts/add-broadcasts-contacts.d.ts +51 -0
- package/tools/broadcasts/contacts/add-broadcasts-contacts.d.ts.map +1 -0
- package/tools/broadcasts/contacts/add-broadcasts-contacts.js +71 -0
- package/tools/broadcasts/contacts/add-broadcasts-contacts.js.map +1 -0
- package/tools/broadcasts/contacts/add-broadcasts-contacts.mjs +64 -0
- package/tools/broadcasts/contacts/add-broadcasts-contacts.mjs.map +1 -0
- package/tools/broadcasts/contacts/list-broadcasts-contacts.d.mts +51 -0
- package/tools/broadcasts/contacts/list-broadcasts-contacts.d.mts.map +1 -0
- package/tools/broadcasts/contacts/list-broadcasts-contacts.d.ts +51 -0
- package/tools/broadcasts/contacts/list-broadcasts-contacts.d.ts.map +1 -0
- package/tools/broadcasts/contacts/list-broadcasts-contacts.js +71 -0
- package/tools/broadcasts/contacts/list-broadcasts-contacts.js.map +1 -0
- package/tools/broadcasts/contacts/list-broadcasts-contacts.mjs +64 -0
- package/tools/broadcasts/contacts/list-broadcasts-contacts.mjs.map +1 -0
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.d.mts +51 -0
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.d.mts.map +1 -0
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.d.ts +51 -0
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.d.ts.map +1 -0
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.js +40 -0
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.js.map +1 -0
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.mjs +36 -0
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.mjs.map +1 -0
- package/tools/broadcasts/create-broadcasts.d.mts +51 -0
- package/tools/broadcasts/create-broadcasts.d.mts.map +1 -0
- package/tools/broadcasts/create-broadcasts.d.ts +51 -0
- package/tools/broadcasts/create-broadcasts.d.ts.map +1 -0
- package/tools/broadcasts/create-broadcasts.js +134 -0
- package/tools/broadcasts/create-broadcasts.js.map +1 -0
- package/tools/broadcasts/create-broadcasts.mjs +127 -0
- package/tools/broadcasts/create-broadcasts.mjs.map +1 -0
- package/tools/broadcasts/delete-broadcasts.d.mts +51 -0
- package/tools/broadcasts/delete-broadcasts.d.mts.map +1 -0
- package/tools/broadcasts/delete-broadcasts.d.ts +51 -0
- package/tools/broadcasts/delete-broadcasts.d.ts.map +1 -0
- package/tools/broadcasts/delete-broadcasts.js +37 -0
- package/tools/broadcasts/delete-broadcasts.js.map +1 -0
- package/tools/broadcasts/delete-broadcasts.mjs +33 -0
- package/tools/broadcasts/delete-broadcasts.mjs.map +1 -0
- package/tools/broadcasts/list-broadcasts.d.mts +51 -0
- package/tools/broadcasts/list-broadcasts.d.mts.map +1 -0
- package/tools/broadcasts/list-broadcasts.d.ts +51 -0
- package/tools/broadcasts/list-broadcasts.d.ts.map +1 -0
- package/tools/broadcasts/list-broadcasts.js +68 -0
- package/tools/broadcasts/list-broadcasts.js.map +1 -0
- package/tools/broadcasts/list-broadcasts.mjs +61 -0
- package/tools/broadcasts/list-broadcasts.mjs.map +1 -0
- package/tools/broadcasts/progress-broadcasts.d.mts +51 -0
- package/tools/broadcasts/progress-broadcasts.d.mts.map +1 -0
- package/tools/broadcasts/progress-broadcasts.d.ts +51 -0
- package/tools/broadcasts/progress-broadcasts.d.ts.map +1 -0
- package/tools/broadcasts/progress-broadcasts.js +54 -0
- package/tools/broadcasts/progress-broadcasts.js.map +1 -0
- package/tools/broadcasts/progress-broadcasts.mjs +47 -0
- package/tools/broadcasts/progress-broadcasts.mjs.map +1 -0
- package/tools/broadcasts/retrieve-broadcasts.d.mts +51 -0
- package/tools/broadcasts/retrieve-broadcasts.d.mts.map +1 -0
- package/tools/broadcasts/retrieve-broadcasts.d.ts +51 -0
- package/tools/broadcasts/retrieve-broadcasts.d.ts.map +1 -0
- package/tools/broadcasts/retrieve-broadcasts.js +54 -0
- package/tools/broadcasts/retrieve-broadcasts.js.map +1 -0
- package/tools/broadcasts/retrieve-broadcasts.mjs +47 -0
- package/tools/broadcasts/retrieve-broadcasts.mjs.map +1 -0
- package/tools/broadcasts/send-broadcasts.d.mts +51 -0
- package/tools/broadcasts/send-broadcasts.d.mts.map +1 -0
- package/tools/broadcasts/send-broadcasts.d.ts +51 -0
- package/tools/broadcasts/send-broadcasts.d.ts.map +1 -0
- package/tools/broadcasts/send-broadcasts.js +57 -0
- package/tools/broadcasts/send-broadcasts.js.map +1 -0
- package/tools/broadcasts/send-broadcasts.mjs +50 -0
- package/tools/broadcasts/send-broadcasts.mjs.map +1 -0
- package/tools/broadcasts/update-broadcasts.d.mts +51 -0
- package/tools/broadcasts/update-broadcasts.d.mts.map +1 -0
- package/tools/broadcasts/update-broadcasts.d.ts +51 -0
- package/tools/broadcasts/update-broadcasts.d.ts.map +1 -0
- package/tools/broadcasts/update-broadcasts.js +104 -0
- package/tools/broadcasts/update-broadcasts.js.map +1 -0
- package/tools/broadcasts/update-broadcasts.mjs +97 -0
- package/tools/broadcasts/update-broadcasts.mjs.map +1 -0
- package/tools/contacts/list-contacts.d.mts +51 -0
- package/tools/contacts/list-contacts.d.mts.map +1 -0
- package/tools/contacts/list-contacts.d.ts +51 -0
- package/tools/contacts/list-contacts.d.ts.map +1 -0
- package/tools/contacts/list-contacts.js +61 -0
- package/tools/contacts/list-contacts.js.map +1 -0
- package/tools/contacts/list-contacts.mjs +54 -0
- package/tools/contacts/list-contacts.mjs.map +1 -0
- package/tools/contacts/retrieve-by-phone-contacts.d.mts +51 -0
- package/tools/contacts/retrieve-by-phone-contacts.d.mts.map +1 -0
- package/tools/contacts/retrieve-by-phone-contacts.d.ts +51 -0
- package/tools/contacts/retrieve-by-phone-contacts.d.ts.map +1 -0
- package/tools/contacts/retrieve-by-phone-contacts.js +54 -0
- package/tools/contacts/retrieve-by-phone-contacts.js.map +1 -0
- package/tools/contacts/retrieve-by-phone-contacts.mjs +47 -0
- package/tools/contacts/retrieve-by-phone-contacts.mjs.map +1 -0
- package/tools/contacts/retrieve-contacts.d.mts +51 -0
- package/tools/contacts/retrieve-contacts.d.mts.map +1 -0
- package/tools/contacts/retrieve-contacts.d.ts +51 -0
- package/tools/contacts/retrieve-contacts.d.ts.map +1 -0
- package/tools/contacts/retrieve-contacts.js +54 -0
- package/tools/contacts/retrieve-contacts.js.map +1 -0
- package/tools/contacts/retrieve-contacts.mjs +47 -0
- package/tools/contacts/retrieve-contacts.mjs.map +1 -0
- package/tools/contacts/update-contacts.d.mts +51 -0
- package/tools/contacts/update-contacts.d.mts.map +1 -0
- package/tools/contacts/update-contacts.d.ts +51 -0
- package/tools/contacts/update-contacts.d.ts.map +1 -0
- package/tools/contacts/update-contacts.js +61 -0
- package/tools/contacts/update-contacts.js.map +1 -0
- package/tools/contacts/update-contacts.mjs +54 -0
- package/tools/contacts/update-contacts.mjs.map +1 -0
- package/tools/index.d.mts +10 -0
- package/tools/index.d.mts.map +1 -0
- package/tools/index.d.ts +10 -0
- package/tools/index.d.ts.map +1 -0
- package/tools/index.js +127 -0
- package/tools/index.js.map +1 -0
- package/tools/index.mjs +120 -0
- package/tools/index.mjs.map +1 -0
- package/tools/introspect/validate-phone-introspect.d.mts +51 -0
- package/tools/introspect/validate-phone-introspect.d.mts.map +1 -0
- package/tools/introspect/validate-phone-introspect.d.ts +51 -0
- package/tools/introspect/validate-phone-introspect.d.ts.map +1 -0
- package/tools/introspect/validate-phone-introspect.js +52 -0
- package/tools/introspect/validate-phone-introspect.js.map +1 -0
- package/tools/introspect/validate-phone-introspect.mjs +45 -0
- package/tools/introspect/validate-phone-introspect.mjs.map +1 -0
- package/tools/messages/list-messages.d.mts +51 -0
- package/tools/messages/list-messages.d.mts.map +1 -0
- package/tools/messages/list-messages.d.ts +51 -0
- package/tools/messages/list-messages.d.ts.map +1 -0
- package/tools/messages/list-messages.js +78 -0
- package/tools/messages/list-messages.js.map +1 -0
- package/tools/messages/list-messages.mjs +71 -0
- package/tools/messages/list-messages.mjs.map +1 -0
- package/tools/messages/react-messages.d.mts +51 -0
- package/tools/messages/react-messages.d.mts.map +1 -0
- package/tools/messages/react-messages.d.ts +51 -0
- package/tools/messages/react-messages.d.ts.map +1 -0
- package/tools/messages/react-messages.js +59 -0
- package/tools/messages/react-messages.js.map +1 -0
- package/tools/messages/react-messages.mjs +52 -0
- package/tools/messages/react-messages.mjs.map +1 -0
- package/tools/messages/retrieve-messages.d.mts +51 -0
- package/tools/messages/retrieve-messages.d.mts.map +1 -0
- package/tools/messages/retrieve-messages.d.ts +51 -0
- package/tools/messages/retrieve-messages.d.ts.map +1 -0
- package/tools/messages/retrieve-messages.js +54 -0
- package/tools/messages/retrieve-messages.js.map +1 -0
- package/tools/messages/retrieve-messages.mjs +47 -0
- package/tools/messages/retrieve-messages.mjs.map +1 -0
- package/tools/messages/send-messages.d.mts +51 -0
- package/tools/messages/send-messages.d.mts.map +1 -0
- package/tools/messages/send-messages.d.ts +51 -0
- package/tools/messages/send-messages.d.ts.map +1 -0
- package/tools/messages/send-messages.js +233 -0
- package/tools/messages/send-messages.js.map +1 -0
- package/tools/messages/send-messages.mjs +226 -0
- package/tools/messages/send-messages.mjs.map +1 -0
- package/tools/phone-numbers/list-phone-numbers.d.mts +51 -0
- package/tools/phone-numbers/list-phone-numbers.d.mts.map +1 -0
- package/tools/phone-numbers/list-phone-numbers.d.ts +51 -0
- package/tools/phone-numbers/list-phone-numbers.d.ts.map +1 -0
- package/tools/phone-numbers/list-phone-numbers.js +68 -0
- package/tools/phone-numbers/list-phone-numbers.js.map +1 -0
- package/tools/phone-numbers/list-phone-numbers.mjs +61 -0
- package/tools/phone-numbers/list-phone-numbers.mjs.map +1 -0
- package/tools/phone-numbers/purchase-phone-numbers.d.mts +51 -0
- package/tools/phone-numbers/purchase-phone-numbers.d.mts.map +1 -0
- package/tools/phone-numbers/purchase-phone-numbers.d.ts +51 -0
- package/tools/phone-numbers/purchase-phone-numbers.d.ts.map +1 -0
- package/tools/phone-numbers/purchase-phone-numbers.js +57 -0
- package/tools/phone-numbers/purchase-phone-numbers.js.map +1 -0
- package/tools/phone-numbers/purchase-phone-numbers.mjs +50 -0
- package/tools/phone-numbers/purchase-phone-numbers.mjs.map +1 -0
- package/tools/phone-numbers/release-phone-numbers.d.mts +51 -0
- package/tools/phone-numbers/release-phone-numbers.d.mts.map +1 -0
- package/tools/phone-numbers/release-phone-numbers.d.ts +51 -0
- package/tools/phone-numbers/release-phone-numbers.d.ts.map +1 -0
- package/tools/phone-numbers/release-phone-numbers.js +37 -0
- package/tools/phone-numbers/release-phone-numbers.js.map +1 -0
- package/tools/phone-numbers/release-phone-numbers.mjs +33 -0
- package/tools/phone-numbers/release-phone-numbers.mjs.map +1 -0
- package/tools/phone-numbers/retrieve-phone-numbers.d.mts +51 -0
- package/tools/phone-numbers/retrieve-phone-numbers.d.mts.map +1 -0
- package/tools/phone-numbers/retrieve-phone-numbers.d.ts +51 -0
- package/tools/phone-numbers/retrieve-phone-numbers.d.ts.map +1 -0
- package/tools/phone-numbers/retrieve-phone-numbers.js +54 -0
- package/tools/phone-numbers/retrieve-phone-numbers.js.map +1 -0
- package/tools/phone-numbers/retrieve-phone-numbers.mjs +47 -0
- package/tools/phone-numbers/retrieve-phone-numbers.mjs.map +1 -0
- package/tools/phone-numbers/search-available-phone-numbers.d.mts +51 -0
- package/tools/phone-numbers/search-available-phone-numbers.d.mts.map +1 -0
- package/tools/phone-numbers/search-available-phone-numbers.d.ts +51 -0
- package/tools/phone-numbers/search-available-phone-numbers.d.ts.map +1 -0
- package/tools/phone-numbers/search-available-phone-numbers.js +72 -0
- package/tools/phone-numbers/search-available-phone-numbers.js.map +1 -0
- package/tools/phone-numbers/search-available-phone-numbers.mjs +65 -0
- package/tools/phone-numbers/search-available-phone-numbers.mjs.map +1 -0
- package/tools/phone-numbers/update-phone-numbers.d.mts +51 -0
- package/tools/phone-numbers/update-phone-numbers.d.mts.map +1 -0
- package/tools/phone-numbers/update-phone-numbers.d.ts +51 -0
- package/tools/phone-numbers/update-phone-numbers.d.ts.map +1 -0
- package/tools/phone-numbers/update-phone-numbers.js +60 -0
- package/tools/phone-numbers/update-phone-numbers.js.map +1 -0
- package/tools/phone-numbers/update-phone-numbers.mjs +53 -0
- package/tools/phone-numbers/update-phone-numbers.mjs.map +1 -0
- package/tools/senders/create-senders.d.mts +51 -0
- package/tools/senders/create-senders.d.mts.map +1 -0
- package/tools/senders/create-senders.d.ts +51 -0
- package/tools/senders/create-senders.d.ts.map +1 -0
- package/tools/senders/create-senders.js +85 -0
- package/tools/senders/create-senders.js.map +1 -0
- package/tools/senders/create-senders.mjs +78 -0
- package/tools/senders/create-senders.mjs.map +1 -0
- package/tools/senders/delete-senders.d.mts +51 -0
- package/tools/senders/delete-senders.d.mts.map +1 -0
- package/tools/senders/delete-senders.d.ts +51 -0
- package/tools/senders/delete-senders.d.ts.map +1 -0
- package/tools/senders/delete-senders.js +37 -0
- package/tools/senders/delete-senders.js.map +1 -0
- package/tools/senders/delete-senders.mjs +33 -0
- package/tools/senders/delete-senders.mjs.map +1 -0
- package/tools/senders/list-senders.d.mts +51 -0
- package/tools/senders/list-senders.d.mts.map +1 -0
- package/tools/senders/list-senders.d.ts +51 -0
- package/tools/senders/list-senders.d.ts.map +1 -0
- package/tools/senders/list-senders.js +58 -0
- package/tools/senders/list-senders.js.map +1 -0
- package/tools/senders/list-senders.mjs +51 -0
- package/tools/senders/list-senders.mjs.map +1 -0
- package/tools/senders/regenerate-webhook-secret-senders.d.mts +51 -0
- package/tools/senders/regenerate-webhook-secret-senders.d.mts.map +1 -0
- package/tools/senders/regenerate-webhook-secret-senders.d.ts +51 -0
- package/tools/senders/regenerate-webhook-secret-senders.d.ts.map +1 -0
- package/tools/senders/regenerate-webhook-secret-senders.js +52 -0
- package/tools/senders/regenerate-webhook-secret-senders.js.map +1 -0
- package/tools/senders/regenerate-webhook-secret-senders.mjs +45 -0
- package/tools/senders/regenerate-webhook-secret-senders.mjs.map +1 -0
- package/tools/senders/retrieve-senders.d.mts +51 -0
- package/tools/senders/retrieve-senders.d.mts.map +1 -0
- package/tools/senders/retrieve-senders.d.ts +51 -0
- package/tools/senders/retrieve-senders.d.ts.map +1 -0
- package/tools/senders/retrieve-senders.js +54 -0
- package/tools/senders/retrieve-senders.js.map +1 -0
- package/tools/senders/retrieve-senders.mjs +47 -0
- package/tools/senders/retrieve-senders.mjs.map +1 -0
- package/tools/senders/update-senders.d.mts +51 -0
- package/tools/senders/update-senders.d.mts.map +1 -0
- package/tools/senders/update-senders.d.ts +51 -0
- package/tools/senders/update-senders.d.ts.map +1 -0
- package/tools/senders/update-senders.js +89 -0
- package/tools/senders/update-senders.js.map +1 -0
- package/tools/senders/update-senders.mjs +82 -0
- package/tools/senders/update-senders.mjs.map +1 -0
- package/tools/templates/create-templates.d.mts +51 -0
- package/tools/templates/create-templates.d.mts.map +1 -0
- package/tools/templates/create-templates.d.ts +51 -0
- package/tools/templates/create-templates.d.ts.map +1 -0
- package/tools/templates/create-templates.js +74 -0
- package/tools/templates/create-templates.js.map +1 -0
- package/tools/templates/create-templates.mjs +67 -0
- package/tools/templates/create-templates.mjs.map +1 -0
- package/tools/templates/delete-templates.d.mts +51 -0
- package/tools/templates/delete-templates.d.mts.map +1 -0
- package/tools/templates/delete-templates.d.ts +51 -0
- package/tools/templates/delete-templates.d.ts.map +1 -0
- package/tools/templates/delete-templates.js +37 -0
- package/tools/templates/delete-templates.js.map +1 -0
- package/tools/templates/delete-templates.mjs +33 -0
- package/tools/templates/delete-templates.mjs.map +1 -0
- package/tools/templates/list-templates.d.mts +51 -0
- package/tools/templates/list-templates.d.mts.map +1 -0
- package/tools/templates/list-templates.d.ts +51 -0
- package/tools/templates/list-templates.d.ts.map +1 -0
- package/tools/templates/list-templates.js +58 -0
- package/tools/templates/list-templates.js.map +1 -0
- package/tools/templates/list-templates.mjs +51 -0
- package/tools/templates/list-templates.mjs.map +1 -0
- package/tools/templates/retrieve-templates.d.mts +51 -0
- package/tools/templates/retrieve-templates.d.mts.map +1 -0
- package/tools/templates/retrieve-templates.d.ts +51 -0
- package/tools/templates/retrieve-templates.d.ts.map +1 -0
- package/tools/templates/retrieve-templates.js +54 -0
- package/tools/templates/retrieve-templates.js.map +1 -0
- package/tools/templates/retrieve-templates.mjs +47 -0
- package/tools/templates/retrieve-templates.mjs.map +1 -0
- package/tools/templates/submit-templates.d.mts +51 -0
- package/tools/templates/submit-templates.d.mts.map +1 -0
- package/tools/templates/submit-templates.d.ts +51 -0
- package/tools/templates/submit-templates.d.ts.map +1 -0
- package/tools/templates/submit-templates.js +66 -0
- package/tools/templates/submit-templates.js.map +1 -0
- package/tools/templates/submit-templates.mjs +59 -0
- package/tools/templates/submit-templates.mjs.map +1 -0
- package/tools/types.d.mts +52 -0
- package/tools/types.d.mts.map +1 -0
- package/tools/types.d.ts +52 -0
- package/tools/types.d.ts.map +1 -0
- package/tools/types.js +58 -0
- package/tools/types.js.map +1 -0
- package/tools/types.mjs +53 -0
- package/tools/types.mjs.map +1 -0
- package/tools.d.mts +2 -0
- package/tools.d.mts.map +1 -0
- package/tools.d.ts +2 -0
- package/tools.d.ts.map +1 -0
- package/tools.js +18 -0
- package/tools.js.map +1 -0
- package/tools.mjs +2 -0
- package/tools.mjs.map +1 -0
package/options.mjs
ADDED
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
import qs from 'qs';
|
|
2
|
+
import yargs from 'yargs';
|
|
3
|
+
import { hideBin } from 'yargs/helpers';
|
|
4
|
+
import z from 'zod';
|
|
5
|
+
import { endpoints } from "./tools.mjs";
|
|
6
|
+
import { knownClients, ClientType } from "./compat.mjs";
|
|
7
|
+
const CAPABILITY_CHOICES = [
|
|
8
|
+
'top-level-unions',
|
|
9
|
+
'valid-json',
|
|
10
|
+
'refs',
|
|
11
|
+
'unions',
|
|
12
|
+
'formats',
|
|
13
|
+
'tool-name-length',
|
|
14
|
+
];
|
|
15
|
+
function parseCapabilityValue(cap) {
|
|
16
|
+
if (cap.startsWith('tool-name-length=')) {
|
|
17
|
+
const parts = cap.split('=');
|
|
18
|
+
if (parts.length === 2) {
|
|
19
|
+
const length = parseInt(parts[1], 10);
|
|
20
|
+
if (!isNaN(length)) {
|
|
21
|
+
return { name: 'tool-name-length', value: length };
|
|
22
|
+
}
|
|
23
|
+
throw new Error(`Invalid tool-name-length value: ${parts[1]}. Expected a number.`);
|
|
24
|
+
}
|
|
25
|
+
throw new Error(`Invalid format for tool-name-length. Expected tool-name-length=N.`);
|
|
26
|
+
}
|
|
27
|
+
if (!CAPABILITY_CHOICES.includes(cap)) {
|
|
28
|
+
throw new Error(`Unknown capability: ${cap}. Valid capabilities are: ${CAPABILITY_CHOICES.join(', ')}`);
|
|
29
|
+
}
|
|
30
|
+
return { name: cap };
|
|
31
|
+
}
|
|
32
|
+
export function parseCLIOptions() {
|
|
33
|
+
const opts = yargs(hideBin(process.argv))
|
|
34
|
+
.option('tools', {
|
|
35
|
+
type: 'string',
|
|
36
|
+
array: true,
|
|
37
|
+
choices: ['dynamic', 'all', 'code', 'docs'],
|
|
38
|
+
description: 'Use dynamic tools or all tools',
|
|
39
|
+
})
|
|
40
|
+
.option('no-tools', {
|
|
41
|
+
type: 'string',
|
|
42
|
+
array: true,
|
|
43
|
+
choices: ['dynamic', 'all', 'code', 'docs'],
|
|
44
|
+
description: 'Do not use any dynamic or all tools',
|
|
45
|
+
})
|
|
46
|
+
.option('tool', {
|
|
47
|
+
type: 'string',
|
|
48
|
+
array: true,
|
|
49
|
+
description: 'Include tools matching the specified names',
|
|
50
|
+
})
|
|
51
|
+
.option('resource', {
|
|
52
|
+
type: 'string',
|
|
53
|
+
array: true,
|
|
54
|
+
description: 'Include tools matching the specified resources',
|
|
55
|
+
})
|
|
56
|
+
.option('operation', {
|
|
57
|
+
type: 'string',
|
|
58
|
+
array: true,
|
|
59
|
+
choices: ['read', 'write'],
|
|
60
|
+
description: 'Include tools matching the specified operations',
|
|
61
|
+
})
|
|
62
|
+
.option('tag', {
|
|
63
|
+
type: 'string',
|
|
64
|
+
array: true,
|
|
65
|
+
description: 'Include tools with the specified tags',
|
|
66
|
+
})
|
|
67
|
+
.option('no-tool', {
|
|
68
|
+
type: 'string',
|
|
69
|
+
array: true,
|
|
70
|
+
description: 'Exclude tools matching the specified names',
|
|
71
|
+
})
|
|
72
|
+
.option('no-resource', {
|
|
73
|
+
type: 'string',
|
|
74
|
+
array: true,
|
|
75
|
+
description: 'Exclude tools matching the specified resources',
|
|
76
|
+
})
|
|
77
|
+
.option('no-operation', {
|
|
78
|
+
type: 'string',
|
|
79
|
+
array: true,
|
|
80
|
+
description: 'Exclude tools matching the specified operations',
|
|
81
|
+
})
|
|
82
|
+
.option('no-tag', {
|
|
83
|
+
type: 'string',
|
|
84
|
+
array: true,
|
|
85
|
+
description: 'Exclude tools with the specified tags',
|
|
86
|
+
})
|
|
87
|
+
.option('list', {
|
|
88
|
+
type: 'boolean',
|
|
89
|
+
description: 'List all tools and exit',
|
|
90
|
+
})
|
|
91
|
+
.option('client', {
|
|
92
|
+
type: 'string',
|
|
93
|
+
choices: Object.keys(knownClients),
|
|
94
|
+
description: 'Specify the MCP client being used',
|
|
95
|
+
})
|
|
96
|
+
.option('capability', {
|
|
97
|
+
type: 'string',
|
|
98
|
+
array: true,
|
|
99
|
+
description: 'Specify client capabilities',
|
|
100
|
+
coerce: (values) => {
|
|
101
|
+
return values.flatMap((v) => v.split(','));
|
|
102
|
+
},
|
|
103
|
+
})
|
|
104
|
+
.option('no-capability', {
|
|
105
|
+
type: 'string',
|
|
106
|
+
array: true,
|
|
107
|
+
description: 'Unset client capabilities',
|
|
108
|
+
choices: CAPABILITY_CHOICES,
|
|
109
|
+
coerce: (values) => {
|
|
110
|
+
return values.flatMap((v) => v.split(','));
|
|
111
|
+
},
|
|
112
|
+
})
|
|
113
|
+
.option('describe-capabilities', {
|
|
114
|
+
type: 'boolean',
|
|
115
|
+
description: 'Print detailed explanation of client capabilities and exit',
|
|
116
|
+
})
|
|
117
|
+
.option('transport', {
|
|
118
|
+
type: 'string',
|
|
119
|
+
choices: ['stdio', 'http'],
|
|
120
|
+
default: 'stdio',
|
|
121
|
+
description: 'What transport to use; stdio for local servers or http for remote servers',
|
|
122
|
+
})
|
|
123
|
+
.option('port', {
|
|
124
|
+
type: 'number',
|
|
125
|
+
description: 'Port to serve on if using http transport',
|
|
126
|
+
})
|
|
127
|
+
.option('socket', {
|
|
128
|
+
type: 'string',
|
|
129
|
+
description: 'Unix socket to serve on if using http transport',
|
|
130
|
+
})
|
|
131
|
+
.help();
|
|
132
|
+
for (const [command, desc] of examples()) {
|
|
133
|
+
opts.example(command, desc);
|
|
134
|
+
}
|
|
135
|
+
const argv = opts.parseSync();
|
|
136
|
+
// Handle describe-capabilities flag
|
|
137
|
+
if (argv.describeCapabilities) {
|
|
138
|
+
console.log(getCapabilitiesExplanation());
|
|
139
|
+
process.exit(0);
|
|
140
|
+
}
|
|
141
|
+
const filters = [];
|
|
142
|
+
// Helper function to support comma-separated values
|
|
143
|
+
const splitValues = (values) => {
|
|
144
|
+
if (!values)
|
|
145
|
+
return [];
|
|
146
|
+
return values.flatMap((v) => v.split(','));
|
|
147
|
+
};
|
|
148
|
+
for (const tag of splitValues(argv.tag)) {
|
|
149
|
+
filters.push({ type: 'tag', op: 'include', value: tag });
|
|
150
|
+
}
|
|
151
|
+
for (const tag of splitValues(argv.noTag)) {
|
|
152
|
+
filters.push({ type: 'tag', op: 'exclude', value: tag });
|
|
153
|
+
}
|
|
154
|
+
for (const resource of splitValues(argv.resource)) {
|
|
155
|
+
filters.push({ type: 'resource', op: 'include', value: resource });
|
|
156
|
+
}
|
|
157
|
+
for (const resource of splitValues(argv.noResource)) {
|
|
158
|
+
filters.push({ type: 'resource', op: 'exclude', value: resource });
|
|
159
|
+
}
|
|
160
|
+
for (const tool of splitValues(argv.tool)) {
|
|
161
|
+
filters.push({ type: 'tool', op: 'include', value: tool });
|
|
162
|
+
}
|
|
163
|
+
for (const tool of splitValues(argv.noTool)) {
|
|
164
|
+
filters.push({ type: 'tool', op: 'exclude', value: tool });
|
|
165
|
+
}
|
|
166
|
+
for (const operation of splitValues(argv.operation)) {
|
|
167
|
+
filters.push({ type: 'operation', op: 'include', value: operation });
|
|
168
|
+
}
|
|
169
|
+
for (const operation of splitValues(argv.noOperation)) {
|
|
170
|
+
filters.push({ type: 'operation', op: 'exclude', value: operation });
|
|
171
|
+
}
|
|
172
|
+
// Parse client capabilities
|
|
173
|
+
const clientCapabilities = {};
|
|
174
|
+
// Apply individual capability overrides
|
|
175
|
+
if (Array.isArray(argv.capability)) {
|
|
176
|
+
for (const cap of argv.capability) {
|
|
177
|
+
const parsedCap = parseCapabilityValue(cap);
|
|
178
|
+
if (parsedCap.name === 'top-level-unions') {
|
|
179
|
+
clientCapabilities.topLevelUnions = true;
|
|
180
|
+
}
|
|
181
|
+
else if (parsedCap.name === 'valid-json') {
|
|
182
|
+
clientCapabilities.validJson = true;
|
|
183
|
+
}
|
|
184
|
+
else if (parsedCap.name === 'refs') {
|
|
185
|
+
clientCapabilities.refs = true;
|
|
186
|
+
}
|
|
187
|
+
else if (parsedCap.name === 'unions') {
|
|
188
|
+
clientCapabilities.unions = true;
|
|
189
|
+
}
|
|
190
|
+
else if (parsedCap.name === 'formats') {
|
|
191
|
+
clientCapabilities.formats = true;
|
|
192
|
+
}
|
|
193
|
+
else if (parsedCap.name === 'tool-name-length') {
|
|
194
|
+
clientCapabilities.toolNameLength = parsedCap.value;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
// Handle no-capability options to unset capabilities
|
|
199
|
+
if (Array.isArray(argv.noCapability)) {
|
|
200
|
+
for (const cap of argv.noCapability) {
|
|
201
|
+
if (cap === 'top-level-unions') {
|
|
202
|
+
clientCapabilities.topLevelUnions = false;
|
|
203
|
+
}
|
|
204
|
+
else if (cap === 'valid-json') {
|
|
205
|
+
clientCapabilities.validJson = false;
|
|
206
|
+
}
|
|
207
|
+
else if (cap === 'refs') {
|
|
208
|
+
clientCapabilities.refs = false;
|
|
209
|
+
}
|
|
210
|
+
else if (cap === 'unions') {
|
|
211
|
+
clientCapabilities.unions = false;
|
|
212
|
+
}
|
|
213
|
+
else if (cap === 'formats') {
|
|
214
|
+
clientCapabilities.formats = false;
|
|
215
|
+
}
|
|
216
|
+
else if (cap === 'tool-name-length') {
|
|
217
|
+
clientCapabilities.toolNameLength = undefined;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
const shouldIncludeToolType = (toolType) => argv.noTools?.includes(toolType) ? false
|
|
222
|
+
: argv.tools?.includes(toolType) ? true
|
|
223
|
+
: undefined;
|
|
224
|
+
const includeDynamicTools = shouldIncludeToolType('dynamic');
|
|
225
|
+
const includeAllTools = shouldIncludeToolType('all');
|
|
226
|
+
const includeCodeTools = shouldIncludeToolType('code');
|
|
227
|
+
const includeDocsTools = shouldIncludeToolType('docs');
|
|
228
|
+
const transport = argv.transport;
|
|
229
|
+
const client = argv.client;
|
|
230
|
+
return {
|
|
231
|
+
client: client && client !== 'infer' && knownClients[client] ? client : undefined,
|
|
232
|
+
includeDynamicTools,
|
|
233
|
+
includeAllTools,
|
|
234
|
+
includeCodeTools,
|
|
235
|
+
includeDocsTools,
|
|
236
|
+
filters,
|
|
237
|
+
capabilities: clientCapabilities,
|
|
238
|
+
list: argv.list || false,
|
|
239
|
+
transport,
|
|
240
|
+
port: argv.port,
|
|
241
|
+
socket: argv.socket,
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
const coerceArray = (zodType) => z.preprocess((val) => Array.isArray(val) ? val
|
|
245
|
+
: val ? [val]
|
|
246
|
+
: val, z.array(zodType).optional());
|
|
247
|
+
const QueryOptions = z.object({
|
|
248
|
+
tools: coerceArray(z.enum(['dynamic', 'all', 'code', 'docs'])).describe('Specify which MCP tools to use'),
|
|
249
|
+
no_tools: coerceArray(z.enum(['dynamic', 'all', 'code', 'docs'])).describe('Specify which MCP tools to not use.'),
|
|
250
|
+
tool: coerceArray(z.string()).describe('Include tools matching the specified names'),
|
|
251
|
+
resource: coerceArray(z.string()).describe('Include tools matching the specified resources'),
|
|
252
|
+
operation: coerceArray(z.enum(['read', 'write'])).describe('Include tools matching the specified operations'),
|
|
253
|
+
tag: coerceArray(z.string()).describe('Include tools with the specified tags'),
|
|
254
|
+
no_tool: coerceArray(z.string()).describe('Exclude tools matching the specified names'),
|
|
255
|
+
no_resource: coerceArray(z.string()).describe('Exclude tools matching the specified resources'),
|
|
256
|
+
no_operation: coerceArray(z.enum(['read', 'write'])).describe('Exclude tools matching the specified operations'),
|
|
257
|
+
no_tag: coerceArray(z.string()).describe('Exclude tools with the specified tags'),
|
|
258
|
+
client: ClientType.optional().describe('Specify the MCP client being used'),
|
|
259
|
+
capability: coerceArray(z.string()).describe('Specify client capabilities'),
|
|
260
|
+
no_capability: coerceArray(z.enum(CAPABILITY_CHOICES)).describe('Unset client capabilities'),
|
|
261
|
+
});
|
|
262
|
+
export function parseQueryOptions(defaultOptions, query) {
|
|
263
|
+
const queryObject = typeof query === 'string' ? qs.parse(query) : query;
|
|
264
|
+
const queryOptions = QueryOptions.parse(queryObject);
|
|
265
|
+
const filters = [...(defaultOptions.filters ?? [])];
|
|
266
|
+
for (const resource of queryOptions.resource || []) {
|
|
267
|
+
filters.push({ type: 'resource', op: 'include', value: resource });
|
|
268
|
+
}
|
|
269
|
+
for (const operation of queryOptions.operation || []) {
|
|
270
|
+
filters.push({ type: 'operation', op: 'include', value: operation });
|
|
271
|
+
}
|
|
272
|
+
for (const tag of queryOptions.tag || []) {
|
|
273
|
+
filters.push({ type: 'tag', op: 'include', value: tag });
|
|
274
|
+
}
|
|
275
|
+
for (const tool of queryOptions.tool || []) {
|
|
276
|
+
filters.push({ type: 'tool', op: 'include', value: tool });
|
|
277
|
+
}
|
|
278
|
+
for (const resource of queryOptions.no_resource || []) {
|
|
279
|
+
filters.push({ type: 'resource', op: 'exclude', value: resource });
|
|
280
|
+
}
|
|
281
|
+
for (const operation of queryOptions.no_operation || []) {
|
|
282
|
+
filters.push({ type: 'operation', op: 'exclude', value: operation });
|
|
283
|
+
}
|
|
284
|
+
for (const tag of queryOptions.no_tag || []) {
|
|
285
|
+
filters.push({ type: 'tag', op: 'exclude', value: tag });
|
|
286
|
+
}
|
|
287
|
+
for (const tool of queryOptions.no_tool || []) {
|
|
288
|
+
filters.push({ type: 'tool', op: 'exclude', value: tool });
|
|
289
|
+
}
|
|
290
|
+
// Parse client capabilities
|
|
291
|
+
const clientCapabilities = { ...defaultOptions.capabilities };
|
|
292
|
+
for (const cap of queryOptions.capability || []) {
|
|
293
|
+
const parsed = parseCapabilityValue(cap);
|
|
294
|
+
if (parsed.name === 'top-level-unions') {
|
|
295
|
+
clientCapabilities.topLevelUnions = true;
|
|
296
|
+
}
|
|
297
|
+
else if (parsed.name === 'valid-json') {
|
|
298
|
+
clientCapabilities.validJson = true;
|
|
299
|
+
}
|
|
300
|
+
else if (parsed.name === 'refs') {
|
|
301
|
+
clientCapabilities.refs = true;
|
|
302
|
+
}
|
|
303
|
+
else if (parsed.name === 'unions') {
|
|
304
|
+
clientCapabilities.unions = true;
|
|
305
|
+
}
|
|
306
|
+
else if (parsed.name === 'formats') {
|
|
307
|
+
clientCapabilities.formats = true;
|
|
308
|
+
}
|
|
309
|
+
else if (parsed.name === 'tool-name-length') {
|
|
310
|
+
clientCapabilities.toolNameLength = parsed.value;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
for (const cap of queryOptions.no_capability || []) {
|
|
314
|
+
if (cap === 'top-level-unions') {
|
|
315
|
+
clientCapabilities.topLevelUnions = false;
|
|
316
|
+
}
|
|
317
|
+
else if (cap === 'valid-json') {
|
|
318
|
+
clientCapabilities.validJson = false;
|
|
319
|
+
}
|
|
320
|
+
else if (cap === 'refs') {
|
|
321
|
+
clientCapabilities.refs = false;
|
|
322
|
+
}
|
|
323
|
+
else if (cap === 'unions') {
|
|
324
|
+
clientCapabilities.unions = false;
|
|
325
|
+
}
|
|
326
|
+
else if (cap === 'formats') {
|
|
327
|
+
clientCapabilities.formats = false;
|
|
328
|
+
}
|
|
329
|
+
else if (cap === 'tool-name-length') {
|
|
330
|
+
clientCapabilities.toolNameLength = undefined;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
let dynamicTools = queryOptions.no_tools && queryOptions.no_tools?.includes('dynamic') ? false
|
|
334
|
+
: queryOptions.tools?.includes('dynamic') ? true
|
|
335
|
+
: defaultOptions.includeDynamicTools;
|
|
336
|
+
let allTools = queryOptions.no_tools && queryOptions.no_tools?.includes('all') ? false
|
|
337
|
+
: queryOptions.tools?.includes('all') ? true
|
|
338
|
+
: defaultOptions.includeAllTools;
|
|
339
|
+
let docsTools = queryOptions.no_tools && queryOptions.no_tools?.includes('docs') ? false
|
|
340
|
+
: queryOptions.tools?.includes('docs') ? true
|
|
341
|
+
: defaultOptions.includeDocsTools;
|
|
342
|
+
let codeTools = queryOptions.no_tools && queryOptions.no_tools?.includes('code') ? false
|
|
343
|
+
: queryOptions.tools?.includes('code') && defaultOptions.includeCodeTools ? true
|
|
344
|
+
: defaultOptions.includeCodeTools;
|
|
345
|
+
return {
|
|
346
|
+
client: queryOptions.client ?? defaultOptions.client,
|
|
347
|
+
includeDynamicTools: dynamicTools,
|
|
348
|
+
includeAllTools: allTools,
|
|
349
|
+
includeCodeTools: codeTools,
|
|
350
|
+
includeDocsTools: docsTools,
|
|
351
|
+
filters,
|
|
352
|
+
capabilities: clientCapabilities,
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
function getCapabilitiesExplanation() {
|
|
356
|
+
return `
|
|
357
|
+
Client Capabilities Explanation:
|
|
358
|
+
|
|
359
|
+
Different Language Models (LLMs) and the MCP clients that use them have varying limitations in how they handle tool schemas. Capability flags allow you to inform the MCP server about these limitations.
|
|
360
|
+
|
|
361
|
+
When a capability flag is set to false, the MCP server will automatically adjust the tool schemas to work around that limitation, ensuring broader compatibility.
|
|
362
|
+
|
|
363
|
+
Available Capabilities:
|
|
364
|
+
|
|
365
|
+
# top-level-unions
|
|
366
|
+
Some clients/LLMs do not support JSON schemas with a union type (anyOf) at the root level. If a client lacks this capability, the MCP server splits tools with top-level unions into multiple separate tools, one for each variant in the union.
|
|
367
|
+
|
|
368
|
+
# refs
|
|
369
|
+
Some clients/LLMs do not support $ref pointers for schema reuse. If a client lacks this capability, the MCP server automatically inlines all references ($defs) directly into the schema. Properties that would cause circular references are removed during this process.
|
|
370
|
+
|
|
371
|
+
# valid-json
|
|
372
|
+
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.
|
|
373
|
+
|
|
374
|
+
# unions
|
|
375
|
+
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.
|
|
376
|
+
|
|
377
|
+
# formats
|
|
378
|
+
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.
|
|
379
|
+
|
|
380
|
+
# tool-name-length=N
|
|
381
|
+
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.
|
|
382
|
+
|
|
383
|
+
Client Presets (--client):
|
|
384
|
+
Presets like '--client=openai-agents' or '--client=cursor' automatically configure these capabilities based on current known limitations of those clients, simplifying setup.
|
|
385
|
+
|
|
386
|
+
Current presets:
|
|
387
|
+
${JSON.stringify(knownClients, null, 2)}
|
|
388
|
+
`;
|
|
389
|
+
}
|
|
390
|
+
function examples() {
|
|
391
|
+
const firstEndpoint = endpoints[0];
|
|
392
|
+
const secondEndpoint = endpoints.find((e) => e.metadata.resource !== firstEndpoint.metadata.resource) || endpoints[1];
|
|
393
|
+
const tag = endpoints.find((e) => e.metadata.tags.length > 0)?.metadata.tags[0];
|
|
394
|
+
const otherEndpoint = secondEndpoint || firstEndpoint;
|
|
395
|
+
return [
|
|
396
|
+
[
|
|
397
|
+
`--tool="${firstEndpoint.tool.name}" ${secondEndpoint ? `--tool="${secondEndpoint.tool.name}"` : ''}`,
|
|
398
|
+
'Include tools by name',
|
|
399
|
+
],
|
|
400
|
+
[
|
|
401
|
+
`--resource="${firstEndpoint.metadata.resource}" --operation="read"`,
|
|
402
|
+
'Filter by resource and operation',
|
|
403
|
+
],
|
|
404
|
+
[
|
|
405
|
+
`--resource="${otherEndpoint.metadata.resource}*" --no-tool="${otherEndpoint.tool.name}"`,
|
|
406
|
+
'Use resource wildcards and exclusions',
|
|
407
|
+
],
|
|
408
|
+
[`--client="cursor"`, 'Adjust schemas to be more compatible with Cursor'],
|
|
409
|
+
[
|
|
410
|
+
`--capability="top-level-unions" --capability="tool-name-length=40"`,
|
|
411
|
+
'Specify individual client capabilities',
|
|
412
|
+
],
|
|
413
|
+
[
|
|
414
|
+
`--client="cursor" --no-capability="tool-name-length"`,
|
|
415
|
+
'Use cursor client preset but remove tool name length limit',
|
|
416
|
+
],
|
|
417
|
+
...(tag ? [[`--tag="${tag}"`, 'Filter based on tags']] : []),
|
|
418
|
+
];
|
|
419
|
+
}
|
|
420
|
+
//# sourceMappingURL=options.mjs.map
|
package/options.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
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C,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,KAAK,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;IACjG,MAAM,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAChF,MAAM,aAAa,GAAG,cAAc,IAAI,aAAa,CAAC;IAEtD,OAAO;QACL;YACE,WAAW,aAAa,CAAC,IAAI,CAAC,IAAI,KAAK,cAAc,CAAC,CAAC,CAAC,WAAW,cAAc,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACrG,uBAAuB;SACxB;QACD;YACE,eAAe,aAAa,CAAC,QAAQ,CAAC,QAAQ,sBAAsB;YACpE,kCAAkC;SACnC;QACD;YACE,eAAe,aAAa,CAAC,QAAQ,CAAC,QAAQ,iBAAiB,aAAa,CAAC,IAAI,CAAC,IAAI,GAAG;YACzF,uCAAuC;SACxC;QACD,CAAC,mBAAmB,EAAE,kDAAkD,CAAC;QACzE;YACE,oEAAoE;YACpE,wCAAwC;SACzC;QACD;YACE,sDAAsD;YACtD,4DAA4D;SAC7D;QACD,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,GAAG,GAAG,EAAE,sBAAsB,CAAqB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KACjF,CAAC;AACJ,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@zavudev/sdk-mcp",
|
|
3
|
+
"version": "0.14.0",
|
|
4
|
+
"description": "The official MCP Server for the Zavudev API",
|
|
5
|
+
"author": "Zavudev <hi@zavu.dev>",
|
|
6
|
+
"types": "./index.d.ts",
|
|
7
|
+
"main": "./index.js",
|
|
8
|
+
"type": "commonjs",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/zavudev/sdk-typescript.git",
|
|
12
|
+
"directory": "packages/mcp-server"
|
|
13
|
+
},
|
|
14
|
+
"homepage": "https://github.com/zavudev/sdk-typescript/tree/main/packages/mcp-server#readme",
|
|
15
|
+
"license": "Apache-2.0",
|
|
16
|
+
"private": false,
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@zavudev/sdk": "^0.14.0",
|
|
22
|
+
"@cloudflare/cabidela": "^0.2.4",
|
|
23
|
+
"@modelcontextprotocol/sdk": "^1.24.0",
|
|
24
|
+
"@valtown/deno-http-worker": "^0.0.21",
|
|
25
|
+
"cors": "^2.8.5",
|
|
26
|
+
"express": "^5.1.0",
|
|
27
|
+
"fuse.js": "^7.1.0",
|
|
28
|
+
"jq-web": "https://github.com/stainless-api/jq-web/releases/download/v0.8.8/jq-web.tar.gz",
|
|
29
|
+
"qs": "^6.14.0",
|
|
30
|
+
"typescript": "5.8.3",
|
|
31
|
+
"yargs": "^17.7.2",
|
|
32
|
+
"zod": "^3.25.20",
|
|
33
|
+
"zod-to-json-schema": "^3.24.5",
|
|
34
|
+
"zod-validation-error": "^4.0.1"
|
|
35
|
+
},
|
|
36
|
+
"bin": {
|
|
37
|
+
"mcp-server": "./index.js"
|
|
38
|
+
},
|
|
39
|
+
"imports": {
|
|
40
|
+
"@zavudev/sdk-mcp": ".",
|
|
41
|
+
"@zavudev/sdk-mcp/*": "./src/*"
|
|
42
|
+
},
|
|
43
|
+
"exports": {
|
|
44
|
+
".": {
|
|
45
|
+
"require": {
|
|
46
|
+
"types": "./index.d.ts",
|
|
47
|
+
"default": "./index.js"
|
|
48
|
+
},
|
|
49
|
+
"types": "./index.d.mts",
|
|
50
|
+
"default": "./index.mjs"
|
|
51
|
+
},
|
|
52
|
+
"./code-tool-types": {
|
|
53
|
+
"import": "./code-tool-types.mjs",
|
|
54
|
+
"require": "./code-tool-types.js"
|
|
55
|
+
},
|
|
56
|
+
"./code-tool-types.js": {
|
|
57
|
+
"default": "./code-tool-types.js"
|
|
58
|
+
},
|
|
59
|
+
"./code-tool-types.mjs": {
|
|
60
|
+
"default": "./code-tool-types.mjs"
|
|
61
|
+
},
|
|
62
|
+
"./code-tool": {
|
|
63
|
+
"import": "./code-tool.mjs",
|
|
64
|
+
"require": "./code-tool.js"
|
|
65
|
+
},
|
|
66
|
+
"./code-tool.js": {
|
|
67
|
+
"default": "./code-tool.js"
|
|
68
|
+
},
|
|
69
|
+
"./code-tool.mjs": {
|
|
70
|
+
"default": "./code-tool.mjs"
|
|
71
|
+
},
|
|
72
|
+
"./compat": {
|
|
73
|
+
"import": "./compat.mjs",
|
|
74
|
+
"require": "./compat.js"
|
|
75
|
+
},
|
|
76
|
+
"./compat.js": {
|
|
77
|
+
"default": "./compat.js"
|
|
78
|
+
},
|
|
79
|
+
"./compat.mjs": {
|
|
80
|
+
"default": "./compat.mjs"
|
|
81
|
+
},
|
|
82
|
+
"./docs-search-tool": {
|
|
83
|
+
"import": "./docs-search-tool.mjs",
|
|
84
|
+
"require": "./docs-search-tool.js"
|
|
85
|
+
},
|
|
86
|
+
"./docs-search-tool.js": {
|
|
87
|
+
"default": "./docs-search-tool.js"
|
|
88
|
+
},
|
|
89
|
+
"./docs-search-tool.mjs": {
|
|
90
|
+
"default": "./docs-search-tool.mjs"
|
|
91
|
+
},
|
|
92
|
+
"./dynamic-tools": {
|
|
93
|
+
"import": "./dynamic-tools.mjs",
|
|
94
|
+
"require": "./dynamic-tools.js"
|
|
95
|
+
},
|
|
96
|
+
"./dynamic-tools.js": {
|
|
97
|
+
"default": "./dynamic-tools.js"
|
|
98
|
+
},
|
|
99
|
+
"./dynamic-tools.mjs": {
|
|
100
|
+
"default": "./dynamic-tools.mjs"
|
|
101
|
+
},
|
|
102
|
+
"./filtering": {
|
|
103
|
+
"import": "./filtering.mjs",
|
|
104
|
+
"require": "./filtering.js"
|
|
105
|
+
},
|
|
106
|
+
"./filtering.js": {
|
|
107
|
+
"default": "./filtering.js"
|
|
108
|
+
},
|
|
109
|
+
"./filtering.mjs": {
|
|
110
|
+
"default": "./filtering.mjs"
|
|
111
|
+
},
|
|
112
|
+
"./headers": {
|
|
113
|
+
"import": "./headers.mjs",
|
|
114
|
+
"require": "./headers.js"
|
|
115
|
+
},
|
|
116
|
+
"./headers.js": {
|
|
117
|
+
"default": "./headers.js"
|
|
118
|
+
},
|
|
119
|
+
"./headers.mjs": {
|
|
120
|
+
"default": "./headers.mjs"
|
|
121
|
+
},
|
|
122
|
+
"./http": {
|
|
123
|
+
"import": "./http.mjs",
|
|
124
|
+
"require": "./http.js"
|
|
125
|
+
},
|
|
126
|
+
"./http.js": {
|
|
127
|
+
"default": "./http.js"
|
|
128
|
+
},
|
|
129
|
+
"./http.mjs": {
|
|
130
|
+
"default": "./http.mjs"
|
|
131
|
+
},
|
|
132
|
+
"./index": {
|
|
133
|
+
"import": "./index.mjs",
|
|
134
|
+
"require": "./index.js"
|
|
135
|
+
},
|
|
136
|
+
"./index.js": {
|
|
137
|
+
"default": "./index.js"
|
|
138
|
+
},
|
|
139
|
+
"./index.mjs": {
|
|
140
|
+
"default": "./index.mjs"
|
|
141
|
+
},
|
|
142
|
+
"./options": {
|
|
143
|
+
"import": "./options.mjs",
|
|
144
|
+
"require": "./options.js"
|
|
145
|
+
},
|
|
146
|
+
"./options.js": {
|
|
147
|
+
"default": "./options.js"
|
|
148
|
+
},
|
|
149
|
+
"./options.mjs": {
|
|
150
|
+
"default": "./options.mjs"
|
|
151
|
+
},
|
|
152
|
+
"./server": {
|
|
153
|
+
"import": "./server.mjs",
|
|
154
|
+
"require": "./server.js"
|
|
155
|
+
},
|
|
156
|
+
"./server.js": {
|
|
157
|
+
"default": "./server.js"
|
|
158
|
+
},
|
|
159
|
+
"./server.mjs": {
|
|
160
|
+
"default": "./server.mjs"
|
|
161
|
+
},
|
|
162
|
+
"./stdio": {
|
|
163
|
+
"import": "./stdio.mjs",
|
|
164
|
+
"require": "./stdio.js"
|
|
165
|
+
},
|
|
166
|
+
"./stdio.js": {
|
|
167
|
+
"default": "./stdio.js"
|
|
168
|
+
},
|
|
169
|
+
"./stdio.mjs": {
|
|
170
|
+
"default": "./stdio.mjs"
|
|
171
|
+
},
|
|
172
|
+
"./tools/*.mjs": {
|
|
173
|
+
"default": "./tools/*.mjs"
|
|
174
|
+
},
|
|
175
|
+
"./tools/*.js": {
|
|
176
|
+
"default": "./tools/*.js"
|
|
177
|
+
},
|
|
178
|
+
"./tools/*": {
|
|
179
|
+
"import": "./tools/*.mjs",
|
|
180
|
+
"require": "./tools/*.js"
|
|
181
|
+
},
|
|
182
|
+
"./tools": {
|
|
183
|
+
"import": "./tools.mjs",
|
|
184
|
+
"require": "./tools.js"
|
|
185
|
+
},
|
|
186
|
+
"./tools.js": {
|
|
187
|
+
"default": "./tools.js"
|
|
188
|
+
},
|
|
189
|
+
"./tools.mjs": {
|
|
190
|
+
"default": "./tools.mjs"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"scripts": {
|
|
194
|
+
"test": "jest",
|
|
195
|
+
"build": "bash ./build",
|
|
196
|
+
"format": "prettier --write --cache --cache-strategy metadata . !dist",
|
|
197
|
+
"tsn": "ts-node -r tsconfig-paths/register",
|
|
198
|
+
"lint": "eslint --ext ts,js .",
|
|
199
|
+
"fix": "eslint --fix --ext ts,js ."
|
|
200
|
+
}
|
|
201
|
+
}
|