@codeqr/ts-mcp 0.9.0 → 0.19.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +16 -218
- package/auth.d.mts +6 -0
- package/auth.d.mts.map +1 -0
- package/auth.d.ts +6 -0
- package/auth.d.ts.map +1 -0
- package/auth.js +37 -0
- package/auth.js.map +1 -0
- package/{headers.mjs → auth.mjs} +16 -2
- package/auth.mjs.map +1 -0
- package/code-tool-paths.cjs +8 -0
- package/code-tool-paths.cjs.map +1 -0
- package/code-tool-paths.d.cts +2 -0
- package/code-tool-paths.d.cts.map +1 -0
- package/code-tool-types.d.mts +7 -9
- package/code-tool-types.d.mts.map +1 -1
- package/code-tool-types.d.ts +7 -9
- package/code-tool-types.d.ts.map +1 -1
- package/code-tool-worker.d.mts +5 -0
- package/code-tool-worker.d.mts.map +1 -0
- package/code-tool-worker.d.ts +5 -0
- package/code-tool-worker.d.ts.map +1 -0
- package/code-tool-worker.js +249 -0
- package/code-tool-worker.js.map +1 -0
- package/code-tool-worker.mjs +244 -0
- package/code-tool-worker.mjs.map +1 -0
- package/code-tool.d.mts +12 -45
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts +12 -45
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +315 -27
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +282 -27
- package/code-tool.mjs.map +1 -1
- package/docs-search-tool.d.mts +10 -3
- package/docs-search-tool.d.mts.map +1 -1
- package/docs-search-tool.d.ts +10 -3
- package/docs-search-tool.d.ts.map +1 -1
- package/docs-search-tool.js +29 -6
- package/docs-search-tool.js.map +1 -1
- package/docs-search-tool.mjs +29 -6
- package/docs-search-tool.mjs.map +1 -1
- package/http.d.mts +6 -3
- package/http.d.mts.map +1 -1
- package/http.d.ts +6 -3
- package/http.d.ts.map +1 -1
- package/http.js +108 -49
- package/http.js.map +1 -1
- package/http.mjs +108 -49
- package/http.mjs.map +1 -1
- package/index.js +19 -50
- package/index.js.map +1 -1
- package/index.mjs +19 -50
- package/index.mjs.map +1 -1
- package/instructions.d.mts +2 -0
- package/instructions.d.mts.map +1 -0
- package/instructions.d.ts +2 -0
- package/instructions.d.ts.map +1 -0
- package/instructions.js +42 -0
- package/instructions.js.map +1 -0
- package/instructions.mjs +39 -0
- package/instructions.mjs.map +1 -0
- package/logger.d.mts +7 -0
- package/logger.d.mts.map +1 -0
- package/logger.d.ts +7 -0
- package/logger.d.ts.map +1 -0
- package/logger.js +29 -0
- package/logger.js.map +1 -0
- package/logger.mjs +22 -0
- package/logger.mjs.map +1 -0
- package/methods.d.mts +10 -0
- package/methods.d.mts.map +1 -0
- package/methods.d.ts +10 -0
- package/methods.d.ts.map +1 -0
- package/methods.js +215 -0
- package/methods.js.map +1 -0
- package/methods.mjs +211 -0
- package/methods.mjs.map +1 -0
- package/options.d.mts +9 -9
- package/options.d.mts.map +1 -1
- package/options.d.ts +9 -9
- package/options.d.ts.map +1 -1
- package/options.js +54 -359
- package/options.js.map +1 -1
- package/options.mjs +54 -359
- package/options.mjs.map +1 -1
- package/package.json +83 -60
- package/server.d.mts +11 -16
- package/server.d.mts.map +1 -1
- package/server.d.ts +11 -16
- package/server.d.ts.map +1 -1
- package/server.js +86 -101
- package/server.js.map +1 -1
- package/server.mjs +85 -96
- package/server.mjs.map +1 -1
- package/src/{headers.ts → auth.ts} +18 -1
- package/src/code-tool-paths.cts +5 -0
- package/src/code-tool-types.ts +8 -9
- package/src/code-tool-worker.ts +295 -0
- package/src/code-tool.ts +371 -34
- package/src/docs-search-tool.ts +48 -7
- package/src/http.ts +128 -54
- package/src/index.ts +22 -63
- package/src/instructions.ts +60 -0
- package/src/logger.ts +28 -0
- package/src/methods.ts +236 -0
- package/src/options.ts +72 -384
- package/src/server.ts +99 -116
- package/src/stdio.ts +6 -5
- package/src/{tools/types.ts → types.ts} +14 -5
- package/src/util.ts +25 -0
- package/stdio.d.mts +1 -1
- package/stdio.d.mts.map +1 -1
- package/stdio.d.ts +1 -1
- package/stdio.d.ts.map +1 -1
- package/stdio.js +5 -4
- package/stdio.js.map +1 -1
- package/stdio.mjs +5 -4
- package/stdio.mjs.map +1 -1
- package/{tools/types.d.mts → types.d.mts} +10 -2
- package/types.d.mts.map +1 -0
- package/{tools/types.d.ts → types.d.ts} +10 -2
- package/types.d.ts.map +1 -0
- package/types.js.map +1 -0
- package/types.mjs.map +1 -0
- package/util.d.mts +4 -0
- package/util.d.mts.map +1 -0
- package/util.d.ts +4 -0
- package/util.d.ts.map +1 -0
- package/util.js +30 -0
- package/util.js.map +1 -0
- package/util.mjs +24 -0
- package/util.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/headers.d.mts +0 -4
- package/headers.d.mts.map +0 -1
- package/headers.d.ts +0 -4
- package/headers.d.ts.map +0 -1
- package/headers.js +0 -22
- package/headers.js.map +0 -1
- package/headers.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/analytics/retrieve-analytics.ts +0 -441
- package/src/tools/domains/create-domains.ts +0 -75
- package/src/tools/domains/delete-domains.ts +0 -55
- package/src/tools/domains/list-domains.ts +0 -68
- package/src/tools/domains/update-domains.ts +0 -79
- package/src/tools/events/list-events.ts +0 -421
- package/src/tools/index.ts +0 -133
- package/src/tools/links/bulk/create-links-bulk.ts +0 -966
- package/src/tools/links/bulk/delete-links-bulk.ts +0 -59
- package/src/tools/links/count-links.ts +0 -957
- package/src/tools/links/create-links.ts +0 -957
- package/src/tools/links/delete-links.ts +0 -56
- package/src/tools/links/list-links.ts +0 -980
- package/src/tools/links/retrieve-info-links.ts +0 -75
- package/src/tools/links/update-links.ts +0 -964
- package/src/tools/links/upsert-links.ts +0 -958
- package/src/tools/projects/list-projects.ts +0 -51
- package/src/tools/projects/retrieve-projects.ts +0 -56
- package/src/tools/qrcodes/bulk/create-qrcodes-bulk.ts +0 -1077
- package/src/tools/qrcodes/bulk/delete-qrcodes-bulk.ts +0 -59
- package/src/tools/qrcodes/count-qrcodes.ts +0 -220
- package/src/tools/qrcodes/create-qrcodes.ts +0 -1067
- package/src/tools/qrcodes/delete-qrcodes.ts +0 -56
- package/src/tools/qrcodes/list-qrcodes.ts +0 -221
- package/src/tools/qrcodes/retrieve-qrcodes.ts +0 -67
- package/src/tools/qrcodes/update-qrcodes.ts +0 -1074
- package/src/tools/qrcodes/upsert-qrcodes.ts +0 -1068
- package/src/tools/tags/create-tags.ts +0 -59
- package/src/tools/tags/delete-tags.ts +0 -55
- package/src/tools/tags/list-tags.ts +0 -87
- package/src/tools/tags/update-tags.ts +0 -63
- package/src/tools/track/track-lead-track.ts +0 -93
- package/src/tools/track/track-sale-track.ts +0 -108
- package/src/tools.ts +0 -1
- package/tools/analytics/retrieve-analytics.d.mts +0 -51
- package/tools/analytics/retrieve-analytics.d.mts.map +0 -1
- package/tools/analytics/retrieve-analytics.d.ts +0 -51
- package/tools/analytics/retrieve-analytics.d.ts.map +0 -1
- package/tools/analytics/retrieve-analytics.js +0 -438
- package/tools/analytics/retrieve-analytics.js.map +0 -1
- package/tools/analytics/retrieve-analytics.mjs +0 -431
- package/tools/analytics/retrieve-analytics.mjs.map +0 -1
- package/tools/domains/create-domains.d.mts +0 -51
- package/tools/domains/create-domains.d.mts.map +0 -1
- package/tools/domains/create-domains.d.ts +0 -51
- package/tools/domains/create-domains.d.ts.map +0 -1
- package/tools/domains/create-domains.js +0 -74
- package/tools/domains/create-domains.js.map +0 -1
- package/tools/domains/create-domains.mjs +0 -67
- package/tools/domains/create-domains.mjs.map +0 -1
- package/tools/domains/delete-domains.d.mts +0 -51
- package/tools/domains/delete-domains.d.mts.map +0 -1
- package/tools/domains/delete-domains.d.ts +0 -51
- package/tools/domains/delete-domains.d.ts.map +0 -1
- package/tools/domains/delete-domains.js +0 -55
- package/tools/domains/delete-domains.js.map +0 -1
- package/tools/domains/delete-domains.mjs +0 -48
- package/tools/domains/delete-domains.mjs.map +0 -1
- package/tools/domains/list-domains.d.mts +0 -51
- package/tools/domains/list-domains.d.mts.map +0 -1
- package/tools/domains/list-domains.d.ts +0 -51
- package/tools/domains/list-domains.d.ts.map +0 -1
- package/tools/domains/list-domains.js +0 -67
- package/tools/domains/list-domains.js.map +0 -1
- package/tools/domains/list-domains.mjs +0 -60
- package/tools/domains/list-domains.mjs.map +0 -1
- package/tools/domains/update-domains.d.mts +0 -51
- package/tools/domains/update-domains.d.mts.map +0 -1
- package/tools/domains/update-domains.d.ts +0 -51
- package/tools/domains/update-domains.d.ts.map +0 -1
- package/tools/domains/update-domains.js +0 -78
- package/tools/domains/update-domains.js.map +0 -1
- package/tools/domains/update-domains.mjs +0 -71
- package/tools/domains/update-domains.mjs.map +0 -1
- package/tools/events/list-events.d.mts +0 -51
- package/tools/events/list-events.d.mts.map +0 -1
- package/tools/events/list-events.d.ts +0 -51
- package/tools/events/list-events.d.ts.map +0 -1
- package/tools/events/list-events.js +0 -418
- package/tools/events/list-events.js.map +0 -1
- package/tools/events/list-events.mjs +0 -411
- package/tools/events/list-events.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 -117
- package/tools/index.js.map +0 -1
- package/tools/index.mjs +0 -110
- package/tools/index.mjs.map +0 -1
- package/tools/links/bulk/create-links-bulk.d.mts +0 -51
- package/tools/links/bulk/create-links-bulk.d.mts.map +0 -1
- package/tools/links/bulk/create-links-bulk.d.ts +0 -51
- package/tools/links/bulk/create-links-bulk.d.ts.map +0 -1
- package/tools/links/bulk/create-links-bulk.js +0 -956
- package/tools/links/bulk/create-links-bulk.js.map +0 -1
- package/tools/links/bulk/create-links-bulk.mjs +0 -949
- package/tools/links/bulk/create-links-bulk.mjs.map +0 -1
- package/tools/links/bulk/delete-links-bulk.d.mts +0 -51
- package/tools/links/bulk/delete-links-bulk.d.mts.map +0 -1
- package/tools/links/bulk/delete-links-bulk.d.ts +0 -51
- package/tools/links/bulk/delete-links-bulk.d.ts.map +0 -1
- package/tools/links/bulk/delete-links-bulk.js +0 -58
- package/tools/links/bulk/delete-links-bulk.js.map +0 -1
- package/tools/links/bulk/delete-links-bulk.mjs +0 -51
- package/tools/links/bulk/delete-links-bulk.mjs.map +0 -1
- package/tools/links/count-links.d.mts +0 -51
- package/tools/links/count-links.d.mts.map +0 -1
- package/tools/links/count-links.d.ts +0 -51
- package/tools/links/count-links.d.ts.map +0 -1
- package/tools/links/count-links.js +0 -951
- package/tools/links/count-links.js.map +0 -1
- package/tools/links/count-links.mjs +0 -944
- package/tools/links/count-links.mjs.map +0 -1
- package/tools/links/create-links.d.mts +0 -51
- package/tools/links/create-links.d.mts.map +0 -1
- package/tools/links/create-links.d.ts +0 -51
- package/tools/links/create-links.d.ts.map +0 -1
- package/tools/links/create-links.js +0 -947
- package/tools/links/create-links.js.map +0 -1
- package/tools/links/create-links.mjs +0 -940
- package/tools/links/create-links.mjs.map +0 -1
- package/tools/links/delete-links.d.mts +0 -51
- package/tools/links/delete-links.d.mts.map +0 -1
- package/tools/links/delete-links.d.ts +0 -51
- package/tools/links/delete-links.d.ts.map +0 -1
- package/tools/links/delete-links.js +0 -55
- package/tools/links/delete-links.js.map +0 -1
- package/tools/links/delete-links.mjs +0 -48
- package/tools/links/delete-links.mjs.map +0 -1
- package/tools/links/list-links.d.mts +0 -51
- package/tools/links/list-links.d.mts.map +0 -1
- package/tools/links/list-links.d.ts +0 -51
- package/tools/links/list-links.d.ts.map +0 -1
- package/tools/links/list-links.js +0 -973
- package/tools/links/list-links.js.map +0 -1
- package/tools/links/list-links.mjs +0 -966
- package/tools/links/list-links.mjs.map +0 -1
- package/tools/links/retrieve-info-links.d.mts +0 -51
- package/tools/links/retrieve-info-links.d.mts.map +0 -1
- package/tools/links/retrieve-info-links.d.ts +0 -51
- package/tools/links/retrieve-info-links.d.ts.map +0 -1
- package/tools/links/retrieve-info-links.js +0 -71
- package/tools/links/retrieve-info-links.js.map +0 -1
- package/tools/links/retrieve-info-links.mjs +0 -64
- package/tools/links/retrieve-info-links.mjs.map +0 -1
- package/tools/links/update-links.d.mts +0 -51
- package/tools/links/update-links.d.mts.map +0 -1
- package/tools/links/update-links.d.ts +0 -51
- package/tools/links/update-links.d.ts.map +0 -1
- package/tools/links/update-links.js +0 -953
- package/tools/links/update-links.js.map +0 -1
- package/tools/links/update-links.mjs +0 -946
- package/tools/links/update-links.mjs.map +0 -1
- package/tools/links/upsert-links.d.mts +0 -51
- package/tools/links/upsert-links.d.mts.map +0 -1
- package/tools/links/upsert-links.d.ts +0 -51
- package/tools/links/upsert-links.d.ts.map +0 -1
- package/tools/links/upsert-links.js +0 -947
- package/tools/links/upsert-links.js.map +0 -1
- package/tools/links/upsert-links.mjs +0 -940
- package/tools/links/upsert-links.mjs.map +0 -1
- package/tools/projects/list-projects.d.mts +0 -51
- package/tools/projects/list-projects.d.mts.map +0 -1
- package/tools/projects/list-projects.d.ts +0 -51
- package/tools/projects/list-projects.d.ts.map +0 -1
- package/tools/projects/list-projects.js +0 -51
- package/tools/projects/list-projects.js.map +0 -1
- package/tools/projects/list-projects.mjs +0 -44
- package/tools/projects/list-projects.mjs.map +0 -1
- package/tools/projects/retrieve-projects.d.mts +0 -51
- package/tools/projects/retrieve-projects.d.mts.map +0 -1
- package/tools/projects/retrieve-projects.d.ts +0 -51
- package/tools/projects/retrieve-projects.d.ts.map +0 -1
- package/tools/projects/retrieve-projects.js +0 -55
- package/tools/projects/retrieve-projects.js.map +0 -1
- package/tools/projects/retrieve-projects.mjs +0 -48
- package/tools/projects/retrieve-projects.mjs.map +0 -1
- package/tools/qrcodes/bulk/create-qrcodes-bulk.d.mts +0 -51
- package/tools/qrcodes/bulk/create-qrcodes-bulk.d.mts.map +0 -1
- package/tools/qrcodes/bulk/create-qrcodes-bulk.d.ts +0 -51
- package/tools/qrcodes/bulk/create-qrcodes-bulk.d.ts.map +0 -1
- package/tools/qrcodes/bulk/create-qrcodes-bulk.js +0 -1068
- package/tools/qrcodes/bulk/create-qrcodes-bulk.js.map +0 -1
- package/tools/qrcodes/bulk/create-qrcodes-bulk.mjs +0 -1061
- package/tools/qrcodes/bulk/create-qrcodes-bulk.mjs.map +0 -1
- package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.mts +0 -51
- package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.mts.map +0 -1
- package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.ts +0 -51
- package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.ts.map +0 -1
- package/tools/qrcodes/bulk/delete-qrcodes-bulk.js +0 -58
- package/tools/qrcodes/bulk/delete-qrcodes-bulk.js.map +0 -1
- package/tools/qrcodes/bulk/delete-qrcodes-bulk.mjs +0 -51
- package/tools/qrcodes/bulk/delete-qrcodes-bulk.mjs.map +0 -1
- package/tools/qrcodes/count-qrcodes.d.mts +0 -51
- package/tools/qrcodes/count-qrcodes.d.mts.map +0 -1
- package/tools/qrcodes/count-qrcodes.d.ts +0 -51
- package/tools/qrcodes/count-qrcodes.d.ts.map +0 -1
- package/tools/qrcodes/count-qrcodes.js +0 -215
- package/tools/qrcodes/count-qrcodes.js.map +0 -1
- package/tools/qrcodes/count-qrcodes.mjs +0 -208
- package/tools/qrcodes/count-qrcodes.mjs.map +0 -1
- package/tools/qrcodes/create-qrcodes.d.mts +0 -51
- package/tools/qrcodes/create-qrcodes.d.mts.map +0 -1
- package/tools/qrcodes/create-qrcodes.d.ts +0 -51
- package/tools/qrcodes/create-qrcodes.d.ts.map +0 -1
- package/tools/qrcodes/create-qrcodes.js +0 -1059
- package/tools/qrcodes/create-qrcodes.js.map +0 -1
- package/tools/qrcodes/create-qrcodes.mjs +0 -1052
- package/tools/qrcodes/create-qrcodes.mjs.map +0 -1
- package/tools/qrcodes/delete-qrcodes.d.mts +0 -51
- package/tools/qrcodes/delete-qrcodes.d.mts.map +0 -1
- package/tools/qrcodes/delete-qrcodes.d.ts +0 -51
- package/tools/qrcodes/delete-qrcodes.d.ts.map +0 -1
- package/tools/qrcodes/delete-qrcodes.js +0 -55
- package/tools/qrcodes/delete-qrcodes.js.map +0 -1
- package/tools/qrcodes/delete-qrcodes.mjs +0 -48
- package/tools/qrcodes/delete-qrcodes.mjs.map +0 -1
- package/tools/qrcodes/list-qrcodes.d.mts +0 -51
- package/tools/qrcodes/list-qrcodes.d.mts.map +0 -1
- package/tools/qrcodes/list-qrcodes.d.ts +0 -51
- package/tools/qrcodes/list-qrcodes.d.ts.map +0 -1
- package/tools/qrcodes/list-qrcodes.js +0 -217
- package/tools/qrcodes/list-qrcodes.js.map +0 -1
- package/tools/qrcodes/list-qrcodes.mjs +0 -210
- package/tools/qrcodes/list-qrcodes.mjs.map +0 -1
- package/tools/qrcodes/retrieve-qrcodes.d.mts +0 -51
- package/tools/qrcodes/retrieve-qrcodes.d.mts.map +0 -1
- package/tools/qrcodes/retrieve-qrcodes.d.ts +0 -51
- package/tools/qrcodes/retrieve-qrcodes.d.ts.map +0 -1
- package/tools/qrcodes/retrieve-qrcodes.js +0 -65
- package/tools/qrcodes/retrieve-qrcodes.js.map +0 -1
- package/tools/qrcodes/retrieve-qrcodes.mjs +0 -58
- package/tools/qrcodes/retrieve-qrcodes.mjs.map +0 -1
- package/tools/qrcodes/update-qrcodes.d.mts +0 -51
- package/tools/qrcodes/update-qrcodes.d.mts.map +0 -1
- package/tools/qrcodes/update-qrcodes.d.ts +0 -51
- package/tools/qrcodes/update-qrcodes.d.ts.map +0 -1
- package/tools/qrcodes/update-qrcodes.js +0 -1065
- package/tools/qrcodes/update-qrcodes.js.map +0 -1
- package/tools/qrcodes/update-qrcodes.mjs +0 -1058
- package/tools/qrcodes/update-qrcodes.mjs.map +0 -1
- package/tools/qrcodes/upsert-qrcodes.d.mts +0 -51
- package/tools/qrcodes/upsert-qrcodes.d.mts.map +0 -1
- package/tools/qrcodes/upsert-qrcodes.d.ts +0 -51
- package/tools/qrcodes/upsert-qrcodes.d.ts.map +0 -1
- package/tools/qrcodes/upsert-qrcodes.js +0 -1059
- package/tools/qrcodes/upsert-qrcodes.js.map +0 -1
- package/tools/qrcodes/upsert-qrcodes.mjs +0 -1052
- package/tools/qrcodes/upsert-qrcodes.mjs.map +0 -1
- package/tools/tags/create-tags.d.mts +0 -51
- package/tools/tags/create-tags.d.mts.map +0 -1
- package/tools/tags/create-tags.d.ts +0 -51
- package/tools/tags/create-tags.d.ts.map +0 -1
- package/tools/tags/create-tags.js +0 -58
- package/tools/tags/create-tags.js.map +0 -1
- package/tools/tags/create-tags.mjs +0 -51
- package/tools/tags/create-tags.mjs.map +0 -1
- package/tools/tags/delete-tags.d.mts +0 -51
- package/tools/tags/delete-tags.d.mts.map +0 -1
- package/tools/tags/delete-tags.d.ts +0 -51
- package/tools/tags/delete-tags.d.ts.map +0 -1
- package/tools/tags/delete-tags.js +0 -55
- package/tools/tags/delete-tags.js.map +0 -1
- package/tools/tags/delete-tags.mjs +0 -48
- package/tools/tags/delete-tags.mjs.map +0 -1
- package/tools/tags/list-tags.d.mts +0 -51
- package/tools/tags/list-tags.d.mts.map +0 -1
- package/tools/tags/list-tags.d.ts +0 -51
- package/tools/tags/list-tags.d.ts.map +0 -1
- package/tools/tags/list-tags.js +0 -87
- package/tools/tags/list-tags.js.map +0 -1
- package/tools/tags/list-tags.mjs +0 -80
- package/tools/tags/list-tags.mjs.map +0 -1
- package/tools/tags/update-tags.d.mts +0 -51
- package/tools/tags/update-tags.d.mts.map +0 -1
- package/tools/tags/update-tags.d.ts +0 -51
- package/tools/tags/update-tags.d.ts.map +0 -1
- package/tools/tags/update-tags.js +0 -63
- package/tools/tags/update-tags.js.map +0 -1
- package/tools/tags/update-tags.mjs +0 -56
- package/tools/tags/update-tags.mjs.map +0 -1
- package/tools/track/track-lead-track.d.mts +0 -51
- package/tools/track/track-lead-track.d.mts.map +0 -1
- package/tools/track/track-lead-track.d.ts +0 -51
- package/tools/track/track-lead-track.d.ts.map +0 -1
- package/tools/track/track-lead-track.js +0 -87
- package/tools/track/track-lead-track.js.map +0 -1
- package/tools/track/track-lead-track.mjs +0 -80
- package/tools/track/track-lead-track.mjs.map +0 -1
- package/tools/track/track-sale-track.d.mts +0 -51
- package/tools/track/track-sale-track.d.mts.map +0 -1
- package/tools/track/track-sale-track.d.ts +0 -51
- package/tools/track/track-sale-track.d.ts.map +0 -1
- package/tools/track/track-sale-track.js +0 -99
- package/tools/track/track-sale-track.js.map +0 -1
- package/tools/track/track-sale-track.mjs +0 -92
- package/tools/track/track-sale-track.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
|
@@ -1,441 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { Metadata, asErrorResult, asTextContentResult } from '@codeqr/ts-mcp/tools/types';
|
|
4
|
-
|
|
5
|
-
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
6
|
-
import Codeqr from '@codeqr/ts';
|
|
7
|
-
|
|
8
|
-
export const metadata: Metadata = {
|
|
9
|
-
resource: 'analytics',
|
|
10
|
-
operation: 'read',
|
|
11
|
-
tags: [],
|
|
12
|
-
httpMethod: 'get',
|
|
13
|
-
httpPath: '/analytics',
|
|
14
|
-
operationId: 'retrieveAnalytics',
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export const tool: Tool = {
|
|
18
|
-
name: 'retrieve_analytics',
|
|
19
|
-
description:
|
|
20
|
-
'Retrieve analytics for a link, a domain, or the authenticated workspace. The response type depends on the `event` and `type` query parameters.',
|
|
21
|
-
inputSchema: {
|
|
22
|
-
type: 'object',
|
|
23
|
-
properties: {
|
|
24
|
-
browser: {
|
|
25
|
-
type: 'string',
|
|
26
|
-
description: 'The browser to retrieve analytics for.',
|
|
27
|
-
},
|
|
28
|
-
city: {
|
|
29
|
-
type: 'string',
|
|
30
|
-
description: 'The city to retrieve analytics for.',
|
|
31
|
-
},
|
|
32
|
-
continent: {
|
|
33
|
-
$ref: '#/$defs/continent_code',
|
|
34
|
-
},
|
|
35
|
-
country: {
|
|
36
|
-
$ref: '#/$defs/country_code',
|
|
37
|
-
},
|
|
38
|
-
device: {
|
|
39
|
-
type: 'string',
|
|
40
|
-
description: 'The device to retrieve analytics for.',
|
|
41
|
-
},
|
|
42
|
-
domain: {
|
|
43
|
-
type: 'string',
|
|
44
|
-
description: 'The domain of the short link.',
|
|
45
|
-
},
|
|
46
|
-
end: {
|
|
47
|
-
type: 'string',
|
|
48
|
-
description:
|
|
49
|
-
'The end date and time when to retrieve analytics from. If not provided, defaults to the current date.',
|
|
50
|
-
},
|
|
51
|
-
event: {
|
|
52
|
-
type: 'string',
|
|
53
|
-
description: "The type of event to retrieve analytics for. Defaults to 'analytics'.",
|
|
54
|
-
enum: ['clicks', 'leads', 'sales', 'scans', 'views', 'composite'],
|
|
55
|
-
},
|
|
56
|
-
excludeRoot: {
|
|
57
|
-
type: 'boolean',
|
|
58
|
-
description: 'Whether to exclude the root link from the response.',
|
|
59
|
-
},
|
|
60
|
-
externalId: {
|
|
61
|
-
type: 'string',
|
|
62
|
-
description:
|
|
63
|
-
"This is the ID of the link in the your database. Must be prefixed with 'ext_' when passed as a query parameter.",
|
|
64
|
-
},
|
|
65
|
-
groupBy: {
|
|
66
|
-
type: 'string',
|
|
67
|
-
description: "The parameter to group the analytics data points by. Defaults to 'count' if undefined.",
|
|
68
|
-
enum: [
|
|
69
|
-
'timeseries',
|
|
70
|
-
'clicks',
|
|
71
|
-
'count',
|
|
72
|
-
'totals',
|
|
73
|
-
'top_urls',
|
|
74
|
-
'top_links',
|
|
75
|
-
'top_qrcodes',
|
|
76
|
-
'top_pages',
|
|
77
|
-
'top_events',
|
|
78
|
-
'scans',
|
|
79
|
-
'views',
|
|
80
|
-
'country',
|
|
81
|
-
'city',
|
|
82
|
-
'region',
|
|
83
|
-
'devices',
|
|
84
|
-
'browsers',
|
|
85
|
-
'os',
|
|
86
|
-
'referers',
|
|
87
|
-
'referer_urls',
|
|
88
|
-
'trend_live',
|
|
89
|
-
'kpis',
|
|
90
|
-
'analytics',
|
|
91
|
-
'continents',
|
|
92
|
-
'countries',
|
|
93
|
-
'cities',
|
|
94
|
-
'leads',
|
|
95
|
-
'sales',
|
|
96
|
-
'composite',
|
|
97
|
-
],
|
|
98
|
-
},
|
|
99
|
-
interval: {
|
|
100
|
-
type: 'string',
|
|
101
|
-
description: 'The interval to retrieve analytics for. Takes precedence over start and end.',
|
|
102
|
-
enum: ['1h', '24h', '7d', '30d', '90d', 'ytd', '1y', 'all', 'all_unfiltered'],
|
|
103
|
-
},
|
|
104
|
-
key: {
|
|
105
|
-
type: 'string',
|
|
106
|
-
description: 'The short link slug.',
|
|
107
|
-
},
|
|
108
|
-
linkId: {
|
|
109
|
-
type: 'string',
|
|
110
|
-
description: 'The unique ID of the short link on CodeQR.',
|
|
111
|
-
},
|
|
112
|
-
os: {
|
|
113
|
-
type: 'string',
|
|
114
|
-
description: 'The OS to retrieve analytics for.',
|
|
115
|
-
},
|
|
116
|
-
pageId: {
|
|
117
|
-
type: 'string',
|
|
118
|
-
description: 'The unique ID of the page on CodeQR.',
|
|
119
|
-
},
|
|
120
|
-
qrcodeId: {
|
|
121
|
-
type: 'string',
|
|
122
|
-
description: 'The unique ID of the QR code on CodeQR.',
|
|
123
|
-
},
|
|
124
|
-
referer: {
|
|
125
|
-
type: 'string',
|
|
126
|
-
description: 'The referer to retrieve analytics for.',
|
|
127
|
-
},
|
|
128
|
-
root: {
|
|
129
|
-
type: 'boolean',
|
|
130
|
-
description:
|
|
131
|
-
'Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both.',
|
|
132
|
-
},
|
|
133
|
-
start: {
|
|
134
|
-
type: 'string',
|
|
135
|
-
description: 'The start date and time when to retrieve analytics from.',
|
|
136
|
-
},
|
|
137
|
-
tagId: {
|
|
138
|
-
type: 'string',
|
|
139
|
-
description: 'The tag ID to retrieve analytics for.',
|
|
140
|
-
},
|
|
141
|
-
timezone: {
|
|
142
|
-
type: 'string',
|
|
143
|
-
description:
|
|
144
|
-
'The IANA time zone code for aligning timeseries granularity (e.g. America/New_York). Defaults to UTC.',
|
|
145
|
-
},
|
|
146
|
-
type: {
|
|
147
|
-
type: 'string',
|
|
148
|
-
description: 'The type of analytics to retrieve.',
|
|
149
|
-
},
|
|
150
|
-
types: {
|
|
151
|
-
type: 'string',
|
|
152
|
-
description: 'The types of analytics to retrieve.',
|
|
153
|
-
},
|
|
154
|
-
url: {
|
|
155
|
-
type: 'string',
|
|
156
|
-
description: 'The URL to retrieve analytics for.',
|
|
157
|
-
},
|
|
158
|
-
},
|
|
159
|
-
required: [],
|
|
160
|
-
$defs: {
|
|
161
|
-
continent_code: {
|
|
162
|
-
type: 'string',
|
|
163
|
-
description: 'The continent to retrieve analytics for.',
|
|
164
|
-
enum: ['AF', 'AN', 'AS', 'EU', 'NA', 'OC', 'SA'],
|
|
165
|
-
},
|
|
166
|
-
country_code: {
|
|
167
|
-
type: 'string',
|
|
168
|
-
description: 'The country to retrieve analytics for.',
|
|
169
|
-
enum: [
|
|
170
|
-
'AF',
|
|
171
|
-
'AL',
|
|
172
|
-
'DZ',
|
|
173
|
-
'AS',
|
|
174
|
-
'AD',
|
|
175
|
-
'AO',
|
|
176
|
-
'AI',
|
|
177
|
-
'AQ',
|
|
178
|
-
'AG',
|
|
179
|
-
'AR',
|
|
180
|
-
'AM',
|
|
181
|
-
'AW',
|
|
182
|
-
'AU',
|
|
183
|
-
'AT',
|
|
184
|
-
'AZ',
|
|
185
|
-
'BS',
|
|
186
|
-
'BH',
|
|
187
|
-
'BD',
|
|
188
|
-
'BB',
|
|
189
|
-
'BY',
|
|
190
|
-
'BE',
|
|
191
|
-
'BZ',
|
|
192
|
-
'BJ',
|
|
193
|
-
'BM',
|
|
194
|
-
'BT',
|
|
195
|
-
'BO',
|
|
196
|
-
'BA',
|
|
197
|
-
'BW',
|
|
198
|
-
'BV',
|
|
199
|
-
'BR',
|
|
200
|
-
'IO',
|
|
201
|
-
'BN',
|
|
202
|
-
'BG',
|
|
203
|
-
'BF',
|
|
204
|
-
'BI',
|
|
205
|
-
'KH',
|
|
206
|
-
'CM',
|
|
207
|
-
'CA',
|
|
208
|
-
'CV',
|
|
209
|
-
'KY',
|
|
210
|
-
'CF',
|
|
211
|
-
'TD',
|
|
212
|
-
'CL',
|
|
213
|
-
'CN',
|
|
214
|
-
'CX',
|
|
215
|
-
'CC',
|
|
216
|
-
'CO',
|
|
217
|
-
'KM',
|
|
218
|
-
'CG',
|
|
219
|
-
'CD',
|
|
220
|
-
'CK',
|
|
221
|
-
'CR',
|
|
222
|
-
'CI',
|
|
223
|
-
'HR',
|
|
224
|
-
'CU',
|
|
225
|
-
'CY',
|
|
226
|
-
'CZ',
|
|
227
|
-
'DK',
|
|
228
|
-
'DJ',
|
|
229
|
-
'DM',
|
|
230
|
-
'DO',
|
|
231
|
-
'EC',
|
|
232
|
-
'EG',
|
|
233
|
-
'SV',
|
|
234
|
-
'GQ',
|
|
235
|
-
'ER',
|
|
236
|
-
'EE',
|
|
237
|
-
'ET',
|
|
238
|
-
'FK',
|
|
239
|
-
'FO',
|
|
240
|
-
'FJ',
|
|
241
|
-
'FI',
|
|
242
|
-
'FR',
|
|
243
|
-
'GF',
|
|
244
|
-
'PF',
|
|
245
|
-
'TF',
|
|
246
|
-
'GA',
|
|
247
|
-
'GM',
|
|
248
|
-
'GE',
|
|
249
|
-
'DE',
|
|
250
|
-
'GH',
|
|
251
|
-
'GI',
|
|
252
|
-
'GR',
|
|
253
|
-
'GL',
|
|
254
|
-
'GD',
|
|
255
|
-
'GP',
|
|
256
|
-
'GU',
|
|
257
|
-
'GT',
|
|
258
|
-
'GN',
|
|
259
|
-
'GW',
|
|
260
|
-
'GY',
|
|
261
|
-
'HT',
|
|
262
|
-
'HM',
|
|
263
|
-
'VA',
|
|
264
|
-
'HN',
|
|
265
|
-
'HK',
|
|
266
|
-
'HU',
|
|
267
|
-
'IS',
|
|
268
|
-
'IN',
|
|
269
|
-
'ID',
|
|
270
|
-
'IR',
|
|
271
|
-
'IQ',
|
|
272
|
-
'IE',
|
|
273
|
-
'IL',
|
|
274
|
-
'IT',
|
|
275
|
-
'JM',
|
|
276
|
-
'JP',
|
|
277
|
-
'JO',
|
|
278
|
-
'KZ',
|
|
279
|
-
'KE',
|
|
280
|
-
'KI',
|
|
281
|
-
'KP',
|
|
282
|
-
'KR',
|
|
283
|
-
'KW',
|
|
284
|
-
'KG',
|
|
285
|
-
'LA',
|
|
286
|
-
'LV',
|
|
287
|
-
'LB',
|
|
288
|
-
'LS',
|
|
289
|
-
'LR',
|
|
290
|
-
'LY',
|
|
291
|
-
'LI',
|
|
292
|
-
'LT',
|
|
293
|
-
'LU',
|
|
294
|
-
'MO',
|
|
295
|
-
'MG',
|
|
296
|
-
'MW',
|
|
297
|
-
'MY',
|
|
298
|
-
'MV',
|
|
299
|
-
'ML',
|
|
300
|
-
'MT',
|
|
301
|
-
'MH',
|
|
302
|
-
'MQ',
|
|
303
|
-
'MR',
|
|
304
|
-
'MU',
|
|
305
|
-
'YT',
|
|
306
|
-
'MX',
|
|
307
|
-
'FM',
|
|
308
|
-
'MD',
|
|
309
|
-
'MC',
|
|
310
|
-
'MN',
|
|
311
|
-
'MS',
|
|
312
|
-
'MA',
|
|
313
|
-
'MZ',
|
|
314
|
-
'MM',
|
|
315
|
-
'NA',
|
|
316
|
-
'NR',
|
|
317
|
-
'NP',
|
|
318
|
-
'NL',
|
|
319
|
-
'NC',
|
|
320
|
-
'NZ',
|
|
321
|
-
'NI',
|
|
322
|
-
'NE',
|
|
323
|
-
'NG',
|
|
324
|
-
'NU',
|
|
325
|
-
'NF',
|
|
326
|
-
'MK',
|
|
327
|
-
'MP',
|
|
328
|
-
'NO',
|
|
329
|
-
'OM',
|
|
330
|
-
'PK',
|
|
331
|
-
'PW',
|
|
332
|
-
'PS',
|
|
333
|
-
'PA',
|
|
334
|
-
'PG',
|
|
335
|
-
'PY',
|
|
336
|
-
'PE',
|
|
337
|
-
'PH',
|
|
338
|
-
'PN',
|
|
339
|
-
'PL',
|
|
340
|
-
'PT',
|
|
341
|
-
'PR',
|
|
342
|
-
'QA',
|
|
343
|
-
'RE',
|
|
344
|
-
'RO',
|
|
345
|
-
'RU',
|
|
346
|
-
'RW',
|
|
347
|
-
'SH',
|
|
348
|
-
'KN',
|
|
349
|
-
'LC',
|
|
350
|
-
'PM',
|
|
351
|
-
'VC',
|
|
352
|
-
'WS',
|
|
353
|
-
'SM',
|
|
354
|
-
'ST',
|
|
355
|
-
'SA',
|
|
356
|
-
'SN',
|
|
357
|
-
'SC',
|
|
358
|
-
'SL',
|
|
359
|
-
'SG',
|
|
360
|
-
'SK',
|
|
361
|
-
'SI',
|
|
362
|
-
'SB',
|
|
363
|
-
'SO',
|
|
364
|
-
'ZA',
|
|
365
|
-
'GS',
|
|
366
|
-
'ES',
|
|
367
|
-
'LK',
|
|
368
|
-
'SD',
|
|
369
|
-
'SR',
|
|
370
|
-
'SJ',
|
|
371
|
-
'SZ',
|
|
372
|
-
'SE',
|
|
373
|
-
'CH',
|
|
374
|
-
'SY',
|
|
375
|
-
'TW',
|
|
376
|
-
'TJ',
|
|
377
|
-
'TZ',
|
|
378
|
-
'TH',
|
|
379
|
-
'TL',
|
|
380
|
-
'TG',
|
|
381
|
-
'TK',
|
|
382
|
-
'TO',
|
|
383
|
-
'TT',
|
|
384
|
-
'TN',
|
|
385
|
-
'TR',
|
|
386
|
-
'TM',
|
|
387
|
-
'TC',
|
|
388
|
-
'TV',
|
|
389
|
-
'UG',
|
|
390
|
-
'UA',
|
|
391
|
-
'AE',
|
|
392
|
-
'GB',
|
|
393
|
-
'US',
|
|
394
|
-
'UM',
|
|
395
|
-
'UY',
|
|
396
|
-
'UZ',
|
|
397
|
-
'VU',
|
|
398
|
-
'VE',
|
|
399
|
-
'VN',
|
|
400
|
-
'VG',
|
|
401
|
-
'VI',
|
|
402
|
-
'WF',
|
|
403
|
-
'EH',
|
|
404
|
-
'YE',
|
|
405
|
-
'ZM',
|
|
406
|
-
'ZW',
|
|
407
|
-
'AX',
|
|
408
|
-
'BQ',
|
|
409
|
-
'CW',
|
|
410
|
-
'GG',
|
|
411
|
-
'IM',
|
|
412
|
-
'JE',
|
|
413
|
-
'ME',
|
|
414
|
-
'BL',
|
|
415
|
-
'MF',
|
|
416
|
-
'RS',
|
|
417
|
-
'SX',
|
|
418
|
-
'SS',
|
|
419
|
-
'XK',
|
|
420
|
-
],
|
|
421
|
-
},
|
|
422
|
-
},
|
|
423
|
-
},
|
|
424
|
-
annotations: {
|
|
425
|
-
readOnlyHint: true,
|
|
426
|
-
},
|
|
427
|
-
};
|
|
428
|
-
|
|
429
|
-
export const handler = async (client: Codeqr, args: Record<string, unknown> | undefined) => {
|
|
430
|
-
const body = args as any;
|
|
431
|
-
try {
|
|
432
|
-
return asTextContentResult(await client.analytics.retrieve(body));
|
|
433
|
-
} catch (error) {
|
|
434
|
-
if (error instanceof Codeqr.APIError) {
|
|
435
|
-
return asErrorResult(error.message);
|
|
436
|
-
}
|
|
437
|
-
throw error;
|
|
438
|
-
}
|
|
439
|
-
};
|
|
440
|
-
|
|
441
|
-
export default { metadata, tool, handler };
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { isJqError, maybeFilter } from '@codeqr/ts-mcp/filtering';
|
|
4
|
-
import { Metadata, asErrorResult, asTextContentResult } from '@codeqr/ts-mcp/tools/types';
|
|
5
|
-
|
|
6
|
-
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
|
-
import Codeqr from '@codeqr/ts';
|
|
8
|
-
|
|
9
|
-
export const metadata: Metadata = {
|
|
10
|
-
resource: 'domains',
|
|
11
|
-
operation: 'write',
|
|
12
|
-
tags: [],
|
|
13
|
-
httpMethod: 'post',
|
|
14
|
-
httpPath: '/domains',
|
|
15
|
-
operationId: 'createDomain',
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const tool: Tool = {
|
|
19
|
-
name: 'create_domains',
|
|
20
|
-
description:
|
|
21
|
-
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nCreate a domain for the authenticated workspace.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/domain',\n $defs: {\n domain: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'The unique identifier of the domain.'\n },\n archived: {\n type: 'boolean',\n description: 'Whether the domain is archived.'\n },\n createdAt: {\n type: 'string',\n description: 'The date the domain was created.'\n },\n expiredUrl: {\n type: 'string',\n description: 'The URL to redirect to when a link under this domain has expired.'\n },\n placeholder: {\n type: 'string',\n description: 'Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.'\n },\n primary: {\n type: 'boolean',\n description: 'Whether the domain is the primary domain for the project.'\n },\n slug: {\n type: 'string',\n description: 'The domain name.'\n },\n target: {\n type: 'string',\n description: 'The target URL to redirect to when accessing the domain root.'\n },\n type: {\n type: 'string',\n description: 'The behavior type for the domain root redirect.',\n enum: [ 'redirect',\n 'rewrite'\n ]\n },\n updatedAt: {\n type: 'string',\n description: 'The date the domain was last updated.'\n },\n verified: {\n type: 'boolean',\n description: 'Whether the domain is verified.'\n }\n },\n required: [ 'id',\n 'archived',\n 'createdAt',\n 'expiredUrl',\n 'placeholder',\n 'primary',\n 'slug',\n 'target',\n 'type',\n 'updatedAt',\n 'verified'\n ]\n }\n }\n}\n```",
|
|
22
|
-
inputSchema: {
|
|
23
|
-
type: 'object',
|
|
24
|
-
properties: {
|
|
25
|
-
slug: {
|
|
26
|
-
type: 'string',
|
|
27
|
-
description: 'Name of the domain.',
|
|
28
|
-
},
|
|
29
|
-
archived: {
|
|
30
|
-
type: 'boolean',
|
|
31
|
-
description: 'Whether to archive this domain. `false` will unarchive a previously archived domain.',
|
|
32
|
-
},
|
|
33
|
-
expiredUrl: {
|
|
34
|
-
type: 'string',
|
|
35
|
-
description: 'Redirect users to a specific URL when any link under this domain has expired.',
|
|
36
|
-
},
|
|
37
|
-
placeholder: {
|
|
38
|
-
type: 'string',
|
|
39
|
-
description:
|
|
40
|
-
'Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.',
|
|
41
|
-
},
|
|
42
|
-
target: {
|
|
43
|
-
type: 'string',
|
|
44
|
-
description: 'The target URL to redirect to when accessing the domain root.',
|
|
45
|
-
},
|
|
46
|
-
type: {
|
|
47
|
-
type: 'string',
|
|
48
|
-
description: 'The behavior type for the domain root redirect.',
|
|
49
|
-
enum: ['redirect', 'rewrite'],
|
|
50
|
-
},
|
|
51
|
-
jq_filter: {
|
|
52
|
-
type: 'string',
|
|
53
|
-
title: 'jq Filter',
|
|
54
|
-
description:
|
|
55
|
-
'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
required: ['slug'],
|
|
59
|
-
},
|
|
60
|
-
annotations: {},
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
export const handler = async (client: Codeqr, args: Record<string, unknown> | undefined) => {
|
|
64
|
-
const { jq_filter, ...body } = args as any;
|
|
65
|
-
try {
|
|
66
|
-
return asTextContentResult(await maybeFilter(jq_filter, await client.domains.create(body)));
|
|
67
|
-
} catch (error) {
|
|
68
|
-
if (error instanceof Codeqr.APIError || isJqError(error)) {
|
|
69
|
-
return asErrorResult(error.message);
|
|
70
|
-
}
|
|
71
|
-
throw error;
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export default { metadata, tool, handler };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { isJqError, maybeFilter } from '@codeqr/ts-mcp/filtering';
|
|
4
|
-
import { Metadata, asErrorResult, asTextContentResult } from '@codeqr/ts-mcp/tools/types';
|
|
5
|
-
|
|
6
|
-
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
|
-
import Codeqr from '@codeqr/ts';
|
|
8
|
-
|
|
9
|
-
export const metadata: Metadata = {
|
|
10
|
-
resource: 'domains',
|
|
11
|
-
operation: 'write',
|
|
12
|
-
tags: [],
|
|
13
|
-
httpMethod: 'delete',
|
|
14
|
-
httpPath: '/domains/{slug}',
|
|
15
|
-
operationId: 'deleteDomain',
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const tool: Tool = {
|
|
19
|
-
name: 'delete_domains',
|
|
20
|
-
description:
|
|
21
|
-
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nDelete a domain from a workspace. It cannot be undone. This will also delete all the links associated with the domain.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/domain_delete_response',\n $defs: {\n domain_delete_response: {\n type: 'object',\n properties: {\n slug: {\n type: 'string',\n description: 'The domain name.'\n }\n },\n required: [ 'slug'\n ]\n }\n }\n}\n```",
|
|
22
|
-
inputSchema: {
|
|
23
|
-
type: 'object',
|
|
24
|
-
properties: {
|
|
25
|
-
slug: {
|
|
26
|
-
type: 'string',
|
|
27
|
-
description: 'The domain name.',
|
|
28
|
-
},
|
|
29
|
-
jq_filter: {
|
|
30
|
-
type: 'string',
|
|
31
|
-
title: 'jq Filter',
|
|
32
|
-
description:
|
|
33
|
-
'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
required: ['slug'],
|
|
37
|
-
},
|
|
38
|
-
annotations: {
|
|
39
|
-
idempotentHint: true,
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export const handler = async (client: Codeqr, args: Record<string, unknown> | undefined) => {
|
|
44
|
-
const { slug, jq_filter, ...body } = args as any;
|
|
45
|
-
try {
|
|
46
|
-
return asTextContentResult(await maybeFilter(jq_filter, await client.domains.delete(slug)));
|
|
47
|
-
} catch (error) {
|
|
48
|
-
if (error instanceof Codeqr.APIError || isJqError(error)) {
|
|
49
|
-
return asErrorResult(error.message);
|
|
50
|
-
}
|
|
51
|
-
throw error;
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export default { metadata, tool, handler };
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { isJqError, maybeFilter } from '@codeqr/ts-mcp/filtering';
|
|
4
|
-
import { Metadata, asErrorResult, asTextContentResult } from '@codeqr/ts-mcp/tools/types';
|
|
5
|
-
|
|
6
|
-
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
|
-
import Codeqr from '@codeqr/ts';
|
|
8
|
-
|
|
9
|
-
export const metadata: Metadata = {
|
|
10
|
-
resource: 'domains',
|
|
11
|
-
operation: 'read',
|
|
12
|
-
tags: [],
|
|
13
|
-
httpMethod: 'get',
|
|
14
|
-
httpPath: '/domains',
|
|
15
|
-
operationId: 'listDomains',
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const tool: Tool = {
|
|
19
|
-
name: 'list_domains',
|
|
20
|
-
description:
|
|
21
|
-
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nRetrieve a list of domains associated with the authenticated workspace.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/domain_list_response',\n $defs: {\n domain_list_response: {\n type: 'array',\n items: {\n $ref: '#/$defs/domain'\n }\n },\n domain: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'The unique identifier of the domain.'\n },\n archived: {\n type: 'boolean',\n description: 'Whether the domain is archived.'\n },\n createdAt: {\n type: 'string',\n description: 'The date the domain was created.'\n },\n expiredUrl: {\n type: 'string',\n description: 'The URL to redirect to when a link under this domain has expired.'\n },\n placeholder: {\n type: 'string',\n description: 'Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.'\n },\n primary: {\n type: 'boolean',\n description: 'Whether the domain is the primary domain for the project.'\n },\n slug: {\n type: 'string',\n description: 'The domain name.'\n },\n target: {\n type: 'string',\n description: 'The target URL to redirect to when accessing the domain root.'\n },\n type: {\n type: 'string',\n description: 'The behavior type for the domain root redirect.',\n enum: [ 'redirect',\n 'rewrite'\n ]\n },\n updatedAt: {\n type: 'string',\n description: 'The date the domain was last updated.'\n },\n verified: {\n type: 'boolean',\n description: 'Whether the domain is verified.'\n }\n },\n required: [ 'id',\n 'archived',\n 'createdAt',\n 'expiredUrl',\n 'placeholder',\n 'primary',\n 'slug',\n 'target',\n 'type',\n 'updatedAt',\n 'verified'\n ]\n }\n }\n}\n```",
|
|
22
|
-
inputSchema: {
|
|
23
|
-
type: 'object',
|
|
24
|
-
properties: {
|
|
25
|
-
archived: {
|
|
26
|
-
type: 'boolean',
|
|
27
|
-
description:
|
|
28
|
-
'Whether to include archived domains in the response. Defaults to `false` if not provided.',
|
|
29
|
-
},
|
|
30
|
-
page: {
|
|
31
|
-
type: 'number',
|
|
32
|
-
description: 'The page number for pagination.',
|
|
33
|
-
},
|
|
34
|
-
pageSize: {
|
|
35
|
-
type: 'number',
|
|
36
|
-
description: 'The number of items per page.',
|
|
37
|
-
},
|
|
38
|
-
search: {
|
|
39
|
-
type: 'string',
|
|
40
|
-
description: 'The search term to filter the domains by.',
|
|
41
|
-
},
|
|
42
|
-
jq_filter: {
|
|
43
|
-
type: 'string',
|
|
44
|
-
title: 'jq Filter',
|
|
45
|
-
description:
|
|
46
|
-
'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
required: [],
|
|
50
|
-
},
|
|
51
|
-
annotations: {
|
|
52
|
-
readOnlyHint: true,
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export const handler = async (client: Codeqr, args: Record<string, unknown> | undefined) => {
|
|
57
|
-
const { jq_filter, ...body } = args as any;
|
|
58
|
-
try {
|
|
59
|
-
return asTextContentResult(await maybeFilter(jq_filter, await client.domains.list(body)));
|
|
60
|
-
} catch (error) {
|
|
61
|
-
if (error instanceof Codeqr.APIError || isJqError(error)) {
|
|
62
|
-
return asErrorResult(error.message);
|
|
63
|
-
}
|
|
64
|
-
throw error;
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export default { metadata, tool, handler };
|