@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/README.md
CHANGED
|
@@ -25,7 +25,7 @@ For clients with a configuration JSON, it might look something like this:
|
|
|
25
25
|
"mcpServers": {
|
|
26
26
|
"zavudev_sdk_api": {
|
|
27
27
|
"command": "npx",
|
|
28
|
-
"args": ["-y", "@zavudev/sdk-mcp"
|
|
28
|
+
"args": ["-y", "@zavudev/sdk-mcp"],
|
|
29
29
|
"env": {
|
|
30
30
|
"ZAVUDEV_API_KEY": "My API Key"
|
|
31
31
|
}
|
|
@@ -57,110 +57,22 @@ environment variables in Claude Code's `.claude.json`, which can be found in you
|
|
|
57
57
|
claude mcp add --transport stdio zavudev_sdk_api --env ZAVUDEV_API_KEY="Your ZAVUDEV_API_KEY here." -- npx -y @zavudev/sdk-mcp
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
##
|
|
60
|
+
## Code Mode
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
This MCP server is built on the "Code Mode" tool scheme. In this MCP Server,
|
|
63
|
+
your agent will write code against the TypeScript SDK, which will then be executed in an
|
|
64
|
+
isolated sandbox. To accomplish this, the server will expose two tools to your agent:
|
|
63
65
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
3. Exposing a docs search tool and a code execution tool, allowing the client to write code to be executed against the TypeScript client
|
|
66
|
+
- The first tool is a docs search tool, which can be used to generically query for
|
|
67
|
+
documentation about your API/SDK.
|
|
67
68
|
|
|
68
|
-
|
|
69
|
+
- The second tool is a code tool, where the agent can write code against the TypeScript SDK.
|
|
70
|
+
The code will be executed in a sandbox environment without web or filesystem access. Then,
|
|
71
|
+
anything the code returns or prints will be returned to the agent as the result of the
|
|
72
|
+
tool call.
|
|
69
73
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
context window.
|
|
73
|
-
|
|
74
|
-
You can filter by multiple aspects:
|
|
75
|
-
|
|
76
|
-
- `--tool` includes a specific tool by name
|
|
77
|
-
- `--resource` includes all tools under a specific resource, and can have wildcards, e.g. `my.resource*`
|
|
78
|
-
- `--operation` includes just read (get/list) or just write operations
|
|
79
|
-
|
|
80
|
-
### Dynamic tools
|
|
81
|
-
|
|
82
|
-
If you specify `--tools=dynamic` to the MCP server, instead of exposing one tool per endpoint in the API, it will
|
|
83
|
-
expose the following tools:
|
|
84
|
-
|
|
85
|
-
1. `list_api_endpoints` - Discovers available endpoints, with optional filtering by search query
|
|
86
|
-
2. `get_api_endpoint_schema` - Gets detailed schema information for a specific endpoint
|
|
87
|
-
3. `invoke_api_endpoint` - Executes any endpoint with the appropriate parameters
|
|
88
|
-
|
|
89
|
-
This allows you to have the full set of API endpoints available to your MCP Client, while not requiring that all
|
|
90
|
-
of their schemas be loaded into context at once. Instead, the LLM will automatically use these tools together to
|
|
91
|
-
search for, look up, and invoke endpoints dynamically. However, due to the indirect nature of the schemas, it
|
|
92
|
-
can struggle to provide the correct properties a bit more than when tools are imported explicitly. Therefore,
|
|
93
|
-
you can opt-in to explicit tools, the dynamic tools, or both.
|
|
94
|
-
|
|
95
|
-
See more information with `--help`.
|
|
96
|
-
|
|
97
|
-
All of these command-line options can be repeated, combined together, and have corresponding exclusion versions (e.g. `--no-tool`).
|
|
98
|
-
|
|
99
|
-
Use `--list` to see the list of available tools, or see below.
|
|
100
|
-
|
|
101
|
-
### Code execution
|
|
102
|
-
|
|
103
|
-
If you specify `--tools=code` to the MCP server, it will expose just two tools:
|
|
104
|
-
|
|
105
|
-
- `search_docs` - Searches the API documentation and returns a list of markdown results
|
|
106
|
-
- `execute` - Runs code against the TypeScript client
|
|
107
|
-
|
|
108
|
-
This allows the LLM to implement more complex logic by chaining together many API calls without loading
|
|
109
|
-
intermediary results into its context window.
|
|
110
|
-
|
|
111
|
-
The code execution itself happens in a Deno sandbox that has network access only to the base URL for the API.
|
|
112
|
-
|
|
113
|
-
### Specifying the MCP Client
|
|
114
|
-
|
|
115
|
-
Different clients have varying abilities to handle arbitrary tools and schemas.
|
|
116
|
-
|
|
117
|
-
You can specify the client you are using with the `--client` argument, and the MCP server will automatically
|
|
118
|
-
serve tools and schemas that are more compatible with that client.
|
|
119
|
-
|
|
120
|
-
- `--client=<type>`: Set all capabilities based on a known MCP client
|
|
121
|
-
|
|
122
|
-
- Valid values: `openai-agents`, `claude`, `claude-code`, `cursor`
|
|
123
|
-
- Example: `--client=cursor`
|
|
124
|
-
|
|
125
|
-
Additionally, if you have a client not on the above list, or the client has gotten better
|
|
126
|
-
over time, you can manually enable or disable certain capabilities:
|
|
127
|
-
|
|
128
|
-
- `--capability=<name>`: Specify individual client capabilities
|
|
129
|
-
- Available capabilities:
|
|
130
|
-
- `top-level-unions`: Enable support for top-level unions in tool schemas
|
|
131
|
-
- `valid-json`: Enable JSON string parsing for arguments
|
|
132
|
-
- `refs`: Enable support for $ref pointers in schemas
|
|
133
|
-
- `unions`: Enable support for union types (anyOf) in schemas
|
|
134
|
-
- `formats`: Enable support for format validations in schemas (e.g. date-time, email)
|
|
135
|
-
- `tool-name-length=N`: Set maximum tool name length to N characters
|
|
136
|
-
- Example: `--capability=top-level-unions --capability=tool-name-length=40`
|
|
137
|
-
- Example: `--capability=top-level-unions,tool-name-length=40`
|
|
138
|
-
|
|
139
|
-
### Examples
|
|
140
|
-
|
|
141
|
-
1. Filter for read operations on cards:
|
|
142
|
-
|
|
143
|
-
```bash
|
|
144
|
-
--resource=cards --operation=read
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
2. Exclude specific tools while including others:
|
|
148
|
-
|
|
149
|
-
```bash
|
|
150
|
-
--resource=cards --no-tool=create_cards
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
3. Configure for Cursor client with custom max tool name length:
|
|
154
|
-
|
|
155
|
-
```bash
|
|
156
|
-
--client=cursor --capability=tool-name-length=40
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
4. Complex filtering with multiple criteria:
|
|
160
|
-
|
|
161
|
-
```bash
|
|
162
|
-
--resource=cards,accounts --operation=read --tag=kyc --no-tool=create_cards
|
|
163
|
-
```
|
|
74
|
+
Using this scheme, agents are capable of performing very complex tasks deterministically
|
|
75
|
+
and repeatably.
|
|
164
76
|
|
|
165
77
|
## Running remotely
|
|
166
78
|
|
|
@@ -187,130 +99,3 @@ A configuration JSON for this server might look like this, assuming the server i
|
|
|
187
99
|
}
|
|
188
100
|
}
|
|
189
101
|
```
|
|
190
|
-
|
|
191
|
-
The command-line arguments for filtering tools and specifying clients can also be used as query parameters in the URL.
|
|
192
|
-
For example, to exclude specific tools while including others, use the URL:
|
|
193
|
-
|
|
194
|
-
```
|
|
195
|
-
http://localhost:3000?resource=cards&resource=accounts&no_tool=create_cards
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
Or, to configure for the Cursor client, with a custom max tool name length, use the URL:
|
|
199
|
-
|
|
200
|
-
```
|
|
201
|
-
http://localhost:3000?client=cursor&capability=tool-name-length%3D40
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
## Importing the tools and server individually
|
|
205
|
-
|
|
206
|
-
```js
|
|
207
|
-
// Import the server, generated endpoints, or the init function
|
|
208
|
-
import { server, endpoints, init } from "@zavudev/sdk-mcp/server";
|
|
209
|
-
|
|
210
|
-
// import a specific tool
|
|
211
|
-
import retrieveMessages from "@zavudev/sdk-mcp/tools/messages/retrieve-messages";
|
|
212
|
-
|
|
213
|
-
// initialize the server and all endpoints
|
|
214
|
-
init({ server, endpoints });
|
|
215
|
-
|
|
216
|
-
// manually start server
|
|
217
|
-
const transport = new StdioServerTransport();
|
|
218
|
-
await server.connect(transport);
|
|
219
|
-
|
|
220
|
-
// or initialize your own server with specific tools
|
|
221
|
-
const myServer = new McpServer(...);
|
|
222
|
-
|
|
223
|
-
// define your own endpoint
|
|
224
|
-
const myCustomEndpoint = {
|
|
225
|
-
tool: {
|
|
226
|
-
name: 'my_custom_tool',
|
|
227
|
-
description: 'My custom tool',
|
|
228
|
-
inputSchema: zodToJsonSchema(z.object({ a_property: z.string() })),
|
|
229
|
-
},
|
|
230
|
-
handler: async (client: client, args: any) => {
|
|
231
|
-
return { myResponse: 'Hello world!' };
|
|
232
|
-
})
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
// initialize the server with your custom endpoints
|
|
236
|
-
init({ server: myServer, endpoints: [retrieveMessages, myCustomEndpoint] });
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
## Available Tools
|
|
240
|
-
|
|
241
|
-
The following tools are available in this MCP server.
|
|
242
|
-
|
|
243
|
-
### Resource `messages`:
|
|
244
|
-
|
|
245
|
-
- `retrieve_messages` (`read`): Get message by ID
|
|
246
|
-
- `list_messages` (`read`): List messages previously sent by this project.
|
|
247
|
-
- `react_messages` (`write`): Send an emoji reaction to an existing WhatsApp message. Reactions are only supported for WhatsApp messages.
|
|
248
|
-
- `send_messages` (`write`): Send a message to a recipient via SMS or WhatsApp.
|
|
249
|
-
|
|
250
|
-
**Channel selection:**
|
|
251
|
-
|
|
252
|
-
- If `channel` is omitted and `messageType` is `text`, defaults to SMS
|
|
253
|
-
- If `messageType` is anything other than `text`, WhatsApp is used automatically
|
|
254
|
-
|
|
255
|
-
**WhatsApp 24-hour window:**
|
|
256
|
-
|
|
257
|
-
- Free-form messages (non-template) require an open 24h window
|
|
258
|
-
- Window opens when the user messages you first
|
|
259
|
-
- Use template messages to initiate conversations outside the window
|
|
260
|
-
|
|
261
|
-
### Resource `templates`:
|
|
262
|
-
|
|
263
|
-
- `create_templates` (`write`): Create a WhatsApp message template. Note: Templates must be approved by Meta before use.
|
|
264
|
-
- `retrieve_templates` (`read`): Get template
|
|
265
|
-
- `list_templates` (`read`): List WhatsApp message templates for this project.
|
|
266
|
-
- `delete_templates` (`write`): Delete template
|
|
267
|
-
- `submit_templates` (`write`): Submit a WhatsApp template to Meta for approval. The template must be in draft status and associated with a sender that has a WhatsApp Business Account configured.
|
|
268
|
-
|
|
269
|
-
### Resource `senders`:
|
|
270
|
-
|
|
271
|
-
- `create_senders` (`write`): Create sender
|
|
272
|
-
- `retrieve_senders` (`read`): Get sender
|
|
273
|
-
- `update_senders` (`write`): Update sender
|
|
274
|
-
- `list_senders` (`read`): List senders
|
|
275
|
-
- `delete_senders` (`write`): Delete sender
|
|
276
|
-
- `get_profile_senders` (`read`): Get the WhatsApp Business profile for a sender. The sender must have a WhatsApp Business Account connected.
|
|
277
|
-
- `regenerate_webhook_secret_senders` (`write`): Regenerate the webhook secret for a sender. The old secret will be invalidated immediately.
|
|
278
|
-
- `update_profile_senders` (`write`): Update the WhatsApp Business profile for a sender. The sender must have a WhatsApp Business Account connected.
|
|
279
|
-
- `upload_profile_picture_senders` (`write`): Upload a new profile picture for the WhatsApp Business profile. The image will be uploaded to Meta and set as the profile picture.
|
|
280
|
-
|
|
281
|
-
### Resource `contacts`:
|
|
282
|
-
|
|
283
|
-
- `retrieve_contacts` (`read`): Get contact
|
|
284
|
-
- `update_contacts` (`write`): Update contact
|
|
285
|
-
- `list_contacts` (`read`): List contacts
|
|
286
|
-
- `retrieve_by_phone_contacts` (`read`): Get contact by phone number
|
|
287
|
-
|
|
288
|
-
### Resource `broadcasts`:
|
|
289
|
-
|
|
290
|
-
- `create_broadcasts` (`write`): Create a new broadcast campaign. Add contacts after creation, then send.
|
|
291
|
-
- `retrieve_broadcasts` (`read`): Get broadcast
|
|
292
|
-
- `update_broadcasts` (`write`): Update a broadcast in draft status.
|
|
293
|
-
- `list_broadcasts` (`read`): List broadcasts for this project.
|
|
294
|
-
- `delete_broadcasts` (`write`): Delete a broadcast in draft status.
|
|
295
|
-
- `cancel_broadcasts` (`write`): Cancel a broadcast. Pending contacts will be skipped, but already queued messages may still be delivered.
|
|
296
|
-
- `progress_broadcasts` (`read`): Get real-time progress of a broadcast including delivery counts and estimated completion time.
|
|
297
|
-
- `send_broadcasts` (`write`): Start sending the broadcast immediately or schedule for later. Reserves the estimated cost from your balance.
|
|
298
|
-
|
|
299
|
-
### Resource `broadcasts.contacts`:
|
|
300
|
-
|
|
301
|
-
- `list_broadcasts_contacts` (`read`): List contacts in a broadcast with optional status filter.
|
|
302
|
-
- `add_broadcasts_contacts` (`write`): Add contacts to a broadcast in batch. Maximum 1000 contacts per request.
|
|
303
|
-
- `remove_broadcasts_contacts` (`write`): Remove a contact from a broadcast in draft status.
|
|
304
|
-
|
|
305
|
-
### Resource `introspect`:
|
|
306
|
-
|
|
307
|
-
- `validate_phone_introspect` (`write`): Validate a phone number and check if a WhatsApp conversation window is open.
|
|
308
|
-
|
|
309
|
-
### Resource `phone_numbers`:
|
|
310
|
-
|
|
311
|
-
- `retrieve_phone_numbers` (`read`): Get details of a specific phone number.
|
|
312
|
-
- `update_phone_numbers` (`write`): Update a phone number's name or sender assignment.
|
|
313
|
-
- `list_phone_numbers` (`read`): List all phone numbers owned by this project.
|
|
314
|
-
- `purchase_phone_numbers` (`write`): Purchase an available phone number. The first US phone number is free for each team.
|
|
315
|
-
- `release_phone_numbers` (`write`): Release a phone number. The phone number must not be assigned to a sender.
|
|
316
|
-
- `search_available_phone_numbers` (`read`): Search for available phone numbers to purchase by country and type.
|
package/code-tool.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { McpTool } from "./types.mjs";
|
|
2
2
|
/**
|
|
3
3
|
* A tool that runs code against a copy of the SDK.
|
|
4
4
|
*
|
|
@@ -8,47 +8,5 @@ import { Metadata, ToolCallResult } from "./tools/types.mjs";
|
|
|
8
8
|
*
|
|
9
9
|
* @param endpoints - The endpoints to include in the list.
|
|
10
10
|
*/
|
|
11
|
-
export declare function codeTool():
|
|
12
|
-
metadata: Metadata;
|
|
13
|
-
tool: {
|
|
14
|
-
inputSchema: {
|
|
15
|
-
[x: string]: unknown;
|
|
16
|
-
type: "object";
|
|
17
|
-
properties?: {
|
|
18
|
-
[x: string]: object;
|
|
19
|
-
} | undefined;
|
|
20
|
-
required?: string[] | undefined;
|
|
21
|
-
};
|
|
22
|
-
name: string;
|
|
23
|
-
description?: string | undefined;
|
|
24
|
-
outputSchema?: {
|
|
25
|
-
[x: string]: unknown;
|
|
26
|
-
type: "object";
|
|
27
|
-
properties?: {
|
|
28
|
-
[x: string]: object;
|
|
29
|
-
} | undefined;
|
|
30
|
-
required?: string[] | undefined;
|
|
31
|
-
} | undefined;
|
|
32
|
-
annotations?: {
|
|
33
|
-
title?: string | undefined;
|
|
34
|
-
readOnlyHint?: boolean | undefined;
|
|
35
|
-
destructiveHint?: boolean | undefined;
|
|
36
|
-
idempotentHint?: boolean | undefined;
|
|
37
|
-
openWorldHint?: boolean | undefined;
|
|
38
|
-
} | undefined;
|
|
39
|
-
execution?: {
|
|
40
|
-
taskSupport?: "optional" | "required" | "forbidden" | undefined;
|
|
41
|
-
} | undefined;
|
|
42
|
-
_meta?: {
|
|
43
|
-
[x: string]: unknown;
|
|
44
|
-
} | undefined;
|
|
45
|
-
icons?: {
|
|
46
|
-
src: string;
|
|
47
|
-
mimeType?: string | undefined;
|
|
48
|
-
sizes?: string[] | undefined;
|
|
49
|
-
}[] | undefined;
|
|
50
|
-
title?: string | undefined;
|
|
51
|
-
};
|
|
52
|
-
handler: (_: unknown, args: any) => Promise<ToolCallResult>;
|
|
53
|
-
}>;
|
|
11
|
+
export declare function codeTool(): McpTool;
|
|
54
12
|
//# sourceMappingURL=code-tool.d.mts.map
|
package/code-tool.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool.d.mts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"OAEO,EAAE,
|
|
1
|
+
{"version":3,"file":"code-tool.d.mts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAiD;AAIjE;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,IAAI,OAAO,CA8ClC"}
|
package/code-tool.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { McpTool } from "./types.js";
|
|
2
2
|
/**
|
|
3
3
|
* A tool that runs code against a copy of the SDK.
|
|
4
4
|
*
|
|
@@ -8,47 +8,5 @@ import { Metadata, ToolCallResult } from "./tools/types.js";
|
|
|
8
8
|
*
|
|
9
9
|
* @param endpoints - The endpoints to include in the list.
|
|
10
10
|
*/
|
|
11
|
-
export declare function codeTool():
|
|
12
|
-
metadata: Metadata;
|
|
13
|
-
tool: {
|
|
14
|
-
inputSchema: {
|
|
15
|
-
[x: string]: unknown;
|
|
16
|
-
type: "object";
|
|
17
|
-
properties?: {
|
|
18
|
-
[x: string]: object;
|
|
19
|
-
} | undefined;
|
|
20
|
-
required?: string[] | undefined;
|
|
21
|
-
};
|
|
22
|
-
name: string;
|
|
23
|
-
description?: string | undefined;
|
|
24
|
-
outputSchema?: {
|
|
25
|
-
[x: string]: unknown;
|
|
26
|
-
type: "object";
|
|
27
|
-
properties?: {
|
|
28
|
-
[x: string]: object;
|
|
29
|
-
} | undefined;
|
|
30
|
-
required?: string[] | undefined;
|
|
31
|
-
} | undefined;
|
|
32
|
-
annotations?: {
|
|
33
|
-
title?: string | undefined;
|
|
34
|
-
readOnlyHint?: boolean | undefined;
|
|
35
|
-
destructiveHint?: boolean | undefined;
|
|
36
|
-
idempotentHint?: boolean | undefined;
|
|
37
|
-
openWorldHint?: boolean | undefined;
|
|
38
|
-
} | undefined;
|
|
39
|
-
execution?: {
|
|
40
|
-
taskSupport?: "optional" | "required" | "forbidden" | undefined;
|
|
41
|
-
} | undefined;
|
|
42
|
-
_meta?: {
|
|
43
|
-
[x: string]: unknown;
|
|
44
|
-
} | undefined;
|
|
45
|
-
icons?: {
|
|
46
|
-
src: string;
|
|
47
|
-
mimeType?: string | undefined;
|
|
48
|
-
sizes?: string[] | undefined;
|
|
49
|
-
}[] | undefined;
|
|
50
|
-
title?: string | undefined;
|
|
51
|
-
};
|
|
52
|
-
handler: (_: unknown, args: any) => Promise<ToolCallResult>;
|
|
53
|
-
}>;
|
|
11
|
+
export declare function codeTool(): McpTool;
|
|
54
12
|
//# sourceMappingURL=code-tool.d.ts.map
|
package/code-tool.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool.d.ts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"OAEO,EAAE,
|
|
1
|
+
{"version":3,"file":"code-tool.d.ts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAiD;AAIjE;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,IAAI,OAAO,CA8ClC"}
|
package/code-tool.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.codeTool = codeTool;
|
|
5
|
-
const types_1 = require("./
|
|
5
|
+
const types_1 = require("./types.js");
|
|
6
6
|
const server_1 = require("./server.js");
|
|
7
7
|
/**
|
|
8
8
|
* A tool that runs code against a copy of the SDK.
|
|
@@ -13,7 +13,7 @@ const server_1 = require("./server.js");
|
|
|
13
13
|
*
|
|
14
14
|
* @param endpoints - The endpoints to include in the list.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
function codeTool() {
|
|
17
17
|
const metadata = { resource: 'all', operation: 'write', tags: [] };
|
|
18
18
|
const tool = {
|
|
19
19
|
name: 'execute',
|
package/code-tool.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool.js","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":";AAAA,sFAAsF;;AAetF,4BA8CC;AA3DD,
|
|
1
|
+
{"version":3,"file":"code-tool.js","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":";AAAA,sFAAsF;;AAetF,4BA8CC;AA3DD,sCAAiF;AAEjF,wCAAmC;AAEnC;;;;;;;;GAQG;AACH,SAAgB,QAAQ;IACtB,MAAM,QAAQ,GAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;IAC7E,MAAM,IAAI,GAAS;QACjB,IAAI,EAAE,SAAS;QACf,WAAW,EACT,iiCAAiiC;QACniC,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE;KAC1E,CAAC;IACF,MAAM,OAAO,GAAG,KAAK,EAAE,CAAU,EAAE,IAAS,EAA2B,EAAE;QACvE,MAAM,IAAI,GAAG,IAAI,CAAC,IAAc,CAAC;QAEjC,sFAAsF;QACtF,sFAAsF;QACtF,MAAM,eAAe,GAAG,IAAA,gBAAO,EAAC,mBAAmB,CAAC,CAAC;QACrD,MAAM,gBAAgB,GACpB,IAAA,gBAAO,EAAC,wBAAwB,CAAC,IAAI,4CAA4C,CAAC;QAEpF,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,gBAAgB,EAAE;YACxC,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,GAAG,CAAC,eAAe,IAAI,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC;gBAC1D,cAAc,EAAE,kBAAkB;gBAClC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC;oBAC1B,eAAe,EAAE,IAAA,gBAAO,EAAC,iBAAiB,CAAC;oBAC3C,gBAAgB,EAAE,IAAA,gBAAO,EAAC,kBAAkB,CAAC;iBAC9C,CAAC;aACH;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;gBACnB,YAAY,EAAE,SAAS;gBACvB,WAAW,EAAE,EAAE;gBACf,IAAI;aACL,CAAC;SACH,CAAC,CAAC;QAEH,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;YACZ,MAAM,IAAI,KAAK,CACb,GAAG,GAAG,CAAC,MAAM,KACX,GAAG,CAAC,UACN,4DAA4D,MAAM,GAAG,CAAC,IAAI,EAAE,EAAE,CAC/E,CAAC;QACJ,CAAC;QAED,OAAO,IAAA,2BAAmB,EAAC,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAAkB,CAAC,CAAC;IAClE,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACrC,CAAC"}
|
package/code-tool.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { asTextContentResult } from "./
|
|
2
|
+
import { asTextContentResult } from "./types.mjs";
|
|
3
3
|
import { readEnv } from "./server.mjs";
|
|
4
4
|
/**
|
|
5
5
|
* A tool that runs code against a copy of the SDK.
|
|
@@ -10,7 +10,7 @@ import { readEnv } from "./server.mjs";
|
|
|
10
10
|
*
|
|
11
11
|
* @param endpoints - The endpoints to include in the list.
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export function codeTool() {
|
|
14
14
|
const metadata = { resource: 'all', operation: 'write', tags: [] };
|
|
15
15
|
const tool = {
|
|
16
16
|
name: 'execute',
|
package/code-tool.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool.mjs","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,
|
|
1
|
+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aACL,CAAC;SACH,CAAC,CAAC;QAEH,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;YACZ,MAAM,IAAI,KAAK,CACb,GAAG,GAAG,CAAC,MAAM,KACX,GAAG,CAAC,UACN,4DAA4D,MAAM,GAAG,CAAC,IAAI,EAAE,EAAE,CAC/E,CAAC;QACJ,CAAC;QAED,OAAO,mBAAmB,CAAC,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAAkB,CAAC,CAAC;IAClE,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACrC,CAAC"}
|
package/docs-search-tool.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Metadata } from "./
|
|
1
|
+
import { Metadata } from "./types.mjs";
|
|
2
2
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
3
|
export declare const metadata: Metadata;
|
|
4
4
|
export declare const tool: Tool;
|
|
5
|
-
export declare const handler: (_: unknown, args: Record<string, unknown> | undefined) => Promise<import("./
|
|
5
|
+
export declare const handler: (_: unknown, args: Record<string, unknown> | undefined) => Promise<import("./types").ToolCallResult>;
|
|
6
6
|
declare const _default: {
|
|
7
7
|
metadata: Metadata;
|
|
8
8
|
tool: {
|
|
@@ -44,7 +44,7 @@ declare const _default: {
|
|
|
44
44
|
}[] | undefined;
|
|
45
45
|
title?: string | undefined;
|
|
46
46
|
};
|
|
47
|
-
handler: (_: unknown, args: Record<string, unknown> | undefined) => Promise<import("./
|
|
47
|
+
handler: (_: unknown, args: Record<string, unknown> | undefined) => Promise<import("./types").ToolCallResult>;
|
|
48
48
|
};
|
|
49
49
|
export default _default;
|
|
50
50
|
//# sourceMappingURL=docs-search-tool.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-search-tool.d.mts","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB;OAEjC,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,eAAO,MAAM,QAAQ,EAAE,QAKtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA0BlB,CAAC;AAKF,eAAO,MAAM,OAAO,GAAU,GAAG,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"docs-search-tool.d.mts","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB;OAEjC,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,eAAO,MAAM,QAAQ,EAAE,QAKtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA0BlB,CAAC;AAKF,eAAO,MAAM,OAAO,GAAU,GAAG,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,8CAYlF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAZ+B,OAAO,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAcnF,wBAA2C"}
|
package/docs-search-tool.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Metadata } from "./
|
|
1
|
+
import { Metadata } from "./types.js";
|
|
2
2
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
3
|
export declare const metadata: Metadata;
|
|
4
4
|
export declare const tool: Tool;
|
|
5
|
-
export declare const handler: (_: unknown, args: Record<string, unknown> | undefined) => Promise<import("./
|
|
5
|
+
export declare const handler: (_: unknown, args: Record<string, unknown> | undefined) => Promise<import("./types").ToolCallResult>;
|
|
6
6
|
declare const _default: {
|
|
7
7
|
metadata: Metadata;
|
|
8
8
|
tool: {
|
|
@@ -44,7 +44,7 @@ declare const _default: {
|
|
|
44
44
|
}[] | undefined;
|
|
45
45
|
title?: string | undefined;
|
|
46
46
|
};
|
|
47
|
-
handler: (_: unknown, args: Record<string, unknown> | undefined) => Promise<import("./
|
|
47
|
+
handler: (_: unknown, args: Record<string, unknown> | undefined) => Promise<import("./types").ToolCallResult>;
|
|
48
48
|
};
|
|
49
49
|
export default _default;
|
|
50
50
|
//# sourceMappingURL=docs-search-tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-search-tool.d.ts","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB;OAEjC,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,eAAO,MAAM,QAAQ,EAAE,QAKtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA0BlB,CAAC;AAKF,eAAO,MAAM,OAAO,GAAU,GAAG,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"docs-search-tool.d.ts","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB;OAEjC,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,eAAO,MAAM,QAAQ,EAAE,QAKtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA0BlB,CAAC;AAKF,eAAO,MAAM,OAAO,GAAU,GAAG,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,8CAYlF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAZ+B,OAAO,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAcnF,wBAA2C"}
|
package/docs-search-tool.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
-
const types_1 = require("./
|
|
5
|
+
const types_1 = require("./types.js");
|
|
6
6
|
exports.metadata = {
|
|
7
7
|
resource: 'all',
|
|
8
8
|
operation: 'read',
|
package/docs-search-tool.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-search-tool.js","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"docs-search-tool.js","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAAwD;AAI3C,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;CAClB,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,8EAA8E;IAC3F,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0BAA0B;aACxC;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,yCAAyC;gBACtD,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC;aAClG;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iCAAiC;gBAC9C,IAAI,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;aAC7B;SACF;QACD,QAAQ,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC;KAChC;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,aAAa,GACjB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,4DAA4D,CAAC;AAE1F,MAAM,OAAO,GAAG,KAAK,EAAE,CAAU,EAAE,IAAyC,EAAE,EAAE;IACrF,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,MAAM,KAAK,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;IACnD,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,GAAG,aAAa,IAAI,KAAK,EAAE,CAAC,CAAC;IAExD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,GAAG,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC,UAAU,yCAAyC,MAAM,MAAM,CAAC,IAAI,EAAE,EAAE,CACrG,CAAC;IACJ,CAAC;IAED,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;AAClD,CAAC,CAAC;AAZW,QAAA,OAAO,WAYlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
package/docs-search-tool.mjs
CHANGED
package/http.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.mts","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":"OAKO,OAAO,MAAM,SAAS;
|
|
1
|
+
{"version":3,"file":"http.d.mts","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":"OAKO,OAAO,MAAM,SAAS;OACtB,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAA+B;AAuErD,eAAO,MAAM,iBAAiB,GAAI,gCAG/B;IACD,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,KAAG,OAAO,CAAC,OAUX,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAU,SAAS,UAAU,EAAE,MAAM,MAAM,GAAG,MAAM,GAAG,SAAS,kBAYtG,CAAC"}
|
package/http.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":"OAKO,OAAO,MAAM,SAAS;
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":"OAKO,OAAO,MAAM,SAAS;OACtB,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAA+B;AAuErD,eAAO,MAAM,iBAAiB,GAAI,gCAG/B;IACD,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,KAAG,OAAO,CAAC,OAUX,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAU,SAAS,UAAU,EAAE,MAAM,MAAM,GAAG,MAAM,GAAG,SAAS,kBAYtG,CAAC"}
|
package/http.js
CHANGED
|
@@ -7,26 +7,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.launchStreamableHTTPServer = exports.streamableHTTPApp = void 0;
|
|
8
8
|
const streamableHttp_js_1 = require("@modelcontextprotocol/sdk/server/streamableHttp.js");
|
|
9
9
|
const express_1 = __importDefault(require("express"));
|
|
10
|
-
const v3_1 = require("zod-validation-error/v3");
|
|
11
|
-
const options_1 = require("./options.js");
|
|
12
10
|
const server_1 = require("./server.js");
|
|
13
11
|
const headers_1 = require("./headers.js");
|
|
14
|
-
const newServer = ({ clientOptions,
|
|
12
|
+
const newServer = ({ clientOptions, req, res, }) => {
|
|
15
13
|
const server = (0, server_1.newMcpServer)();
|
|
16
|
-
let mcpOptions;
|
|
17
|
-
try {
|
|
18
|
-
mcpOptions = (0, options_1.parseQueryOptions)(defaultMcpOptions, req.query);
|
|
19
|
-
}
|
|
20
|
-
catch (error) {
|
|
21
|
-
res.status(400).json({
|
|
22
|
-
jsonrpc: '2.0',
|
|
23
|
-
error: {
|
|
24
|
-
code: -32000,
|
|
25
|
-
message: `Invalid request: ${(0, v3_1.fromError)(error)}`,
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
return null;
|
|
29
|
-
}
|
|
30
14
|
try {
|
|
31
15
|
const authOptions = (0, headers_1.parseAuthHeaders)(req);
|
|
32
16
|
(0, server_1.initMcpServer)({
|
|
@@ -35,7 +19,6 @@ const newServer = ({ clientOptions, mcpOptions: defaultMcpOptions, req, res, })
|
|
|
35
19
|
...clientOptions,
|
|
36
20
|
...authOptions,
|
|
37
21
|
},
|
|
38
|
-
mcpOptions,
|
|
39
22
|
});
|
|
40
23
|
}
|
|
41
24
|
catch (error) {
|
package/http.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAGtF,0FAAmG;AAEnG,sDAA8B;
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAGtF,0FAAmG;AAEnG,sDAA8B;AAE9B,wCAAsE;AACtE,0CAA6C;AAE7C,MAAM,SAAS,GAAG,CAAC,EACjB,aAAa,EACb,GAAG,EACH,GAAG,GAKJ,EAAoB,EAAE;IACrB,MAAM,MAAM,GAAG,IAAA,qBAAY,GAAE,CAAC;IAE9B,IAAI,CAAC;QACH,MAAM,WAAW,GAAG,IAAA,0BAAgB,EAAC,GAAG,CAAC,CAAC;QAC1C,IAAA,sBAAa,EAAC;YACZ,MAAM,EAAE,MAAM;YACd,aAAa,EAAE;gBACb,GAAG,aAAa;gBAChB,GAAG,WAAW;aACf;SACF,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;YACnB,OAAO,EAAE,KAAK;YACd,KAAK,EAAE;gBACL,IAAI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,CAAC;AACH,CAAC,CAAC;AAZW,QAAA,0BAA0B,8BAYrC"}
|
package/http.mjs
CHANGED
|
@@ -1,26 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
3
3
|
import express from 'express';
|
|
4
|
-
import { fromError } from 'zod-validation-error/v3';
|
|
5
|
-
import { parseQueryOptions } from "./options.mjs";
|
|
6
4
|
import { initMcpServer, newMcpServer } from "./server.mjs";
|
|
7
5
|
import { parseAuthHeaders } from "./headers.mjs";
|
|
8
|
-
const newServer = ({ clientOptions,
|
|
6
|
+
const newServer = ({ clientOptions, req, res, }) => {
|
|
9
7
|
const server = newMcpServer();
|
|
10
|
-
let mcpOptions;
|
|
11
|
-
try {
|
|
12
|
-
mcpOptions = parseQueryOptions(defaultMcpOptions, req.query);
|
|
13
|
-
}
|
|
14
|
-
catch (error) {
|
|
15
|
-
res.status(400).json({
|
|
16
|
-
jsonrpc: '2.0',
|
|
17
|
-
error: {
|
|
18
|
-
code: -32000,
|
|
19
|
-
message: `Invalid request: ${fromError(error)}`,
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
8
|
try {
|
|
25
9
|
const authOptions = parseAuthHeaders(req);
|
|
26
10
|
initMcpServer({
|
|
@@ -29,7 +13,6 @@ const newServer = ({ clientOptions, mcpOptions: defaultMcpOptions, req, res, })
|
|
|
29
13
|
...clientOptions,
|
|
30
14
|
...authOptions,
|
|
31
15
|
},
|
|
32
|
-
mcpOptions,
|
|
33
16
|
});
|
|
34
17
|
}
|
|
35
18
|
catch (error) {
|
package/http.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.mjs","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,6BAA6B,EAAE,MAAM,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