@zavudev/sdk-mcp 0.15.1 → 0.16.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 +13 -228
- package/code-tool.d.mts +2 -44
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts +2 -44
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +2 -2
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +2 -2
- package/code-tool.mjs.map +1 -1
- package/docs-search-tool.d.mts +3 -3
- package/docs-search-tool.d.mts.map +1 -1
- package/docs-search-tool.d.ts +3 -3
- package/docs-search-tool.d.ts.map +1 -1
- package/docs-search-tool.js +1 -1
- package/docs-search-tool.js.map +1 -1
- package/docs-search-tool.mjs +1 -1
- package/http.d.mts.map +1 -1
- package/http.d.ts.map +1 -1
- package/http.js +1 -18
- package/http.js.map +1 -1
- package/http.mjs +1 -18
- package/http.mjs.map +1 -1
- package/index.js +4 -40
- package/index.js.map +1 -1
- package/index.mjs +4 -40
- package/index.mjs.map +1 -1
- package/options.d.mts +0 -9
- package/options.d.mts.map +1 -1
- package/options.d.ts +0 -9
- package/options.d.ts.map +1 -1
- package/options.js +4 -359
- package/options.js.map +1 -1
- package/options.mjs +4 -359
- package/options.mjs.map +1 -1
- package/package.json +9 -49
- package/server.d.mts +3 -8
- package/server.d.mts.map +1 -1
- package/server.d.ts +3 -8
- package/server.d.ts.map +1 -1
- package/server.js +12 -65
- package/server.js.map +1 -1
- package/server.mjs +11 -62
- package/server.mjs.map +1 -1
- package/src/code-tool.ts +2 -2
- package/src/docs-search-tool.ts +1 -1
- package/src/http.ts +1 -19
- package/src/index.ts +5 -52
- package/src/options.ts +5 -386
- package/src/server.ts +12 -72
- package/src/stdio.ts +2 -3
- package/src/{tools/types.ts → types.ts} +1 -1
- package/stdio.d.mts +1 -2
- package/stdio.d.mts.map +1 -1
- package/stdio.d.ts +1 -2
- package/stdio.d.ts.map +1 -1
- package/stdio.js +2 -2
- package/stdio.js.map +1 -1
- package/stdio.mjs +2 -2
- package/stdio.mjs.map +1 -1
- package/{tools/types.d.mts → types.d.mts} +1 -1
- package/types.d.mts.map +1 -0
- package/{tools/types.d.ts → types.d.ts} +1 -1
- package/types.d.ts.map +1 -0
- package/types.js.map +1 -0
- package/types.mjs.map +1 -0
- package/compat.d.mts +0 -58
- package/compat.d.mts.map +0 -1
- package/compat.d.ts +0 -58
- package/compat.d.ts.map +0 -1
- package/compat.js +0 -387
- package/compat.js.map +0 -1
- package/compat.mjs +0 -378
- 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 -135
- package/dynamic-tools.js.map +0 -1
- package/dynamic-tools.mjs +0 -132
- package/dynamic-tools.mjs.map +0 -1
- package/filtering.d.mts +0 -3
- package/filtering.d.mts.map +0 -1
- package/filtering.d.ts +0 -3
- package/filtering.d.ts.map +0 -1
- package/filtering.js +0 -24
- package/filtering.js.map +0 -1
- package/filtering.mjs +0 -16
- package/filtering.mjs.map +0 -1
- package/src/compat.ts +0 -483
- package/src/dynamic-tools.ts +0 -153
- package/src/filtering.ts +0 -18
- package/src/tools/broadcasts/cancel-broadcasts.ts +0 -52
- package/src/tools/broadcasts/contacts/add-broadcasts-contacts.ts +0 -73
- package/src/tools/broadcasts/contacts/list-broadcasts-contacts.ts +0 -71
- package/src/tools/broadcasts/contacts/remove-broadcasts-contacts.ts +0 -43
- package/src/tools/broadcasts/create-broadcasts.ts +0 -134
- package/src/tools/broadcasts/delete-broadcasts.ts +0 -40
- package/src/tools/broadcasts/list-broadcasts.ts +0 -68
- package/src/tools/broadcasts/progress-broadcasts.ts +0 -54
- package/src/tools/broadcasts/retrieve-broadcasts.ts +0 -54
- package/src/tools/broadcasts/send-broadcasts.ts +0 -57
- package/src/tools/broadcasts/update-broadcasts.ts +0 -106
- package/src/tools/contacts/list-contacts.ts +0 -61
- package/src/tools/contacts/retrieve-by-phone-contacts.ts +0 -56
- package/src/tools/contacts/retrieve-contacts.ts +0 -54
- package/src/tools/contacts/update-contacts.ts +0 -61
- package/src/tools/index.ts +0 -149
- package/src/tools/introspect/validate-phone-introspect.ts +0 -52
- package/src/tools/messages/list-messages.ts +0 -78
- package/src/tools/messages/react-messages.ts +0 -59
- package/src/tools/messages/retrieve-messages.ts +0 -54
- package/src/tools/messages/send-messages.ts +0 -233
- package/src/tools/phone-numbers/list-phone-numbers.ts +0 -68
- package/src/tools/phone-numbers/purchase-phone-numbers.ts +0 -57
- package/src/tools/phone-numbers/release-phone-numbers.ts +0 -40
- package/src/tools/phone-numbers/retrieve-phone-numbers.ts +0 -56
- package/src/tools/phone-numbers/search-available-phone-numbers.ts +0 -72
- package/src/tools/phone-numbers/update-phone-numbers.ts +0 -62
- package/src/tools/senders/create-senders.ts +0 -86
- package/src/tools/senders/delete-senders.ts +0 -40
- package/src/tools/senders/get-profile-senders.ts +0 -54
- package/src/tools/senders/list-senders.ts +0 -58
- package/src/tools/senders/regenerate-webhook-secret-senders.ts +0 -54
- package/src/tools/senders/retrieve-senders.ts +0 -54
- package/src/tools/senders/update-profile-senders.ts +0 -107
- package/src/tools/senders/update-senders.ts +0 -90
- package/src/tools/senders/upload-profile-picture-senders.ts +0 -63
- package/src/tools/templates/create-templates.ts +0 -74
- package/src/tools/templates/delete-templates.ts +0 -40
- package/src/tools/templates/list-templates.ts +0 -58
- package/src/tools/templates/retrieve-templates.ts +0 -54
- package/src/tools/templates/submit-templates.ts +0 -66
- package/src/tools.ts +0 -1
- package/tools/broadcasts/cancel-broadcasts.d.mts +0 -51
- package/tools/broadcasts/cancel-broadcasts.d.mts.map +0 -1
- package/tools/broadcasts/cancel-broadcasts.d.ts +0 -51
- package/tools/broadcasts/cancel-broadcasts.d.ts.map +0 -1
- package/tools/broadcasts/cancel-broadcasts.js +0 -52
- package/tools/broadcasts/cancel-broadcasts.js.map +0 -1
- package/tools/broadcasts/cancel-broadcasts.mjs +0 -45
- package/tools/broadcasts/cancel-broadcasts.mjs.map +0 -1
- package/tools/broadcasts/contacts/add-broadcasts-contacts.d.mts +0 -51
- package/tools/broadcasts/contacts/add-broadcasts-contacts.d.mts.map +0 -1
- package/tools/broadcasts/contacts/add-broadcasts-contacts.d.ts +0 -51
- package/tools/broadcasts/contacts/add-broadcasts-contacts.d.ts.map +0 -1
- package/tools/broadcasts/contacts/add-broadcasts-contacts.js +0 -71
- package/tools/broadcasts/contacts/add-broadcasts-contacts.js.map +0 -1
- package/tools/broadcasts/contacts/add-broadcasts-contacts.mjs +0 -64
- package/tools/broadcasts/contacts/add-broadcasts-contacts.mjs.map +0 -1
- package/tools/broadcasts/contacts/list-broadcasts-contacts.d.mts +0 -51
- package/tools/broadcasts/contacts/list-broadcasts-contacts.d.mts.map +0 -1
- package/tools/broadcasts/contacts/list-broadcasts-contacts.d.ts +0 -51
- package/tools/broadcasts/contacts/list-broadcasts-contacts.d.ts.map +0 -1
- package/tools/broadcasts/contacts/list-broadcasts-contacts.js +0 -71
- package/tools/broadcasts/contacts/list-broadcasts-contacts.js.map +0 -1
- package/tools/broadcasts/contacts/list-broadcasts-contacts.mjs +0 -64
- package/tools/broadcasts/contacts/list-broadcasts-contacts.mjs.map +0 -1
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.d.mts +0 -51
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.d.mts.map +0 -1
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.d.ts +0 -51
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.d.ts.map +0 -1
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.js +0 -40
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.js.map +0 -1
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.mjs +0 -36
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.mjs.map +0 -1
- package/tools/broadcasts/create-broadcasts.d.mts +0 -51
- package/tools/broadcasts/create-broadcasts.d.mts.map +0 -1
- package/tools/broadcasts/create-broadcasts.d.ts +0 -51
- package/tools/broadcasts/create-broadcasts.d.ts.map +0 -1
- package/tools/broadcasts/create-broadcasts.js +0 -134
- package/tools/broadcasts/create-broadcasts.js.map +0 -1
- package/tools/broadcasts/create-broadcasts.mjs +0 -127
- package/tools/broadcasts/create-broadcasts.mjs.map +0 -1
- package/tools/broadcasts/delete-broadcasts.d.mts +0 -51
- package/tools/broadcasts/delete-broadcasts.d.mts.map +0 -1
- package/tools/broadcasts/delete-broadcasts.d.ts +0 -51
- package/tools/broadcasts/delete-broadcasts.d.ts.map +0 -1
- package/tools/broadcasts/delete-broadcasts.js +0 -37
- package/tools/broadcasts/delete-broadcasts.js.map +0 -1
- package/tools/broadcasts/delete-broadcasts.mjs +0 -33
- package/tools/broadcasts/delete-broadcasts.mjs.map +0 -1
- package/tools/broadcasts/list-broadcasts.d.mts +0 -51
- package/tools/broadcasts/list-broadcasts.d.mts.map +0 -1
- package/tools/broadcasts/list-broadcasts.d.ts +0 -51
- package/tools/broadcasts/list-broadcasts.d.ts.map +0 -1
- package/tools/broadcasts/list-broadcasts.js +0 -68
- package/tools/broadcasts/list-broadcasts.js.map +0 -1
- package/tools/broadcasts/list-broadcasts.mjs +0 -61
- package/tools/broadcasts/list-broadcasts.mjs.map +0 -1
- package/tools/broadcasts/progress-broadcasts.d.mts +0 -51
- package/tools/broadcasts/progress-broadcasts.d.mts.map +0 -1
- package/tools/broadcasts/progress-broadcasts.d.ts +0 -51
- package/tools/broadcasts/progress-broadcasts.d.ts.map +0 -1
- package/tools/broadcasts/progress-broadcasts.js +0 -54
- package/tools/broadcasts/progress-broadcasts.js.map +0 -1
- package/tools/broadcasts/progress-broadcasts.mjs +0 -47
- package/tools/broadcasts/progress-broadcasts.mjs.map +0 -1
- package/tools/broadcasts/retrieve-broadcasts.d.mts +0 -51
- package/tools/broadcasts/retrieve-broadcasts.d.mts.map +0 -1
- package/tools/broadcasts/retrieve-broadcasts.d.ts +0 -51
- package/tools/broadcasts/retrieve-broadcasts.d.ts.map +0 -1
- package/tools/broadcasts/retrieve-broadcasts.js +0 -54
- package/tools/broadcasts/retrieve-broadcasts.js.map +0 -1
- package/tools/broadcasts/retrieve-broadcasts.mjs +0 -47
- package/tools/broadcasts/retrieve-broadcasts.mjs.map +0 -1
- package/tools/broadcasts/send-broadcasts.d.mts +0 -51
- package/tools/broadcasts/send-broadcasts.d.mts.map +0 -1
- package/tools/broadcasts/send-broadcasts.d.ts +0 -51
- package/tools/broadcasts/send-broadcasts.d.ts.map +0 -1
- package/tools/broadcasts/send-broadcasts.js +0 -57
- package/tools/broadcasts/send-broadcasts.js.map +0 -1
- package/tools/broadcasts/send-broadcasts.mjs +0 -50
- package/tools/broadcasts/send-broadcasts.mjs.map +0 -1
- package/tools/broadcasts/update-broadcasts.d.mts +0 -51
- package/tools/broadcasts/update-broadcasts.d.mts.map +0 -1
- package/tools/broadcasts/update-broadcasts.d.ts +0 -51
- package/tools/broadcasts/update-broadcasts.d.ts.map +0 -1
- package/tools/broadcasts/update-broadcasts.js +0 -104
- package/tools/broadcasts/update-broadcasts.js.map +0 -1
- package/tools/broadcasts/update-broadcasts.mjs +0 -97
- package/tools/broadcasts/update-broadcasts.mjs.map +0 -1
- package/tools/contacts/list-contacts.d.mts +0 -51
- package/tools/contacts/list-contacts.d.mts.map +0 -1
- package/tools/contacts/list-contacts.d.ts +0 -51
- package/tools/contacts/list-contacts.d.ts.map +0 -1
- package/tools/contacts/list-contacts.js +0 -61
- package/tools/contacts/list-contacts.js.map +0 -1
- package/tools/contacts/list-contacts.mjs +0 -54
- package/tools/contacts/list-contacts.mjs.map +0 -1
- package/tools/contacts/retrieve-by-phone-contacts.d.mts +0 -51
- package/tools/contacts/retrieve-by-phone-contacts.d.mts.map +0 -1
- package/tools/contacts/retrieve-by-phone-contacts.d.ts +0 -51
- package/tools/contacts/retrieve-by-phone-contacts.d.ts.map +0 -1
- package/tools/contacts/retrieve-by-phone-contacts.js +0 -54
- package/tools/contacts/retrieve-by-phone-contacts.js.map +0 -1
- package/tools/contacts/retrieve-by-phone-contacts.mjs +0 -47
- package/tools/contacts/retrieve-by-phone-contacts.mjs.map +0 -1
- package/tools/contacts/retrieve-contacts.d.mts +0 -51
- package/tools/contacts/retrieve-contacts.d.mts.map +0 -1
- package/tools/contacts/retrieve-contacts.d.ts +0 -51
- package/tools/contacts/retrieve-contacts.d.ts.map +0 -1
- package/tools/contacts/retrieve-contacts.js +0 -54
- package/tools/contacts/retrieve-contacts.js.map +0 -1
- package/tools/contacts/retrieve-contacts.mjs +0 -47
- package/tools/contacts/retrieve-contacts.mjs.map +0 -1
- package/tools/contacts/update-contacts.d.mts +0 -51
- package/tools/contacts/update-contacts.d.mts.map +0 -1
- package/tools/contacts/update-contacts.d.ts +0 -51
- package/tools/contacts/update-contacts.d.ts.map +0 -1
- package/tools/contacts/update-contacts.js +0 -61
- package/tools/contacts/update-contacts.js.map +0 -1
- package/tools/contacts/update-contacts.mjs +0 -54
- package/tools/contacts/update-contacts.mjs.map +0 -1
- package/tools/index.d.mts +0 -10
- package/tools/index.d.mts.map +0 -1
- package/tools/index.d.ts +0 -10
- package/tools/index.d.ts.map +0 -1
- package/tools/index.js +0 -133
- package/tools/index.js.map +0 -1
- package/tools/index.mjs +0 -126
- package/tools/index.mjs.map +0 -1
- package/tools/introspect/validate-phone-introspect.d.mts +0 -51
- package/tools/introspect/validate-phone-introspect.d.mts.map +0 -1
- package/tools/introspect/validate-phone-introspect.d.ts +0 -51
- package/tools/introspect/validate-phone-introspect.d.ts.map +0 -1
- package/tools/introspect/validate-phone-introspect.js +0 -52
- package/tools/introspect/validate-phone-introspect.js.map +0 -1
- package/tools/introspect/validate-phone-introspect.mjs +0 -45
- package/tools/introspect/validate-phone-introspect.mjs.map +0 -1
- package/tools/messages/list-messages.d.mts +0 -51
- package/tools/messages/list-messages.d.mts.map +0 -1
- package/tools/messages/list-messages.d.ts +0 -51
- package/tools/messages/list-messages.d.ts.map +0 -1
- package/tools/messages/list-messages.js +0 -78
- package/tools/messages/list-messages.js.map +0 -1
- package/tools/messages/list-messages.mjs +0 -71
- package/tools/messages/list-messages.mjs.map +0 -1
- package/tools/messages/react-messages.d.mts +0 -51
- package/tools/messages/react-messages.d.mts.map +0 -1
- package/tools/messages/react-messages.d.ts +0 -51
- package/tools/messages/react-messages.d.ts.map +0 -1
- package/tools/messages/react-messages.js +0 -59
- package/tools/messages/react-messages.js.map +0 -1
- package/tools/messages/react-messages.mjs +0 -52
- package/tools/messages/react-messages.mjs.map +0 -1
- package/tools/messages/retrieve-messages.d.mts +0 -51
- package/tools/messages/retrieve-messages.d.mts.map +0 -1
- package/tools/messages/retrieve-messages.d.ts +0 -51
- package/tools/messages/retrieve-messages.d.ts.map +0 -1
- package/tools/messages/retrieve-messages.js +0 -54
- package/tools/messages/retrieve-messages.js.map +0 -1
- package/tools/messages/retrieve-messages.mjs +0 -47
- package/tools/messages/retrieve-messages.mjs.map +0 -1
- package/tools/messages/send-messages.d.mts +0 -51
- package/tools/messages/send-messages.d.mts.map +0 -1
- package/tools/messages/send-messages.d.ts +0 -51
- package/tools/messages/send-messages.d.ts.map +0 -1
- package/tools/messages/send-messages.js +0 -233
- package/tools/messages/send-messages.js.map +0 -1
- package/tools/messages/send-messages.mjs +0 -226
- package/tools/messages/send-messages.mjs.map +0 -1
- package/tools/phone-numbers/list-phone-numbers.d.mts +0 -51
- package/tools/phone-numbers/list-phone-numbers.d.mts.map +0 -1
- package/tools/phone-numbers/list-phone-numbers.d.ts +0 -51
- package/tools/phone-numbers/list-phone-numbers.d.ts.map +0 -1
- package/tools/phone-numbers/list-phone-numbers.js +0 -68
- package/tools/phone-numbers/list-phone-numbers.js.map +0 -1
- package/tools/phone-numbers/list-phone-numbers.mjs +0 -61
- package/tools/phone-numbers/list-phone-numbers.mjs.map +0 -1
- package/tools/phone-numbers/purchase-phone-numbers.d.mts +0 -51
- package/tools/phone-numbers/purchase-phone-numbers.d.mts.map +0 -1
- package/tools/phone-numbers/purchase-phone-numbers.d.ts +0 -51
- package/tools/phone-numbers/purchase-phone-numbers.d.ts.map +0 -1
- package/tools/phone-numbers/purchase-phone-numbers.js +0 -57
- package/tools/phone-numbers/purchase-phone-numbers.js.map +0 -1
- package/tools/phone-numbers/purchase-phone-numbers.mjs +0 -50
- package/tools/phone-numbers/purchase-phone-numbers.mjs.map +0 -1
- package/tools/phone-numbers/release-phone-numbers.d.mts +0 -51
- package/tools/phone-numbers/release-phone-numbers.d.mts.map +0 -1
- package/tools/phone-numbers/release-phone-numbers.d.ts +0 -51
- package/tools/phone-numbers/release-phone-numbers.d.ts.map +0 -1
- package/tools/phone-numbers/release-phone-numbers.js +0 -37
- package/tools/phone-numbers/release-phone-numbers.js.map +0 -1
- package/tools/phone-numbers/release-phone-numbers.mjs +0 -33
- package/tools/phone-numbers/release-phone-numbers.mjs.map +0 -1
- package/tools/phone-numbers/retrieve-phone-numbers.d.mts +0 -51
- package/tools/phone-numbers/retrieve-phone-numbers.d.mts.map +0 -1
- package/tools/phone-numbers/retrieve-phone-numbers.d.ts +0 -51
- package/tools/phone-numbers/retrieve-phone-numbers.d.ts.map +0 -1
- package/tools/phone-numbers/retrieve-phone-numbers.js +0 -54
- package/tools/phone-numbers/retrieve-phone-numbers.js.map +0 -1
- package/tools/phone-numbers/retrieve-phone-numbers.mjs +0 -47
- package/tools/phone-numbers/retrieve-phone-numbers.mjs.map +0 -1
- package/tools/phone-numbers/search-available-phone-numbers.d.mts +0 -51
- package/tools/phone-numbers/search-available-phone-numbers.d.mts.map +0 -1
- package/tools/phone-numbers/search-available-phone-numbers.d.ts +0 -51
- package/tools/phone-numbers/search-available-phone-numbers.d.ts.map +0 -1
- package/tools/phone-numbers/search-available-phone-numbers.js +0 -72
- package/tools/phone-numbers/search-available-phone-numbers.js.map +0 -1
- package/tools/phone-numbers/search-available-phone-numbers.mjs +0 -65
- package/tools/phone-numbers/search-available-phone-numbers.mjs.map +0 -1
- package/tools/phone-numbers/update-phone-numbers.d.mts +0 -51
- package/tools/phone-numbers/update-phone-numbers.d.mts.map +0 -1
- package/tools/phone-numbers/update-phone-numbers.d.ts +0 -51
- package/tools/phone-numbers/update-phone-numbers.d.ts.map +0 -1
- package/tools/phone-numbers/update-phone-numbers.js +0 -60
- package/tools/phone-numbers/update-phone-numbers.js.map +0 -1
- package/tools/phone-numbers/update-phone-numbers.mjs +0 -53
- package/tools/phone-numbers/update-phone-numbers.mjs.map +0 -1
- package/tools/senders/create-senders.d.mts +0 -51
- package/tools/senders/create-senders.d.mts.map +0 -1
- package/tools/senders/create-senders.d.ts +0 -51
- package/tools/senders/create-senders.d.ts.map +0 -1
- package/tools/senders/create-senders.js +0 -85
- package/tools/senders/create-senders.js.map +0 -1
- package/tools/senders/create-senders.mjs +0 -78
- package/tools/senders/create-senders.mjs.map +0 -1
- package/tools/senders/delete-senders.d.mts +0 -51
- package/tools/senders/delete-senders.d.mts.map +0 -1
- package/tools/senders/delete-senders.d.ts +0 -51
- package/tools/senders/delete-senders.d.ts.map +0 -1
- package/tools/senders/delete-senders.js +0 -37
- package/tools/senders/delete-senders.js.map +0 -1
- package/tools/senders/delete-senders.mjs +0 -33
- package/tools/senders/delete-senders.mjs.map +0 -1
- package/tools/senders/get-profile-senders.d.mts +0 -51
- package/tools/senders/get-profile-senders.d.mts.map +0 -1
- package/tools/senders/get-profile-senders.d.ts +0 -51
- package/tools/senders/get-profile-senders.d.ts.map +0 -1
- package/tools/senders/get-profile-senders.js +0 -54
- package/tools/senders/get-profile-senders.js.map +0 -1
- package/tools/senders/get-profile-senders.mjs +0 -47
- package/tools/senders/get-profile-senders.mjs.map +0 -1
- package/tools/senders/list-senders.d.mts +0 -51
- package/tools/senders/list-senders.d.mts.map +0 -1
- package/tools/senders/list-senders.d.ts +0 -51
- package/tools/senders/list-senders.d.ts.map +0 -1
- package/tools/senders/list-senders.js +0 -58
- package/tools/senders/list-senders.js.map +0 -1
- package/tools/senders/list-senders.mjs +0 -51
- package/tools/senders/list-senders.mjs.map +0 -1
- package/tools/senders/regenerate-webhook-secret-senders.d.mts +0 -51
- package/tools/senders/regenerate-webhook-secret-senders.d.mts.map +0 -1
- package/tools/senders/regenerate-webhook-secret-senders.d.ts +0 -51
- package/tools/senders/regenerate-webhook-secret-senders.d.ts.map +0 -1
- package/tools/senders/regenerate-webhook-secret-senders.js +0 -52
- package/tools/senders/regenerate-webhook-secret-senders.js.map +0 -1
- package/tools/senders/regenerate-webhook-secret-senders.mjs +0 -45
- package/tools/senders/regenerate-webhook-secret-senders.mjs.map +0 -1
- package/tools/senders/retrieve-senders.d.mts +0 -51
- package/tools/senders/retrieve-senders.d.mts.map +0 -1
- package/tools/senders/retrieve-senders.d.ts +0 -51
- package/tools/senders/retrieve-senders.d.ts.map +0 -1
- package/tools/senders/retrieve-senders.js +0 -54
- package/tools/senders/retrieve-senders.js.map +0 -1
- package/tools/senders/retrieve-senders.mjs +0 -47
- package/tools/senders/retrieve-senders.mjs.map +0 -1
- package/tools/senders/update-profile-senders.d.mts +0 -51
- package/tools/senders/update-profile-senders.d.mts.map +0 -1
- package/tools/senders/update-profile-senders.d.ts +0 -51
- package/tools/senders/update-profile-senders.d.ts.map +0 -1
- package/tools/senders/update-profile-senders.js +0 -105
- package/tools/senders/update-profile-senders.js.map +0 -1
- package/tools/senders/update-profile-senders.mjs +0 -98
- package/tools/senders/update-profile-senders.mjs.map +0 -1
- package/tools/senders/update-senders.d.mts +0 -51
- package/tools/senders/update-senders.d.mts.map +0 -1
- package/tools/senders/update-senders.d.ts +0 -51
- package/tools/senders/update-senders.d.ts.map +0 -1
- package/tools/senders/update-senders.js +0 -89
- package/tools/senders/update-senders.js.map +0 -1
- package/tools/senders/update-senders.mjs +0 -82
- package/tools/senders/update-senders.mjs.map +0 -1
- package/tools/senders/upload-profile-picture-senders.d.mts +0 -51
- package/tools/senders/upload-profile-picture-senders.d.mts.map +0 -1
- package/tools/senders/upload-profile-picture-senders.d.ts +0 -51
- package/tools/senders/upload-profile-picture-senders.d.ts.map +0 -1
- package/tools/senders/upload-profile-picture-senders.js +0 -61
- package/tools/senders/upload-profile-picture-senders.js.map +0 -1
- package/tools/senders/upload-profile-picture-senders.mjs +0 -54
- package/tools/senders/upload-profile-picture-senders.mjs.map +0 -1
- package/tools/templates/create-templates.d.mts +0 -51
- package/tools/templates/create-templates.d.mts.map +0 -1
- package/tools/templates/create-templates.d.ts +0 -51
- package/tools/templates/create-templates.d.ts.map +0 -1
- package/tools/templates/create-templates.js +0 -74
- package/tools/templates/create-templates.js.map +0 -1
- package/tools/templates/create-templates.mjs +0 -67
- package/tools/templates/create-templates.mjs.map +0 -1
- package/tools/templates/delete-templates.d.mts +0 -51
- package/tools/templates/delete-templates.d.mts.map +0 -1
- package/tools/templates/delete-templates.d.ts +0 -51
- package/tools/templates/delete-templates.d.ts.map +0 -1
- package/tools/templates/delete-templates.js +0 -37
- package/tools/templates/delete-templates.js.map +0 -1
- package/tools/templates/delete-templates.mjs +0 -33
- package/tools/templates/delete-templates.mjs.map +0 -1
- package/tools/templates/list-templates.d.mts +0 -51
- package/tools/templates/list-templates.d.mts.map +0 -1
- package/tools/templates/list-templates.d.ts +0 -51
- package/tools/templates/list-templates.d.ts.map +0 -1
- package/tools/templates/list-templates.js +0 -58
- package/tools/templates/list-templates.js.map +0 -1
- package/tools/templates/list-templates.mjs +0 -51
- package/tools/templates/list-templates.mjs.map +0 -1
- package/tools/templates/retrieve-templates.d.mts +0 -51
- package/tools/templates/retrieve-templates.d.mts.map +0 -1
- package/tools/templates/retrieve-templates.d.ts +0 -51
- package/tools/templates/retrieve-templates.d.ts.map +0 -1
- package/tools/templates/retrieve-templates.js +0 -54
- package/tools/templates/retrieve-templates.js.map +0 -1
- package/tools/templates/retrieve-templates.mjs +0 -47
- package/tools/templates/retrieve-templates.mjs.map +0 -1
- package/tools/templates/submit-templates.d.mts +0 -51
- package/tools/templates/submit-templates.d.mts.map +0 -1
- package/tools/templates/submit-templates.d.ts +0 -51
- package/tools/templates/submit-templates.d.ts.map +0 -1
- package/tools/templates/submit-templates.js +0 -66
- package/tools/templates/submit-templates.js.map +0 -1
- package/tools/templates/submit-templates.mjs +0 -59
- package/tools/templates/submit-templates.mjs.map +0 -1
- package/tools/types.d.mts.map +0 -1
- package/tools/types.d.ts.map +0 -1
- package/tools/types.js.map +0 -1
- package/tools/types.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/{tools/types.js → types.js} +0 -0
- /package/{tools/types.mjs → types.mjs} +0 -0
package/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","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.ts","sourceRoot":"","sources":["src/server.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,MAAM,2CAA2C;OAC3D,EAAE,SAAS,EAAE,MAAM,yCAAyC;OAM5D,EAAE,aAAa,EAAE,MAAM,cAAc;OACrC,OAAO,MAAM,cAAc;OAG3B,EAAE,UAAU,EAAE;OACd,EAAE,eAAe,EAAE,OAAO,EAAE;OAE5B,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAAE,MAAM,cAAc;AAE5C,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,QAoEA;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,OAAO,EACf,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"}
|
package/server.js
CHANGED
|
@@ -4,25 +4,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.readEnvOrError = exports.readEnv = exports.server = exports.newMcpServer =
|
|
7
|
+
exports.readEnvOrError = exports.readEnv = exports.server = exports.newMcpServer = void 0;
|
|
8
8
|
exports.initMcpServer = initMcpServer;
|
|
9
9
|
exports.selectTools = selectTools;
|
|
10
10
|
exports.executeHandler = executeHandler;
|
|
11
11
|
const mcp_js_1 = require("@modelcontextprotocol/sdk/server/mcp.js");
|
|
12
|
-
const tools_1 = require("./tools.js");
|
|
13
12
|
const types_js_1 = require("@modelcontextprotocol/sdk/types.js");
|
|
14
13
|
const sdk_1 = __importDefault(require("@zavudev/sdk"));
|
|
15
|
-
const compat_1 = require("./compat.js");
|
|
16
|
-
const dynamic_tools_1 = require("./dynamic-tools.js");
|
|
17
14
|
const code_tool_1 = require("./code-tool.js");
|
|
18
15
|
const docs_search_tool_1 = __importDefault(require("./docs-search-tool.js"));
|
|
19
|
-
var compat_2 = require("./compat.js");
|
|
20
|
-
Object.defineProperty(exports, "ClientType", { enumerable: true, get: function () { return compat_2.ClientType; } });
|
|
21
|
-
var tools_2 = require("./tools.js");
|
|
22
|
-
Object.defineProperty(exports, "endpoints", { enumerable: true, get: function () { return tools_2.endpoints; } });
|
|
23
16
|
const newMcpServer = () => new mcp_js_1.McpServer({
|
|
24
17
|
name: 'zavudev_sdk_api',
|
|
25
|
-
version: '0.
|
|
18
|
+
version: '0.16.0',
|
|
26
19
|
}, { capabilities: { tools: {}, logging: {} } });
|
|
27
20
|
exports.newMcpServer = newMcpServer;
|
|
28
21
|
// Create server instance
|
|
@@ -33,23 +26,6 @@ exports.server = (0, exports.newMcpServer)();
|
|
|
33
26
|
*/
|
|
34
27
|
function initMcpServer(params) {
|
|
35
28
|
const server = params.server instanceof mcp_js_1.McpServer ? params.server.server : params.server;
|
|
36
|
-
const mcpOptions = params.mcpOptions ?? {};
|
|
37
|
-
let providedEndpoints = null;
|
|
38
|
-
let endpointMap = null;
|
|
39
|
-
const initTools = async (implementation) => {
|
|
40
|
-
if (implementation && (!mcpOptions.client || mcpOptions.client === 'infer')) {
|
|
41
|
-
mcpOptions.client =
|
|
42
|
-
implementation.name.toLowerCase().includes('claude') ? 'claude'
|
|
43
|
-
: implementation.name.toLowerCase().includes('cursor') ? 'cursor'
|
|
44
|
-
: undefined;
|
|
45
|
-
mcpOptions.capabilities = {
|
|
46
|
-
...(mcpOptions.client && compat_1.knownClients[mcpOptions.client]),
|
|
47
|
-
...mcpOptions.capabilities,
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
providedEndpoints ?? (providedEndpoints = await selectTools(tools_1.endpoints, mcpOptions));
|
|
51
|
-
endpointMap ?? (endpointMap = Object.fromEntries(providedEndpoints.map((endpoint) => [endpoint.tool.name, endpoint])));
|
|
52
|
-
};
|
|
53
29
|
const logAtLevel = (level) => (message, ...rest) => {
|
|
54
30
|
void server.sendLoggingMessage({
|
|
55
31
|
level,
|
|
@@ -70,24 +46,20 @@ function initMcpServer(params) {
|
|
|
70
46
|
'X-Stainless-MCP': 'true',
|
|
71
47
|
},
|
|
72
48
|
});
|
|
49
|
+
const providedTools = selectTools(params.mcpOptions);
|
|
50
|
+
const toolMap = Object.fromEntries(providedTools.map((mcpTool) => [mcpTool.tool.name, mcpTool]));
|
|
73
51
|
server.setRequestHandler(types_js_1.ListToolsRequestSchema, async () => {
|
|
74
|
-
if (providedEndpoints === null) {
|
|
75
|
-
await initTools(server.getClientVersion());
|
|
76
|
-
}
|
|
77
52
|
return {
|
|
78
|
-
tools:
|
|
53
|
+
tools: providedTools.map((mcpTool) => mcpTool.tool),
|
|
79
54
|
};
|
|
80
55
|
});
|
|
81
56
|
server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request) => {
|
|
82
|
-
if (endpointMap === null) {
|
|
83
|
-
await initTools(server.getClientVersion());
|
|
84
|
-
}
|
|
85
57
|
const { name, arguments: args } = request.params;
|
|
86
|
-
const
|
|
87
|
-
if (!
|
|
58
|
+
const mcpTool = toolMap[name];
|
|
59
|
+
if (!mcpTool) {
|
|
88
60
|
throw new Error(`Unknown tool: ${name}`);
|
|
89
61
|
}
|
|
90
|
-
return executeHandler(
|
|
62
|
+
return executeHandler(mcpTool.handler, client, args);
|
|
91
63
|
});
|
|
92
64
|
server.setRequestHandler(types_js_1.SetLevelRequestSchema, async (request) => {
|
|
93
65
|
const { level } = request.params;
|
|
@@ -115,42 +87,17 @@ function initMcpServer(params) {
|
|
|
115
87
|
/**
|
|
116
88
|
* Selects the tools to include in the MCP Server based on the provided options.
|
|
117
89
|
*/
|
|
118
|
-
|
|
119
|
-
const
|
|
120
|
-
let includedTools = filteredEndpoints.slice();
|
|
121
|
-
if (includedTools.length > 0) {
|
|
122
|
-
if (options?.includeDynamicTools) {
|
|
123
|
-
includedTools = (0, dynamic_tools_1.dynamicTools)(includedTools);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
if (options?.includeAllTools) {
|
|
128
|
-
includedTools = endpoints.slice();
|
|
129
|
-
}
|
|
130
|
-
else if (options?.includeDynamicTools) {
|
|
131
|
-
includedTools = (0, dynamic_tools_1.dynamicTools)(endpoints);
|
|
132
|
-
}
|
|
133
|
-
else if (options?.includeCodeTools) {
|
|
134
|
-
includedTools = [await (0, code_tool_1.codeTool)()];
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
includedTools = endpoints.slice();
|
|
138
|
-
}
|
|
139
|
-
}
|
|
90
|
+
function selectTools(options) {
|
|
91
|
+
const includedTools = [(0, code_tool_1.codeTool)()];
|
|
140
92
|
if (options?.includeDocsTools ?? true) {
|
|
141
93
|
includedTools.push(docs_search_tool_1.default);
|
|
142
94
|
}
|
|
143
|
-
|
|
144
|
-
return (0, compat_1.applyCompatibilityTransformations)(includedTools, capabilities);
|
|
95
|
+
return includedTools;
|
|
145
96
|
}
|
|
146
97
|
/**
|
|
147
98
|
* Runs the provided handler with the given client and arguments.
|
|
148
99
|
*/
|
|
149
|
-
async function executeHandler(
|
|
150
|
-
const options = { ...compat_1.defaultClientCapabilities, ...compatibilityOptions };
|
|
151
|
-
if (!options.validJson && args) {
|
|
152
|
-
args = (0, compat_1.parseEmbeddedJSON)(args, tool.inputSchema);
|
|
153
|
-
}
|
|
100
|
+
async function executeHandler(handler, client, args) {
|
|
154
101
|
return await handler(client, args || {});
|
|
155
102
|
}
|
|
156
103
|
const readEnv = (env) => {
|
package/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["src/server.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["src/server.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAmCtF,sCAwEC;AAKD,kCAMC;AAKD,wCAMC;AA9HD,oEAAoE;AACpE,iEAI4C;AAE5C,uDAAmC;AACnC,8CAAuC;AACvC,6EAAgD;AAOzC,MAAM,YAAY,GAAG,GAAG,EAAE,CAC/B,IAAI,kBAAS,CACX;IACE,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,QAAQ;CAClB,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AC5B,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,MAAM,IAAI,KAAK,CAAC,wBAAwB,GAAG,aAAa,CAAC,CAAC;IAC5D,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AANW,QAAA,cAAc,kBAMzB"}
|
package/server.mjs
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
|
-
import { endpoints, query } from "./tools.mjs";
|
|
4
3
|
import { CallToolRequestSchema, ListToolsRequestSchema, SetLevelRequestSchema, } from '@modelcontextprotocol/sdk/types.js';
|
|
5
4
|
import Zavudev from '@zavudev/sdk';
|
|
6
|
-
import { applyCompatibilityTransformations, defaultClientCapabilities, knownClients, parseEmbeddedJSON, } from "./compat.mjs";
|
|
7
|
-
import { dynamicTools } from "./dynamic-tools.mjs";
|
|
8
5
|
import { codeTool } from "./code-tool.mjs";
|
|
9
6
|
import docsSearchTool from "./docs-search-tool.mjs";
|
|
10
|
-
export { ClientType } from "./compat.mjs";
|
|
11
|
-
export { endpoints } from "./tools.mjs";
|
|
12
7
|
export const newMcpServer = () => new McpServer({
|
|
13
8
|
name: 'zavudev_sdk_api',
|
|
14
|
-
version: '0.
|
|
9
|
+
version: '0.16.0',
|
|
15
10
|
}, { capabilities: { tools: {}, logging: {} } });
|
|
16
11
|
// Create server instance
|
|
17
12
|
export const server = newMcpServer();
|
|
@@ -21,23 +16,6 @@ export const server = newMcpServer();
|
|
|
21
16
|
*/
|
|
22
17
|
export function initMcpServer(params) {
|
|
23
18
|
const server = params.server instanceof McpServer ? params.server.server : params.server;
|
|
24
|
-
const mcpOptions = params.mcpOptions ?? {};
|
|
25
|
-
let providedEndpoints = null;
|
|
26
|
-
let endpointMap = null;
|
|
27
|
-
const initTools = async (implementation) => {
|
|
28
|
-
if (implementation && (!mcpOptions.client || mcpOptions.client === 'infer')) {
|
|
29
|
-
mcpOptions.client =
|
|
30
|
-
implementation.name.toLowerCase().includes('claude') ? 'claude'
|
|
31
|
-
: implementation.name.toLowerCase().includes('cursor') ? 'cursor'
|
|
32
|
-
: undefined;
|
|
33
|
-
mcpOptions.capabilities = {
|
|
34
|
-
...(mcpOptions.client && knownClients[mcpOptions.client]),
|
|
35
|
-
...mcpOptions.capabilities,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
providedEndpoints ?? (providedEndpoints = await selectTools(endpoints, mcpOptions));
|
|
39
|
-
endpointMap ?? (endpointMap = Object.fromEntries(providedEndpoints.map((endpoint) => [endpoint.tool.name, endpoint])));
|
|
40
|
-
};
|
|
41
19
|
const logAtLevel = (level) => (message, ...rest) => {
|
|
42
20
|
void server.sendLoggingMessage({
|
|
43
21
|
level,
|
|
@@ -58,24 +36,20 @@ export function initMcpServer(params) {
|
|
|
58
36
|
'X-Stainless-MCP': 'true',
|
|
59
37
|
},
|
|
60
38
|
});
|
|
39
|
+
const providedTools = selectTools(params.mcpOptions);
|
|
40
|
+
const toolMap = Object.fromEntries(providedTools.map((mcpTool) => [mcpTool.tool.name, mcpTool]));
|
|
61
41
|
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
62
|
-
if (providedEndpoints === null) {
|
|
63
|
-
await initTools(server.getClientVersion());
|
|
64
|
-
}
|
|
65
42
|
return {
|
|
66
|
-
tools:
|
|
43
|
+
tools: providedTools.map((mcpTool) => mcpTool.tool),
|
|
67
44
|
};
|
|
68
45
|
});
|
|
69
46
|
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
70
|
-
if (endpointMap === null) {
|
|
71
|
-
await initTools(server.getClientVersion());
|
|
72
|
-
}
|
|
73
47
|
const { name, arguments: args } = request.params;
|
|
74
|
-
const
|
|
75
|
-
if (!
|
|
48
|
+
const mcpTool = toolMap[name];
|
|
49
|
+
if (!mcpTool) {
|
|
76
50
|
throw new Error(`Unknown tool: ${name}`);
|
|
77
51
|
}
|
|
78
|
-
return executeHandler(
|
|
52
|
+
return executeHandler(mcpTool.handler, client, args);
|
|
79
53
|
});
|
|
80
54
|
server.setRequestHandler(SetLevelRequestSchema, async (request) => {
|
|
81
55
|
const { level } = request.params;
|
|
@@ -103,42 +77,17 @@ export function initMcpServer(params) {
|
|
|
103
77
|
/**
|
|
104
78
|
* Selects the tools to include in the MCP Server based on the provided options.
|
|
105
79
|
*/
|
|
106
|
-
export
|
|
107
|
-
const
|
|
108
|
-
let includedTools = filteredEndpoints.slice();
|
|
109
|
-
if (includedTools.length > 0) {
|
|
110
|
-
if (options?.includeDynamicTools) {
|
|
111
|
-
includedTools = dynamicTools(includedTools);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
if (options?.includeAllTools) {
|
|
116
|
-
includedTools = endpoints.slice();
|
|
117
|
-
}
|
|
118
|
-
else if (options?.includeDynamicTools) {
|
|
119
|
-
includedTools = dynamicTools(endpoints);
|
|
120
|
-
}
|
|
121
|
-
else if (options?.includeCodeTools) {
|
|
122
|
-
includedTools = [await codeTool()];
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
includedTools = endpoints.slice();
|
|
126
|
-
}
|
|
127
|
-
}
|
|
80
|
+
export function selectTools(options) {
|
|
81
|
+
const includedTools = [codeTool()];
|
|
128
82
|
if (options?.includeDocsTools ?? true) {
|
|
129
83
|
includedTools.push(docsSearchTool);
|
|
130
84
|
}
|
|
131
|
-
|
|
132
|
-
return applyCompatibilityTransformations(includedTools, capabilities);
|
|
85
|
+
return includedTools;
|
|
133
86
|
}
|
|
134
87
|
/**
|
|
135
88
|
* Runs the provided handler with the given client and arguments.
|
|
136
89
|
*/
|
|
137
|
-
export async function executeHandler(
|
|
138
|
-
const options = { ...defaultClientCapabilities, ...compatibilityOptions };
|
|
139
|
-
if (!options.validJson && args) {
|
|
140
|
-
args = parseEmbeddedJSON(args, tool.inputSchema);
|
|
141
|
-
}
|
|
90
|
+
export async function executeHandler(handler, client, args) {
|
|
142
91
|
return await handler(client, args || {});
|
|
143
92
|
}
|
|
144
93
|
export const readEnv = (env) => {
|
package/server.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.mjs","sourceRoot":"","sources":["src/server.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,SAAS,EAAE,MAAM,yCAAyC;OAC5D,
|
|
1
|
+
{"version":3,"file":"server.mjs","sourceRoot":"","sources":["src/server.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,SAAS,EAAE,MAAM,yCAAyC;OAC5D,EACL,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,oCAAoC;OAEpC,OAAO,MAAM,cAAc;OAC3B,EAAE,QAAQ,EAAE;OACZ,cAAc;AAOrB,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE,CAC/B,IAAI,SAAS,CACX;IACE,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,QAAQ;CAClB,EACD,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,CAC7C,CAAC;AAEJ,yBAAyB;AACzB,MAAM,CAAC,MAAM,MAAM,GAAG,YAAY,EAAE,CAAC;AAErC;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,MAI7B;IACC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,YAAY,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;IAEzF,MAAM,UAAU,GACd,CAAC,KAA6C,EAAE,EAAE,CAClD,CAAC,OAAe,EAAE,GAAG,IAAe,EAAE,EAAE;QACtC,KAAK,MAAM,CAAC,kBAAkB,CAAC;YAC7B,KAAK;YACL,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;SACxB,CAAC,CAAC;I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AEzC,OAAO,MAAM,OAAO,CAAC,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAW,EAAsB,EAAE;IACzD,IAAI,OAAQ,UAAkB,CAAC,OAAO,KAAK,WAAW,EAAE,CAAC;QACvD,OAAQ,UAAkB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC;IACxD,CAAC;SAAM,IAAI,OAAQ,UAAkB,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;QAC3D,OAAQ,UAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC;IAC1D,CAAC;IACD,OAAO;AACT,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,GAAW,EAAU,EAAE;IACpD,IAAI,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5B,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,MAAM,IAAI,KAAK,CAAC,wBAAwB,GAAG,aAAa,CAAC,CAAC;IAC5D,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC"}
|
package/src/code-tool.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { Metadata, ToolCallResult, asTextContentResult } from './
|
|
3
|
+
import { McpTool, Metadata, ToolCallResult, asTextContentResult } from './types';
|
|
4
4
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
5
5
|
import { readEnv } from './server';
|
|
6
6
|
import { WorkerSuccess } from './code-tool-types';
|
|
@@ -13,7 +13,7 @@ import { WorkerSuccess } from './code-tool-types';
|
|
|
13
13
|
*
|
|
14
14
|
* @param endpoints - The endpoints to include in the list.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export function codeTool(): McpTool {
|
|
17
17
|
const metadata: Metadata = { resource: 'all', operation: 'write', tags: [] };
|
|
18
18
|
const tool: Tool = {
|
|
19
19
|
name: 'execute',
|
package/src/docs-search-tool.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { Metadata, asTextContentResult } from './
|
|
3
|
+
import { Metadata, asTextContentResult } from './types';
|
|
4
4
|
|
|
5
5
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
6
6
|
|
package/src/http.ts
CHANGED
|
@@ -4,38 +4,21 @@ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp';
|
|
|
4
4
|
import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
5
5
|
|
|
6
6
|
import express from 'express';
|
|
7
|
-
import {
|
|
8
|
-
import { McpOptions, parseQueryOptions } from './options';
|
|
7
|
+
import { McpOptions } from './options';
|
|
9
8
|
import { ClientOptions, initMcpServer, newMcpServer } from './server';
|
|
10
9
|
import { parseAuthHeaders } from './headers';
|
|
11
10
|
|
|
12
11
|
const newServer = ({
|
|
13
12
|
clientOptions,
|
|
14
|
-
mcpOptions: defaultMcpOptions,
|
|
15
13
|
req,
|
|
16
14
|
res,
|
|
17
15
|
}: {
|
|
18
16
|
clientOptions: ClientOptions;
|
|
19
|
-
mcpOptions: McpOptions;
|
|
20
17
|
req: express.Request;
|
|
21
18
|
res: express.Response;
|
|
22
19
|
}): McpServer | null => {
|
|
23
20
|
const server = newMcpServer();
|
|
24
21
|
|
|
25
|
-
let mcpOptions: McpOptions;
|
|
26
|
-
try {
|
|
27
|
-
mcpOptions = parseQueryOptions(defaultMcpOptions, req.query);
|
|
28
|
-
} catch (error) {
|
|
29
|
-
res.status(400).json({
|
|
30
|
-
jsonrpc: '2.0',
|
|
31
|
-
error: {
|
|
32
|
-
code: -32000,
|
|
33
|
-
message: `Invalid request: ${fromError(error)}`,
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
22
|
try {
|
|
40
23
|
const authOptions = parseAuthHeaders(req);
|
|
41
24
|
initMcpServer({
|
|
@@ -44,7 +27,6 @@ const newServer = ({
|
|
|
44
27
|
...clientOptions,
|
|
45
28
|
...authOptions,
|
|
46
29
|
},
|
|
47
|
-
mcpOptions,
|
|
48
30
|
});
|
|
49
31
|
} catch (error) {
|
|
50
32
|
res.status(401).json({
|
package/src/index.ts
CHANGED
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { selectTools } from './server';
|
|
4
|
-
import { Endpoint, endpoints } from './tools';
|
|
5
4
|
import { McpOptions, parseCLIOptions } from './options';
|
|
6
5
|
import { launchStdioServer } from './stdio';
|
|
7
6
|
import { launchStreamableHTTPServer } from './http';
|
|
7
|
+
import type { McpTool } from './types';
|
|
8
8
|
|
|
9
9
|
async function main() {
|
|
10
10
|
const options = parseOptionsOrError();
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
listAllTools();
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const selectedTools = await selectToolsOrError(endpoints, options);
|
|
12
|
+
const selectedTools = await selectToolsOrError(options);
|
|
18
13
|
|
|
19
14
|
console.error(
|
|
20
15
|
`MCP Server starting with ${selectedTools.length} tools:`,
|
|
@@ -23,7 +18,7 @@ async function main() {
|
|
|
23
18
|
|
|
24
19
|
switch (options.transport) {
|
|
25
20
|
case 'stdio':
|
|
26
|
-
await launchStdioServer(
|
|
21
|
+
await launchStdioServer();
|
|
27
22
|
break;
|
|
28
23
|
case 'http':
|
|
29
24
|
await launchStreamableHTTPServer(options, options.port ?? options.socket);
|
|
@@ -47,9 +42,9 @@ function parseOptionsOrError() {
|
|
|
47
42
|
}
|
|
48
43
|
}
|
|
49
44
|
|
|
50
|
-
async function selectToolsOrError(
|
|
45
|
+
async function selectToolsOrError(options: McpOptions): Promise<McpTool[]> {
|
|
51
46
|
try {
|
|
52
|
-
const includedTools =
|
|
47
|
+
const includedTools = selectTools(options);
|
|
53
48
|
if (includedTools.length === 0) {
|
|
54
49
|
console.error('No tools match the provided filters.');
|
|
55
50
|
process.exit(1);
|
|
@@ -64,45 +59,3 @@ async function selectToolsOrError(endpoints: Endpoint[], options: McpOptions): P
|
|
|
64
59
|
process.exit(1);
|
|
65
60
|
}
|
|
66
61
|
}
|
|
67
|
-
|
|
68
|
-
function listAllTools() {
|
|
69
|
-
if (endpoints.length === 0) {
|
|
70
|
-
console.log('No tools available.');
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
console.log('Available tools:\n');
|
|
74
|
-
|
|
75
|
-
// Group endpoints by resource
|
|
76
|
-
const resourceGroups = new Map<string, typeof endpoints>();
|
|
77
|
-
|
|
78
|
-
for (const endpoint of endpoints) {
|
|
79
|
-
const resource = endpoint.metadata.resource;
|
|
80
|
-
if (!resourceGroups.has(resource)) {
|
|
81
|
-
resourceGroups.set(resource, []);
|
|
82
|
-
}
|
|
83
|
-
resourceGroups.get(resource)!.push(endpoint);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// Sort resources alphabetically
|
|
87
|
-
const sortedResources = Array.from(resourceGroups.keys()).sort();
|
|
88
|
-
|
|
89
|
-
// Display hierarchically by resource
|
|
90
|
-
for (const resource of sortedResources) {
|
|
91
|
-
console.log(`Resource: ${resource}`);
|
|
92
|
-
|
|
93
|
-
const resourceEndpoints = resourceGroups.get(resource)!;
|
|
94
|
-
// Sort endpoints by tool name
|
|
95
|
-
resourceEndpoints.sort((a, b) => a.tool.name.localeCompare(b.tool.name));
|
|
96
|
-
|
|
97
|
-
for (const endpoint of resourceEndpoints) {
|
|
98
|
-
const {
|
|
99
|
-
tool,
|
|
100
|
-
metadata: { operation, tags },
|
|
101
|
-
} = endpoint;
|
|
102
|
-
|
|
103
|
-
console.log(` - ${tool.name} (${operation}) ${tags.length > 0 ? `tags: ${tags.join(', ')}` : ''}`);
|
|
104
|
-
console.log(` Description: ${tool.description}`);
|
|
105
|
-
}
|
|
106
|
-
console.log('');
|
|
107
|
-
}
|
|
108
|
-
}
|