@dynamoi/mcp 1.0.8 → 1.0.10
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/CHANGELOG.md +12 -0
- package/README.md +30 -32
- package/dist/auth/protected-resource.d.ts +8 -8
- package/dist/auth/protected-resource.js +12 -12
- package/dist/campaign-limits.d.ts +16 -0
- package/dist/campaign-limits.js +22 -0
- package/dist/index.js +157 -147
- package/dist/server/account-settings-tools.d.ts +3 -3
- package/dist/server/artist-intake-tools.d.ts +2 -2
- package/dist/server/create-server.d.ts +3 -5
- package/dist/server/distribution-tools.d.ts +4 -4
- package/dist/server/shop-tools.d.ts +12 -2
- package/dist/server/smart-campaign-creative.d.ts +33 -3
- package/dist/server/smart-link-theme-preview.d.ts +1 -1
- package/dist/server/smart-link-tools.d.ts +8 -8
- package/dist/server/support-tools.d.ts +1 -1
- package/dist/server/tools.d.ts +21 -21
- package/dist/server/workspace/tool.d.ts +1 -1
- package/dist/shop-limits.d.ts +6 -0
- package/dist/shop-limits.js +13 -0
- package/package.json +16 -2
- package/server.json +1 -1
package/dist/index.js
CHANGED
|
@@ -80,15 +80,17 @@ var BILLING_COUNTRY_READ_CONTRACT = {
|
|
|
80
80
|
mcp: {
|
|
81
81
|
...mcp,
|
|
82
82
|
definition: {
|
|
83
|
-
description: "Read the artist billing country. Existing commercial currency stays fixed. This is not tax residency.
|
|
83
|
+
description: "Read the artist billing country. Existing commercial currency stays fixed. This is not tax residency.",
|
|
84
84
|
destructiveHint: false,
|
|
85
85
|
name: "dynamoi_get_artist_billing_country",
|
|
86
86
|
openWorldHint: false,
|
|
87
|
-
profiles,
|
|
87
|
+
profiles: { directory: "advertised", full: "advertised" },
|
|
88
88
|
readOnlyHint: true,
|
|
89
89
|
schema: z2.object({ artistId: z2.string().uuid() }).strict(),
|
|
90
90
|
title: "Get Artist Billing Country"
|
|
91
|
-
}
|
|
91
|
+
},
|
|
92
|
+
directoryReason: "Read-only billing country is directory-safe.",
|
|
93
|
+
scopes: ["dynamoi:read", "dynamoi:billing.read"]
|
|
92
94
|
},
|
|
93
95
|
mobile: {
|
|
94
96
|
...mobile,
|
|
@@ -394,7 +396,7 @@ var DYNAMOI_MCP_TOOL_SCOPES = {
|
|
|
394
396
|
dynamoi_get_account_overview: ["dynamoi:read"],
|
|
395
397
|
dynamoi_get_action_center: ["dynamoi:read", "dynamoi:platform.read"],
|
|
396
398
|
dynamoi_get_artist_analytics: ["dynamoi:read"],
|
|
397
|
-
dynamoi_onboard_artist: ["dynamoi:read", "dynamoi:
|
|
399
|
+
dynamoi_onboard_artist: ["dynamoi:read", "dynamoi:platform.write"],
|
|
398
400
|
[AUDIENCE_ANALYTICS_CONTRACT.mcp.definition.name]: AUDIENCE_ANALYTICS_CONTRACT.mcp.scopes,
|
|
399
401
|
[BILLING_COUNTRY_READ_CONTRACT.mcp.definition.name]: BILLING_COUNTRY_READ_CONTRACT.mcp.scopes,
|
|
400
402
|
dynamoi_get_audit_log: ["dynamoi:read"],
|
|
@@ -407,19 +409,17 @@ var DYNAMOI_MCP_TOOL_SCOPES = {
|
|
|
407
409
|
],
|
|
408
410
|
dynamoi_get_distribution_status: [
|
|
409
411
|
"dynamoi:read",
|
|
410
|
-
"dynamoi:distribution.read"
|
|
411
|
-
"dynamoi:mcp.full"
|
|
412
|
+
"dynamoi:distribution.read"
|
|
412
413
|
],
|
|
413
414
|
dynamoi_get_earnings: ["dynamoi:read", "dynamoi:distribution.read"],
|
|
414
415
|
[GROWTH_AUDIT_CONTRACT.mcp.definition.name]: GROWTH_AUDIT_CONTRACT.mcp.scopes,
|
|
415
416
|
dynamoi_get_platform_status: ["dynamoi:read", "dynamoi:platform.read"],
|
|
416
417
|
dynamoi_prepare_distribution_release: [
|
|
417
418
|
"dynamoi:read",
|
|
418
|
-
"dynamoi:distribution.apply"
|
|
419
|
-
"dynamoi:mcp.full"
|
|
419
|
+
"dynamoi:distribution.apply"
|
|
420
420
|
],
|
|
421
421
|
[PLAYLIST_ANALYTICS_CONTRACT.mcp.definition.name]: PLAYLIST_ANALYTICS_CONTRACT.mcp.scopes,
|
|
422
|
-
dynamoi_claim_referral_code: ["dynamoi:read", "dynamoi:
|
|
422
|
+
dynamoi_claim_referral_code: ["dynamoi:read", "dynamoi:platform.write"],
|
|
423
423
|
dynamoi_get_referrals: ["dynamoi:read"],
|
|
424
424
|
dynamoi_get_resume_funding: ["dynamoi:read", "dynamoi:billing.read"],
|
|
425
425
|
dynamoi_get_smart_link: ["dynamoi:read"],
|
|
@@ -435,7 +435,7 @@ var DYNAMOI_MCP_TOOL_SCOPES = {
|
|
|
435
435
|
"dynamoi:read",
|
|
436
436
|
"dynamoi:campaign.write"
|
|
437
437
|
],
|
|
438
|
-
dynamoi_manage_team: ["dynamoi:read", "dynamoi:
|
|
438
|
+
dynamoi_manage_team: ["dynamoi:read", "dynamoi:platform.write"],
|
|
439
439
|
dynamoi_manage_youtube_draft: ["dynamoi:read", "dynamoi:campaign.write"],
|
|
440
440
|
dynamoi_open_workspace: ["dynamoi:read"],
|
|
441
441
|
dynamoi_preview_smart_link_themes: ["dynamoi:read"],
|
|
@@ -451,8 +451,8 @@ var DYNAMOI_MCP_TOOL_SCOPES = {
|
|
|
451
451
|
"dynamoi:read",
|
|
452
452
|
"dynamoi:platform.write"
|
|
453
453
|
],
|
|
454
|
-
dynamoi_update_account_profile: ["dynamoi:read", "dynamoi:
|
|
455
|
-
dynamoi_update_campaign: ["dynamoi:read", "dynamoi:campaign.
|
|
454
|
+
dynamoi_update_account_profile: ["dynamoi:read", "dynamoi:platform.write"],
|
|
455
|
+
dynamoi_update_campaign: ["dynamoi:read", "dynamoi:campaign.launch"],
|
|
456
456
|
dynamoi_update_smart_link: ["dynamoi:read", "dynamoi:smart_links.write"],
|
|
457
457
|
dynamoi_update_smart_link_artist_hub_settings: [
|
|
458
458
|
"dynamoi:read",
|
|
@@ -1565,12 +1565,12 @@ var MediaAssetModerationOutputSchema = z11.strictObject({
|
|
|
1565
1565
|
var MediaAssetSummaryOutputSchema = z11.object({
|
|
1566
1566
|
aspectRatio: z11.string().optional(),
|
|
1567
1567
|
createdAt: z11.string(),
|
|
1568
|
-
moderation: MediaAssetModerationOutputSchema.optional(),
|
|
1569
|
-
thumbnailUrl: z11.string().optional(),
|
|
1570
1568
|
fileName: z11.string().optional(),
|
|
1571
1569
|
fileType: z11.string(),
|
|
1572
1570
|
height: z11.number().optional(),
|
|
1573
1571
|
id: z11.string(),
|
|
1572
|
+
moderation: MediaAssetModerationOutputSchema.optional(),
|
|
1573
|
+
thumbnailUrl: z11.string().optional(),
|
|
1574
1574
|
url: z11.string().optional(),
|
|
1575
1575
|
urlExpiresAt: z11.string().optional(),
|
|
1576
1576
|
width: z11.number().optional()
|
|
@@ -2031,6 +2031,7 @@ var DELETE_ACCOUNT_TOOL_DEFINITIONS = [
|
|
|
2031
2031
|
...writeAnnotations,
|
|
2032
2032
|
description: "Preview account deletion eligibility and blockers without changing anything. Show the irreversible consequences, then obtain explicit confirmation and call with confirm=true. Deletion starts cleanup; it does not promise all records are erased.",
|
|
2033
2033
|
name: "dynamoi_delete_account",
|
|
2034
|
+
openWorldHint: true,
|
|
2034
2035
|
schema: DeleteAccountSchema,
|
|
2035
2036
|
title: "Delete Account"
|
|
2036
2037
|
}
|
|
@@ -2046,8 +2047,8 @@ var ArtistIntakeInputSchema = z14.object({
|
|
|
2046
2047
|
url: z14.string().trim().min(1).optional()
|
|
2047
2048
|
}).strict();
|
|
2048
2049
|
var ARTIST_INTAKE_TOOL_DEFINITION = {
|
|
2049
|
-
description: "
|
|
2050
|
-
destructiveHint:
|
|
2050
|
+
description: "Search Spotify artists by query, preview a Spotify artist URL, or intake an artist from a Spotify or YouTube URL. Intake creates a workspace and starts onboarding using web organization policy; organizationId selects an editable organization. Existing claims, entitlements, caps and provider quotas apply. Sign in through the app or web first.",
|
|
2051
|
+
destructiveHint: true,
|
|
2051
2052
|
name: "dynamoi_onboard_artist",
|
|
2052
2053
|
openWorldHint: true,
|
|
2053
2054
|
outputSchema: AnyOutputEnvelopeSchema,
|
|
@@ -2062,8 +2063,8 @@ import {
|
|
|
2062
2063
|
import * as z27 from "zod/v4";
|
|
2063
2064
|
|
|
2064
2065
|
// src/version.ts
|
|
2065
|
-
var BUNDLED_DYNAMOI_MCP_VERSION = "1.0.
|
|
2066
|
-
var DYNAMOI_MCP_VERSION = BUNDLED_DYNAMOI_MCP_VERSION.length > 0 && !BUNDLED_DYNAMOI_MCP_VERSION.includes("__") ? BUNDLED_DYNAMOI_MCP_VERSION : "1.0.
|
|
2066
|
+
var BUNDLED_DYNAMOI_MCP_VERSION = "1.0.10";
|
|
2067
|
+
var DYNAMOI_MCP_VERSION = BUNDLED_DYNAMOI_MCP_VERSION.length > 0 && !BUNDLED_DYNAMOI_MCP_VERSION.includes("__") ? BUNDLED_DYNAMOI_MCP_VERSION : "1.0.10";
|
|
2067
2068
|
|
|
2068
2069
|
// src/server/distribution-tools.ts
|
|
2069
2070
|
import * as z16 from "zod/v4";
|
|
@@ -2095,8 +2096,8 @@ var DynamoiApplyForDistributionInputSchema = z15.object({
|
|
|
2095
2096
|
userIntentSummary: z15.string().trim().min(1).max(500)
|
|
2096
2097
|
}).strict();
|
|
2097
2098
|
var pendingBehavior = {
|
|
2098
|
-
|
|
2099
|
-
|
|
2099
|
+
reason: "Eligibility, adult attestation, country admission, submission and persisted submitted-state readback still need frozen feature receipts on all five surfaces. Manual review and existing admission rules remain required.",
|
|
2100
|
+
status: "partial"
|
|
2100
2101
|
};
|
|
2101
2102
|
var DISTRIBUTION_APPLICATION_CONTRACT = {
|
|
2102
2103
|
capabilityId: "distribution_application",
|
|
@@ -2104,7 +2105,7 @@ var DISTRIBUTION_APPLICATION_CONTRACT = {
|
|
|
2104
2105
|
mcp: {
|
|
2105
2106
|
definition: {
|
|
2106
2107
|
description: "Submit an artist's application for Dynamoi music distribution after the user explicitly asks to apply and all five eligibility requirements are met. This records an application for manual review; it does not approve distribution, accept an agreement, submit a release, transfer rights, configure splits or tax forms, or deliver music to stores. All three valid ISO 3166-1 alpha-2 country or territory codes, an adult signer attestation, confirmApplicationSubmission=true, and a concise userIntentSummary are required. Country, tax, payout, sanctions, and provider-delivery checks remain manual progression gates after intake; a valid code does not imply approval. Repeated submission is idempotent for an active application.",
|
|
2107
|
-
destructiveHint:
|
|
2108
|
+
destructiveHint: true,
|
|
2108
2109
|
idempotentHint: true,
|
|
2109
2110
|
name: "dynamoi_apply_for_distribution",
|
|
2110
2111
|
openWorldHint: true,
|
|
@@ -2175,8 +2176,8 @@ var DynamoiPrepareDistributionReleaseInputSchema = z16.object({
|
|
|
2175
2176
|
}).strict();
|
|
2176
2177
|
var DISTRIBUTION_TOOL_DEFINITIONS = [
|
|
2177
2178
|
{
|
|
2178
|
-
description: "Prepare metadata, tracks and proposed splits for artist review in a private expiring web form. Does not submit a release, attest rights, accept agreements or invite collaborators.
|
|
2179
|
-
destructiveHint:
|
|
2179
|
+
description: "Prepare metadata, tracks and proposed splits for artist review in a private expiring web form. Does not submit a release, attest rights, accept agreements or invite collaborators.",
|
|
2180
|
+
destructiveHint: true,
|
|
2180
2181
|
name: "dynamoi_prepare_distribution_release",
|
|
2181
2182
|
openWorldHint: false,
|
|
2182
2183
|
outputSchema: AnyOutputEnvelopeSchema,
|
|
@@ -2185,7 +2186,7 @@ var DISTRIBUTION_TOOL_DEFINITIONS = [
|
|
|
2185
2186
|
title: "Prepare Release Handoff"
|
|
2186
2187
|
},
|
|
2187
2188
|
{
|
|
2188
|
-
description: "Read native foundation, application, agreement, catalog or release status for an accessible artist through the same owners as web/mobile.
|
|
2189
|
+
description: "Read native foundation, application, agreement, catalog or release status for an accessible artist through the same owners as web/mobile. Release intake status requires editor access, as on web; catalog retains viewer scoping. Catalog is a status overview; releases returns the latest 20 submissions, not complete history. Rights and agreement attestation and sending releases to stores are done by the artist in web or the app.",
|
|
2189
2190
|
destructiveHint: false,
|
|
2190
2191
|
name: "dynamoi_get_distribution_status",
|
|
2191
2192
|
openWorldHint: false,
|
|
@@ -2308,16 +2309,19 @@ Common workflows:
|
|
|
2308
2309
|
- Shop one-off promotion: dynamoi_shop_get_quote → explicit user confirmation → dynamoi_shop_create_checkout. The returned URL is an unpaid handoff; the user completes payment outside MCP and no Shop order exists until Dynamoi verifies settlement.
|
|
2309
2310
|
`.trim();
|
|
2310
2311
|
var DYNAMOI_CHATGPT_APP_INSTRUCTIONS = `
|
|
2311
|
-
Dynamoi
|
|
2312
|
+
Dynamoi provides Smart Links, campaign and audience analytics, campaign drafts, and distribution status for the signed-in user's own artists. Call dynamoi_about for the product overview.
|
|
2312
2313
|
|
|
2313
|
-
|
|
2314
|
+
Use these tools only when the user asks about their own Dynamoi account, artists, campaigns, Smart Links, or releases. Never promise streams, followers, approval, or any other result.
|
|
2314
2315
|
|
|
2315
2316
|
You are operating Dynamoi's tools on behalf of the authenticated user. This
|
|
2316
|
-
surface
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2317
|
+
surface exposes billing and earnings status reads, account and team management,
|
|
2318
|
+
referral claims, artist onboarding, campaign draft preparation, release handoffs,
|
|
2319
|
+
Smart Link updates and controls, support requests, and Meta/YouTube connection
|
|
2320
|
+
links that the user opens to authorize access. Draft preparation never launches
|
|
2321
|
+
or changes live campaigns; release handoffs never accept agreements or deliver
|
|
2322
|
+
music to stores. Purchases, subscriptions and plan setup, checkout, adding funds,
|
|
2323
|
+
launching or editing live campaigns, billing-country changes, and account deletion
|
|
2324
|
+
remain dashboard-only. For those actions, tell the user: "You can do this
|
|
2321
2325
|
in the Dynamoi dashboard at https://dynamoi.com/dashboard." Do not create or
|
|
2322
2326
|
surface a purchase or checkout URL. Use the available read tools afterward to
|
|
2323
2327
|
check existing status, analytics, and setup state.
|
|
@@ -2483,10 +2487,19 @@ function registerDynamoiPrompts(server) {
|
|
|
2483
2487
|
import { ResourceTemplate } from "@modelcontextprotocol/server";
|
|
2484
2488
|
import * as z18 from "zod/v4";
|
|
2485
2489
|
|
|
2486
|
-
// src/
|
|
2490
|
+
// src/campaign-limits.ts
|
|
2491
|
+
var CAMPAIGN_CREATIVE_SELECTION_LIMIT = 10;
|
|
2492
|
+
var CAMPAIGN_CREATIVE_TOTAL_SELECTION_LIMIT = 3 * CAMPAIGN_CREATIVE_SELECTION_LIMIT;
|
|
2493
|
+
var MIN_CAMPAIGN_DAYS = 5;
|
|
2494
|
+
var MAX_SOURCE_AUDIO_MIB = 250;
|
|
2495
|
+
var MAX_SOURCE_AUDIO_BYTES = MAX_SOURCE_AUDIO_MIB * 1024 * 1024;
|
|
2496
|
+
var MIN_DAILY_CAMPAIGN_BUDGET_USD = 10;
|
|
2487
2497
|
var USD_BUDGET_MINIMUMS = {
|
|
2488
|
-
smartCampaign: {
|
|
2489
|
-
|
|
2498
|
+
smartCampaign: {
|
|
2499
|
+
dailyUsd: MIN_DAILY_CAMPAIGN_BUDGET_USD,
|
|
2500
|
+
totalUsd: MIN_DAILY_CAMPAIGN_BUDGET_USD * MIN_CAMPAIGN_DAYS
|
|
2501
|
+
},
|
|
2502
|
+
youtube: { dailyUsd: MIN_DAILY_CAMPAIGN_BUDGET_USD, totalUsd: 75 }
|
|
2490
2503
|
};
|
|
2491
2504
|
|
|
2492
2505
|
// src/server/playbook-resources.ts
|
|
@@ -3079,20 +3092,24 @@ function registerDynamoiResources(server, adapter) {
|
|
|
3079
3092
|
|
|
3080
3093
|
// src/server/shop-tools.ts
|
|
3081
3094
|
import * as z19 from "zod/v4";
|
|
3095
|
+
|
|
3096
|
+
// src/shop-limits.ts
|
|
3097
|
+
var SHOP_CUSTOM_MIN_TARGET_VIEWS = 25000;
|
|
3098
|
+
var SHOP_CUSTOM_MAX_TARGET_VIEWS = 1e6;
|
|
3099
|
+
var SHOP_CUSTOM_MIN_DURATION_DAYS = 7;
|
|
3100
|
+
var SHOP_CUSTOM_MAX_DURATION_DAYS = 30;
|
|
3101
|
+
var SHOP_MAX_TARGET_COUNTRY_CODES = 50;
|
|
3102
|
+
|
|
3103
|
+
// src/server/shop-tools.ts
|
|
3082
3104
|
var DYNAMOI_SHOP_FULL_SCOPE = "dynamoi:mcp.full";
|
|
3083
|
-
var DYNAMOI_SHOP_MAX_TARGET_COUNTRY_CODES = 50;
|
|
3084
|
-
var DYNAMOI_SHOP_CUSTOM_MIN_TARGET_VIEWS = 25000;
|
|
3085
|
-
var DYNAMOI_SHOP_CUSTOM_MAX_TARGET_VIEWS = 1e6;
|
|
3086
|
-
var DYNAMOI_SHOP_CUSTOM_MIN_DURATION_DAYS = 7;
|
|
3087
|
-
var DYNAMOI_SHOP_CUSTOM_MAX_DURATION_DAYS = 30;
|
|
3088
3105
|
var ShopPackageSelectionInputSchema = z19.object({
|
|
3089
3106
|
kind: z19.literal("package"),
|
|
3090
3107
|
tier: z19.enum(["starter", "standard", "premium"])
|
|
3091
3108
|
}).strict();
|
|
3092
3109
|
var ShopCustomSelectionInputSchema = z19.object({
|
|
3093
|
-
campaignDurationDays: z19.number().int().min(
|
|
3110
|
+
campaignDurationDays: z19.number().int().min(SHOP_CUSTOM_MIN_DURATION_DAYS).max(SHOP_CUSTOM_MAX_DURATION_DAYS),
|
|
3094
3111
|
kind: z19.literal("custom"),
|
|
3095
|
-
targetViews: z19.number().int().min(
|
|
3112
|
+
targetViews: z19.number().int().min(SHOP_CUSTOM_MIN_TARGET_VIEWS).max(SHOP_CUSTOM_MAX_TARGET_VIEWS)
|
|
3096
3113
|
}).strict();
|
|
3097
3114
|
var DynamoiShopSelectionInputSchema = z19.discriminatedUnion("kind", [
|
|
3098
3115
|
ShopPackageSelectionInputSchema,
|
|
@@ -3100,7 +3117,7 @@ var DynamoiShopSelectionInputSchema = z19.discriminatedUnion("kind", [
|
|
|
3100
3117
|
]);
|
|
3101
3118
|
var ShopGlobalTargetingInputSchema = z19.object({ mode: z19.literal("GLOBAL") }).strict();
|
|
3102
3119
|
var ShopIncludedTargetingInputSchema = z19.object({
|
|
3103
|
-
countryCodes: z19.array(z19.string().regex(/^[A-Z]{2}$/)).min(1).max(
|
|
3120
|
+
countryCodes: z19.array(z19.string().regex(/^[A-Z]{2}$/)).min(1).max(SHOP_MAX_TARGET_COUNTRY_CODES),
|
|
3104
3121
|
mode: z19.literal("INCLUDE")
|
|
3105
3122
|
}).strict();
|
|
3106
3123
|
var DynamoiShopTargetingInputSchema = z19.discriminatedUnion("mode", [
|
|
@@ -3201,12 +3218,13 @@ var DynamoiShopOrdersDataSchema = z19.object({
|
|
|
3201
3218
|
createdAt: z19.string(),
|
|
3202
3219
|
deploymentCompletedAt: z19.string().nullable(),
|
|
3203
3220
|
orderId: z19.string(),
|
|
3221
|
+
remedyOutcome: z19.enum(["full_refund", "partial_refund", "no_refund"]).nullable().optional(),
|
|
3204
3222
|
status: z19.string()
|
|
3205
3223
|
}).strict()).max(20)
|
|
3206
3224
|
}).strict();
|
|
3207
3225
|
var SHOP_TOOL_DEFINITIONS = [
|
|
3208
3226
|
{
|
|
3209
|
-
description: "Read up to 20 newest Shop orders for an authorized artist, optionally filtered by order ID. Returns observed order status, campaign status and fulfillment timestamps. No refunds or fulfillment changes.",
|
|
3227
|
+
description: "Read up to 20 newest Shop orders for an authorized artist, optionally filtered by order ID. Returns observed order status, independent remedy outcome, campaign status and fulfillment timestamps. No refunds or fulfillment changes.",
|
|
3210
3228
|
destructiveHint: false,
|
|
3211
3229
|
idempotentHint: true,
|
|
3212
3230
|
name: "dynamoi_shop_list_orders",
|
|
@@ -3258,10 +3276,10 @@ var UploadedSelectionSchema = z20.strictObject({
|
|
|
3258
3276
|
var CreativeSelectionSchema = z20.strictObject({
|
|
3259
3277
|
campaignId: z20.uuid(),
|
|
3260
3278
|
expectedUpdatedAt: z20.iso.datetime(),
|
|
3261
|
-
selectedCreativeIds: z20.array(z20.uuid()).min(1).max(
|
|
3262
|
-
selectedSocialPosts: z20.array(z20.string().min(1).max(200)).max(
|
|
3279
|
+
selectedCreativeIds: z20.array(z20.uuid()).min(1).max(CAMPAIGN_CREATIVE_SELECTION_LIMIT).optional(),
|
|
3280
|
+
selectedSocialPosts: z20.array(z20.string().min(1).max(200)).max(CAMPAIGN_CREATIVE_SELECTION_LIMIT).optional(),
|
|
3263
3281
|
source: z20.enum(["generate", "posts", "upload"]).optional(),
|
|
3264
|
-
uploadedAssets: z20.array(UploadedSelectionSchema).max(
|
|
3282
|
+
uploadedAssets: z20.array(UploadedSelectionSchema).max(CAMPAIGN_CREATIVE_SELECTION_LIMIT).optional()
|
|
3265
3283
|
});
|
|
3266
3284
|
var CreativeGenerationSchema = CreativeSelectionSchema.pick({
|
|
3267
3285
|
campaignId: true,
|
|
@@ -3274,7 +3292,7 @@ var SourceAudioUploadStatusSchema = CreativeGenerationSchema.extend({
|
|
|
3274
3292
|
var SourceAudioUploadSchema = z20.strictObject({
|
|
3275
3293
|
campaignId: z20.uuid(),
|
|
3276
3294
|
expectedUpdatedAt: z20.iso.datetime(),
|
|
3277
|
-
fileSizeBytes: z20.number().int().positive().max(
|
|
3295
|
+
fileSizeBytes: z20.number().int().positive().max(MAX_SOURCE_AUDIO_BYTES),
|
|
3278
3296
|
hookSeconds: z20.array(z20.number().int().nonnegative()).max(2),
|
|
3279
3297
|
trackDurationSeconds: z20.number().positive()
|
|
3280
3298
|
});
|
|
@@ -3319,6 +3337,11 @@ var SmartCampaignCreativeInputSchema = z20.strictObject({
|
|
|
3319
3337
|
currency: z20.string().length(3).optional(),
|
|
3320
3338
|
endDate: z20.iso.date().nullable()
|
|
3321
3339
|
}).optional(),
|
|
3340
|
+
catalog: z20.strictObject({
|
|
3341
|
+
after: z20.string().min(1).max(2048).optional(),
|
|
3342
|
+
limit: z20.number().int().min(1).max(25).default(10),
|
|
3343
|
+
source: z20.enum(["facebook", "instagram"])
|
|
3344
|
+
}).optional(),
|
|
3322
3345
|
locationSave: CreativeGenerationSchema.extend({
|
|
3323
3346
|
targeting: z20.union([
|
|
3324
3347
|
z20.strictObject({ mode: z20.literal("WORLDWIDE") }),
|
|
@@ -3347,6 +3370,9 @@ var SmartCampaignCreativeInputSchema = z20.strictObject({
|
|
|
3347
3370
|
url: z20.string().max(8192).optional(),
|
|
3348
3371
|
...CreativeSelectionSchema.partial().shape,
|
|
3349
3372
|
...SourceAudioUploadCompleteSchema.partial().shape
|
|
3373
|
+
}).refine((input) => !input.catalog || input.action === "read", {
|
|
3374
|
+
message: "Request a social catalog only with action=read.",
|
|
3375
|
+
path: ["catalog"]
|
|
3350
3376
|
});
|
|
3351
3377
|
var GeneratedCreativeSchema = z20.strictObject({
|
|
3352
3378
|
clipDurationSeconds: z20.number().nonnegative(),
|
|
@@ -3402,6 +3428,17 @@ var MediaUploadResultSchema = z20.union([
|
|
|
3402
3428
|
var SmartCampaignCreativeOutputSchema = z20.strictObject({
|
|
3403
3429
|
budgetDraft: z20.record(z20.string(), z20.unknown()).optional(),
|
|
3404
3430
|
campaignId: z20.uuid(),
|
|
3431
|
+
catalog: z20.strictObject({
|
|
3432
|
+
items: z20.array(z20.strictObject({
|
|
3433
|
+
createdAt: z20.string(),
|
|
3434
|
+
eligibleForPromotion: z20.boolean().nullable(),
|
|
3435
|
+
id: z20.string(),
|
|
3436
|
+
mediaType: z20.string(),
|
|
3437
|
+
text: z20.string().max(2000)
|
|
3438
|
+
})).max(25),
|
|
3439
|
+
nextCursor: z20.string().nullable(),
|
|
3440
|
+
source: z20.enum(["facebook", "instagram"])
|
|
3441
|
+
}).optional(),
|
|
3405
3442
|
draftState: z20.enum(["available", "missing"]).optional(),
|
|
3406
3443
|
generation: z20.strictObject({
|
|
3407
3444
|
items: z20.array(GeneratedCreativeSchema).max(100),
|
|
@@ -3451,10 +3488,10 @@ var SmartCampaignCreativeOutputSchema = z20.strictObject({
|
|
|
3451
3488
|
}).optional()
|
|
3452
3489
|
});
|
|
3453
3490
|
var SMART_CAMPAIGN_CREATIVE_TOOL_DEFINITION = {
|
|
3454
|
-
description:
|
|
3455
|
-
destructiveHint:
|
|
3491
|
+
description: `Use save_setup with setupSave={playLinkId, appleMusicUrl?} and a stable UUID-v4 setupRequestId per setup flow; reuse it on retries, and start a new flow for different content. It returns setupDraft. Use read_budget for budgetDraft and save_budget with budgetSave={campaignId, expectedUpdatedAt, budgetAmountCents, budgetAmountMinor?, currency?, budgetType:DAILY|TOTAL, endDate:YYYY-MM-DD|null}. Amounts are exact minor units in the artist currency; use the budget policy from read_budget. Setup and budget saves only edit drafts and never launch or charge. Use read_location to read native draft targeting and save_location with locationSave={campaignId, expectedUpdatedAt, targeting:{mode:WORLDWIDE}|{mode:INCLUDE,countryCodes:[US]}} to save it. Read locationDraft first for the current revision; both location actions return locationDraft. Read generation progress, generated creatives and current selection with action=read. To discover owned social posts, explicitly add catalog={source:facebook|instagram,limit:1..25,after?:nextCursor}. Only requested catalog reads fetch connected-account posts; use catalog.items[].id directly in selectedSocialPosts. Pass nextCursor as after for another page. Catalog reads never alter selections, token state, or campaigns; provider failure is an error, and selection revalidates ownership. Use start_generation, retry_generation or clear_generation with campaignId and expectedUpdatedAt from read. Generation runs asynchronously; poll with read. Use source_audio_upload_status or abort_source_audio_upload with campaignId, expectedUpdatedAt, uploadId and uploadSessionId to inspect uploaded parts or abort the direct upload. Agents never approve or submit. Use action=select with campaignId and expectedUpdatedAt from read, source=generate|posts|upload, and selectedCreativeIds, selectedSocialPosts (owned META:post IDs), or uploadedAssets=[{mediaAssetId}] from dynamoi_list_media_assets. Omit selectedCreativeIds for social or uploaded media. Uploaded metadata is resolved by the server; only owned, moderation-approved uploads can be selected. Selection never attests artist approval and never submits the campaign. Upload private JPEG/PNG/MP4 campaign media (1 GiB maximum) with start_media_upload, campaignId, expectedUpdatedAt and mediaUpload={assetId:UUID,fileName,fileSizeBytes,contentType}. Retain the returned key/uploadId and PUT each presigned part URL. Complete with complete_media_upload, a freshly inspected expectedUpdatedAt, and mediaUpload={assetId,fileName,fileSizeBytes,fileType,key,uploadId,parts:[{partNumber,etag}]}. Use media_upload_status or abort_media_upload with campaignId and mediaUpload={key,uploadId}; both remain usable after draft edits. A completed status means retry completion, not re-upload. Completion returns only a moderation receipt; poll dynamoi_list_media_assets and select only after APPROVED. Uploads do not edit the draft selection. Attach source MP3 audio to a draft with start_source_audio_upload, PUT each returned presigned part URL, then complete_source_audio_upload with the returned uploadId/uploadSessionId and part ETags. Both actions require campaignId, expectedUpdatedAt, fileSizeBytes, trackDurationSeconds and 0–2 hookSeconds. Read sourceAudio to confirm. Use import_source_audio with a public Dropbox share url, campaignId, expectedUpdatedAt, trackDurationSeconds and 0–2 hookSeconds (${MAX_SOURCE_AUDIO_MIB} MiB maximum). Google Drive is unsupported because it requires a Google API key. On timeout or an ambiguous result, re-read sourceAudio before retrying.`,
|
|
3492
|
+
destructiveHint: true,
|
|
3456
3493
|
name: "dynamoi_manage_smart_campaign_creative",
|
|
3457
|
-
openWorldHint:
|
|
3494
|
+
openWorldHint: true,
|
|
3458
3495
|
outputSchema: createOutputEnvelopeSchema(SmartCampaignCreativeOutputSchema),
|
|
3459
3496
|
readOnlyHint: false,
|
|
3460
3497
|
schema: SmartCampaignCreativeInputSchema,
|
|
@@ -3497,7 +3534,7 @@ render(window.openai?.toolOutput);
|
|
|
3497
3534
|
window.addEventListener("openai:set_globals", event => render(event.detail?.globals?.toolOutput));
|
|
3498
3535
|
</script>
|
|
3499
3536
|
`.trim();
|
|
3500
|
-
function registerSmartLinkThemePreviewResource(server) {
|
|
3537
|
+
function registerSmartLinkThemePreviewResource(server, uiDomain = "https://dynamoi.com") {
|
|
3501
3538
|
server.registerResource("smart-link-theme-preview", SMART_LINK_THEME_PREVIEW_RESOURCE_URI, {
|
|
3502
3539
|
description: "Visual preview for the four Dynamoi Smart Link page themes.",
|
|
3503
3540
|
mimeType: "text/html;profile=mcp-app",
|
|
@@ -3516,7 +3553,7 @@ function registerSmartLinkThemePreviewResource(server) {
|
|
|
3516
3553
|
"https://fonts.gstatic.com"
|
|
3517
3554
|
]
|
|
3518
3555
|
},
|
|
3519
|
-
domain:
|
|
3556
|
+
domain: uiDomain,
|
|
3520
3557
|
prefersBorder: true
|
|
3521
3558
|
}
|
|
3522
3559
|
},
|
|
@@ -3815,7 +3852,7 @@ var PHASE_4_TOOL_DEFINITIONS = [
|
|
|
3815
3852
|
},
|
|
3816
3853
|
{
|
|
3817
3854
|
description: "Use this when the user gives a Spotify artist URL and wants Dynamoi to create, import, or refresh free Smart Links for the artist catalog and return the artist hub. If the signed-in user has no Dynamoi artist yet, omit artistId so Dynamoi can create the first artist from the Spotify artist profile. This starts the background catalog import so the user does not need to open the dashboard. Smart Links are free to create and manage. High-popularity or unverifiable artist catalog links may stay unpublished in verification hold until Dynamoi can verify the client relationship. This does not create a paid ad campaign. In the final answer, lead with the artist hub URL and current public Smart Link URLs; do not expose internal IDs unless asked.",
|
|
3818
|
-
destructiveHint:
|
|
3855
|
+
destructiveHint: true,
|
|
3819
3856
|
idempotentHint: true,
|
|
3820
3857
|
name: "dynamoi_create_smart_links_from_spotify_artist",
|
|
3821
3858
|
openWorldHint: true,
|
|
@@ -3838,7 +3875,7 @@ var PHASE_4_TOOL_DEFINITIONS = [
|
|
|
3838
3875
|
description: "Use this when the user wants full details for one free Smart Link, including release, Spotify URL, public play.dynamoi.com URL, current status, theme source, and next actions. Set includeAnalytics=true for visit/click analytics and includeArtistSettings=true for artist-level theme/pixel settings. In the final answer, lead with the public URL and do not expose internal IDs unless asked.",
|
|
3839
3876
|
destructiveHint: false,
|
|
3840
3877
|
name: "dynamoi_get_smart_link",
|
|
3841
|
-
openWorldHint:
|
|
3878
|
+
openWorldHint: true,
|
|
3842
3879
|
outputSchema: AnyOutputEnvelopeSchema,
|
|
3843
3880
|
readOnlyHint: true,
|
|
3844
3881
|
schema: DynamoiGetSmartLinkInputSchema,
|
|
@@ -3957,7 +3994,7 @@ var DynamoiContactSupportInputSchema = z23.object({
|
|
|
3957
3994
|
var SUPPORT_TOOL_DEFINITIONS = [
|
|
3958
3995
|
{
|
|
3959
3996
|
description: "Use this when the user wants to report a problem with Dynamoi (a tool error, sign-in or permission problem, wrong data, a billing, campaign or distribution question) or send Dynamoi feedback. Show the user the subject and message and get their OK before sending. Dynamoi attaches the signed-in account and this agent's identity, and support replies by email to the account address. Never include passwords, tokens, API keys or card numbers. Sending changes no campaign, billing or account data.",
|
|
3960
|
-
destructiveHint:
|
|
3997
|
+
destructiveHint: true,
|
|
3961
3998
|
idempotentHint: false,
|
|
3962
3999
|
name: "dynamoi_contact_support",
|
|
3963
4000
|
openWorldHint: false,
|
|
@@ -3976,7 +4013,7 @@ function createPhaseOnboardingToolDefinitions(schemas) {
|
|
|
3976
4013
|
return [
|
|
3977
4014
|
{
|
|
3978
4015
|
description: "Use this when the user wants to grow a YouTube channel with Dynamoi campaigns or is ready to link a channel to one Dynamoi artist from chat. Set purpose=distribution_identity for the least-privilege identity connection required by a distribution application; that flow does not require advertising billing or Google Ads linking, and its result is checked with dynamoi_get_distribution_application. Use purpose=advertising (the default) for managed YouTube promotion, then poll dynamoi_get_platform_status until platforms.youtube.connected is true. The tool returns a Google OAuth URL bound to the signed-in user and artist.",
|
|
3979
|
-
destructiveHint:
|
|
4016
|
+
destructiveHint: true,
|
|
3980
4017
|
idempotentHint: true,
|
|
3981
4018
|
name: "dynamoi_start_youtube_channel_link",
|
|
3982
4019
|
openWorldHint: true,
|
|
@@ -3987,7 +4024,7 @@ function createPhaseOnboardingToolDefinitions(schemas) {
|
|
|
3987
4024
|
},
|
|
3988
4025
|
{
|
|
3989
4026
|
description: "Use this when the user is ready to connect a Facebook Page and Instagram professional account to one Dynamoi artist. Set purpose=distribution_identity for the least-privilege identity connection required by a distribution application; that flow does not require advertising billing, and its result is checked with dynamoi_get_distribution_application. Use purpose=advertising (the default) for Spotify Smart Campaigns; advertising requires active billing and is checked with dynamoi_get_platform_status until platforms.meta.status is oauth_complete, partnership_pending, or partnership_active. Advertising returns billing_required when inactive and billing_check_unavailable for a transient verification failure. This returns a signed Meta OAuth URL and may include a Page/Instagram selection step.",
|
|
3990
|
-
destructiveHint:
|
|
4027
|
+
destructiveHint: true,
|
|
3991
4028
|
idempotentHint: true,
|
|
3992
4029
|
name: "dynamoi_start_meta_connection",
|
|
3993
4030
|
openWorldHint: true,
|
|
@@ -4104,7 +4141,7 @@ var DynamoiGetGrowthAuditInputSchema = GROWTH_AUDIT_CONTRACT.mcp.definition.sche
|
|
|
4104
4141
|
var DynamoiGetPlaylistAnalyticsInputSchema = PLAYLIST_ANALYTICS_CONTRACT.mcp.definition.schema;
|
|
4105
4142
|
var DynamoiGetAudienceAnalyticsInputSchema = AUDIENCE_ANALYTICS_CONTRACT.mcp.definition.schema;
|
|
4106
4143
|
var DynamoiGetBillingInputSchema = z25.object({
|
|
4107
|
-
action: z25.enum(["summary", "
|
|
4144
|
+
action: z25.enum(["summary", "native_commerce"]).optional(),
|
|
4108
4145
|
artistId: z25.string().uuid(),
|
|
4109
4146
|
format: ToolFormatSchema2.optional(),
|
|
4110
4147
|
onboardingAttemptId: OnboardingAttemptIdSchema
|
|
@@ -4426,6 +4463,7 @@ var DynamoiUpdateCampaignInputSchema = z25.object({
|
|
|
4426
4463
|
"update_location",
|
|
4427
4464
|
"update_end_date",
|
|
4428
4465
|
"archive",
|
|
4466
|
+
"unarchive",
|
|
4429
4467
|
"update_goals"
|
|
4430
4468
|
]),
|
|
4431
4469
|
authorizeAutomaticDailyFunding: z25.literal(true).describe(`Set only after the client explicitly accepts: “${PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY}”`).optional(),
|
|
@@ -4453,6 +4491,7 @@ var DynamoiUpdateCampaignInputSchema = z25.object({
|
|
|
4453
4491
|
"update_location",
|
|
4454
4492
|
"update_end_date",
|
|
4455
4493
|
"archive",
|
|
4494
|
+
"unarchive",
|
|
4456
4495
|
"update_goals"
|
|
4457
4496
|
].includes(data.action) && !data.clientRequestId) {
|
|
4458
4497
|
ctx.addIssue({
|
|
@@ -4776,7 +4815,7 @@ var PHASE_1_TOOL_DEFINITIONS = [
|
|
|
4776
4815
|
title: "Get YouTube Channel Data"
|
|
4777
4816
|
},
|
|
4778
4817
|
{
|
|
4779
|
-
description: "Use action=native_commerce for the native commerce projection (full profile, read-only; no subscription changes or invoices). Use
|
|
4818
|
+
description: "Use action=native_commerce for the native commerce projection (full profile, read-only; no subscription changes or invoices). Use this when the user asks about billing state, credit balance, promo limits, subscription status, campaign-fund deposits, or whether billing blocks launches for one artist. This is a read-only status check; it does not create checkout links or collect payment. paymentMethod contains only the shared masked display details (brand or bank, type, last four digits and expiry); null means details are unavailable, not proof that no method exists. Each deposit in prefundPayments is pending (payment not yet confirmed), cleared (Stripe says paid and the funds are usable), failed (the payment did not complete) or held (paid, but funding is on hold for review and not usable yet). A Checkout link alone is never a deposit. To add campaign funds, use the Dynamoi dashboard at https://dynamoi.com/dashboard; for other billing setup tell the user: 'You can do this in the Dynamoi dashboard at https://dynamoi.com/dashboard.' Then call this tool again to confirm the status. Do not use this for campaign analytics or platform connection troubleshooting.",
|
|
4780
4819
|
destructiveHint: false,
|
|
4781
4820
|
name: "dynamoi_get_billing",
|
|
4782
4821
|
openWorldHint: false,
|
|
@@ -4786,7 +4825,7 @@ var PHASE_1_TOOL_DEFINITIONS = [
|
|
|
4786
4825
|
title: "Get Billing"
|
|
4787
4826
|
},
|
|
4788
4827
|
{
|
|
4789
|
-
description: "Read an artist's platform Action Center after authenticated artist access. Preserve revision, task states, steps and primary/secondary actions: open_url opens a URL; navigate is dashboard navigation. Reading does not complete or approve a task. Unavailable data is an error, not an empty task list.
|
|
4828
|
+
description: "Read an artist's platform Action Center after authenticated artist access. Preserve revision, task states, steps and primary/secondary actions: open_url opens a URL; navigate is dashboard navigation. Reading does not complete or approve a task. Unavailable data is an error, not an empty task list.",
|
|
4790
4829
|
destructiveHint: false,
|
|
4791
4830
|
name: "dynamoi_get_action_center",
|
|
4792
4831
|
openWorldHint: false,
|
|
@@ -4796,7 +4835,7 @@ var PHASE_1_TOOL_DEFINITIONS = [
|
|
|
4796
4835
|
title: "Get Action Center"
|
|
4797
4836
|
},
|
|
4798
4837
|
{
|
|
4799
|
-
description: "Read distribution earnings for the authenticated payee only, optionally restricted to their artistIds. Team or artist access never grants payee access. action=overview returns the payee's own share in USD, range totals, monthly totals and at most 50 detail rows, narrowed by trackKey, storeKey, storeFamily and countryCode (totals remain for the whole range). action=ranking returns up to 300 rows by dimension (track, artist, store, country), with their filtered totalUsd, narrowed by trackKey, storeFamily and countryCode. action=geography returns {rows} of the country map with optional prior-window comparison. action=statement returns the web export data for one statement month: use axis=statement and equal fromMonth/toMonth, with no exploration filters or cursor. No new files are created. Rankings and prior-window geography read an equal preceding window within the owner's 60-month bound. For overview pagination, pass nextCursor unchanged to continue with the same range, axis, artists and filters. fromMonth/toMonth are inclusive YYYY-MM, at most 60 months. axis=statement groups by statement month; earned groups by royalty month, while payee share always follows statement month. Empty rows mean no matching data; an error means unavailable, never zero earnings. This grants no payout or tax authority and performs no writes.
|
|
4838
|
+
description: "Read distribution earnings for the authenticated payee only, optionally restricted to their artistIds. Team or artist access never grants payee access. action=overview returns the payee's own share in USD, range totals, monthly totals and at most 50 detail rows, narrowed by trackKey, storeKey, storeFamily and countryCode (totals remain for the whole range). action=ranking returns up to 300 rows by dimension (track, artist, store, country), with their filtered totalUsd, narrowed by trackKey, storeFamily and countryCode. action=geography returns {rows} of the country map with optional prior-window comparison. action=statement returns the web export data for one statement month: use axis=statement and equal fromMonth/toMonth, with no exploration filters or cursor. No new files are created. Rankings and prior-window geography read an equal preceding window within the owner's 60-month bound. For overview pagination, pass nextCursor unchanged to continue with the same range, axis, artists and filters. fromMonth/toMonth are inclusive YYYY-MM, at most 60 months. axis=statement groups by statement month; earned groups by royalty month, while payee share always follows statement month. Nullable amounts or counts mean unavailable; an explicit 0 is measured zero. Empty rows mean no matching data; an error means unavailable, never zero earnings. This grants no payout or tax authority and performs no writes.",
|
|
4800
4839
|
destructiveHint: false,
|
|
4801
4840
|
name: "dynamoi_get_earnings",
|
|
4802
4841
|
openWorldHint: false,
|
|
@@ -4806,7 +4845,7 @@ var PHASE_1_TOOL_DEFINITIONS = [
|
|
|
4806
4845
|
title: "Get Distribution Earnings"
|
|
4807
4846
|
},
|
|
4808
4847
|
{
|
|
4809
|
-
description: "Read organization members and pending invitations after artist and organization settings authority checks. Artist collaboration alone never grants roster access. No invitation tokens or role mutations.
|
|
4848
|
+
description: "Read organization members and pending invitations after artist and organization settings authority checks. Artist collaboration alone never grants roster access. No invitation tokens or role mutations.",
|
|
4810
4849
|
destructiveHint: false,
|
|
4811
4850
|
name: "dynamoi_get_team",
|
|
4812
4851
|
openWorldHint: false,
|
|
@@ -4816,7 +4855,7 @@ var PHASE_1_TOOL_DEFINITIONS = [
|
|
|
4816
4855
|
title: "Get Team"
|
|
4817
4856
|
},
|
|
4818
4857
|
{
|
|
4819
|
-
description: "Change an organization member's role, remove a member or revoke a pending organization invitation using the same authority and transactional protections as web.
|
|
4858
|
+
description: "Change an organization member's role, remove a member or revoke a pending organization invitation using the same authority and transactional protections as web. targetId is the organization membership or pending invitation row ID from dynamoi_get_team. Owner and last-admin protections apply; removal can revoke access and pending invitations.",
|
|
4820
4859
|
destructiveHint: true,
|
|
4821
4860
|
name: "dynamoi_manage_team",
|
|
4822
4861
|
openWorldHint: false,
|
|
@@ -4826,7 +4865,7 @@ var PHASE_1_TOOL_DEFINITIONS = [
|
|
|
4826
4865
|
title: "Manage Organization Members"
|
|
4827
4866
|
},
|
|
4828
4867
|
{
|
|
4829
|
-
description: "Read sanitized artist or organization settings audit events, or your own 12 recent account activity entries with scope=account (artist access required; no cursor). Organization scope requires organization settings authority, beyond artist access. Pass nextCursor unchanged within the same scope; cursors are bounded and scope-checked.
|
|
4868
|
+
description: "Read sanitized artist or organization settings audit events, or your own 12 recent account activity entries with scope=account (artist access required; no cursor). Organization scope requires organization settings authority, beyond artist access. Pass nextCursor unchanged within the same scope; cursors are bounded and scope-checked.",
|
|
4830
4869
|
destructiveHint: false,
|
|
4831
4870
|
name: "dynamoi_get_audit_log",
|
|
4832
4871
|
openWorldHint: false,
|
|
@@ -4836,8 +4875,8 @@ var PHASE_1_TOOL_DEFINITIONS = [
|
|
|
4836
4875
|
title: "Get AuditLog"
|
|
4837
4876
|
},
|
|
4838
4877
|
{
|
|
4839
|
-
description: "Claim or change your own referral code using the web claim rules. Claiming accepts the current referral program terms.
|
|
4840
|
-
destructiveHint:
|
|
4878
|
+
description: "Claim or change your own referral code using the web claim rules. Claiming accepts the current referral program terms.",
|
|
4879
|
+
destructiveHint: true,
|
|
4841
4880
|
name: "dynamoi_claim_referral_code",
|
|
4842
4881
|
openWorldHint: false,
|
|
4843
4882
|
outputSchema: AnyOutputEnvelopeSchema,
|
|
@@ -4846,7 +4885,7 @@ var PHASE_1_TOOL_DEFINITIONS = [
|
|
|
4846
4885
|
title: "Claim Referral Code"
|
|
4847
4886
|
},
|
|
4848
4887
|
{
|
|
4849
|
-
description: "Read the authenticated caller's referral dashboard after artist access, without cookie attribution or commission refresh. USD cents and observed states: PENDING is not yet available; AVAILABLE is eligible, not payout approval; WITHDRAWAL_PENDING is awaiting payout; PAID is paid. Never describe pending or available amounts as approved or paid.
|
|
4888
|
+
description: "Read the authenticated caller's referral dashboard after artist access, without cookie attribution or commission refresh. USD cents and observed states: PENDING is not yet available; AVAILABLE is eligible, not payout approval; WITHDRAWAL_PENDING is awaiting payout; PAID is paid. Never describe pending or available amounts as approved or paid.",
|
|
4850
4889
|
destructiveHint: false,
|
|
4851
4890
|
name: "dynamoi_get_referrals",
|
|
4852
4891
|
openWorldHint: false,
|
|
@@ -4859,7 +4898,7 @@ var PHASE_1_TOOL_DEFINITIONS = [
|
|
|
4859
4898
|
description: "Read the existing campaign's resume funding breakdown before requesting funding consent: campaign budget, funded-window coverage, usable credits, immediate charge, payment method, refusal and current consent. Amounts carry their commercial currency and minor-unit exponent. This read never reserves funds, authorizes collection or resumes delivery. A refusal is not a zero-charge approval. Use dynamoi_update_campaign to resume only after explicit user consent when required.",
|
|
4860
4899
|
destructiveHint: false,
|
|
4861
4900
|
name: "dynamoi_get_resume_funding",
|
|
4862
|
-
openWorldHint:
|
|
4901
|
+
openWorldHint: true,
|
|
4863
4902
|
outputSchema: GetResumeFundingOutputEnvelopeSchema,
|
|
4864
4903
|
readOnlyHint: true,
|
|
4865
4904
|
schema: DynamoiGetResumeFundingInputSchema,
|
|
@@ -4886,10 +4925,10 @@ var PHASE_1_TOOL_DEFINITIONS = [
|
|
|
4886
4925
|
title: "List Available Countries"
|
|
4887
4926
|
},
|
|
4888
4927
|
{
|
|
4889
|
-
description: `Use this when a musician wants to promote a new single or release with ads ("promote my new single", "run ads for my song"): it checks whether a Smart Campaign or YouTube campaign is ready before
|
|
4928
|
+
description: `Use this when a musician wants to promote a new single or release with ads ("promote my new single", "run ads for my song"): it checks whether a Smart Campaign or YouTube campaign is ready before launching the campaign. This validates readiness and targeting without creating a campaign. Complete budget inputs also return the shared, nonbinding campaign funding preview with known or unavailable credit coverage, card upper bounds and expiry timing. For TOTAL budgets the preview describes total-daily funding for web and native creation; MCP TOTAL launch uses existing credits only, cannot authorize card funding, and does not accept the preview's total-daily consent. Do not use this to create or mutate campaigns.`,
|
|
4890
4929
|
destructiveHint: false,
|
|
4891
4930
|
name: "dynamoi_get_campaign_readiness",
|
|
4892
|
-
openWorldHint:
|
|
4931
|
+
openWorldHint: true,
|
|
4893
4932
|
outputSchema: GetCampaignReadinessOutputEnvelopeSchema,
|
|
4894
4933
|
readOnlyHint: true,
|
|
4895
4934
|
schema: DynamoiGetCampaignReadinessInputSchema,
|
|
@@ -4902,8 +4941,8 @@ var PHASE_ONBOARDING_TOOL_DEFINITIONS = createPhaseOnboardingToolDefinitions({
|
|
|
4902
4941
|
});
|
|
4903
4942
|
var PHASE_2_TOOL_DEFINITIONS = [
|
|
4904
4943
|
{
|
|
4905
|
-
description: "Read ad copy for a Smart Campaign creation draft, or save copy by providing save with the revision read.
|
|
4906
|
-
destructiveHint:
|
|
4944
|
+
description: "Read ad copy for a Smart Campaign creation draft, or save copy by providing save with the revision read. Editor access required. Refuses submitted campaigns. Never launches, submits or publishes.",
|
|
4945
|
+
destructiveHint: true,
|
|
4907
4946
|
name: "dynamoi_smart_campaign_ad_copy",
|
|
4908
4947
|
openWorldHint: false,
|
|
4909
4948
|
outputSchema: AnyOutputEnvelopeSchema,
|
|
@@ -4923,17 +4962,17 @@ var PHASE_2_TOOL_DEFINITIONS = [
|
|
|
4923
4962
|
title: "Add Campaign Funds"
|
|
4924
4963
|
},
|
|
4925
4964
|
{
|
|
4926
|
-
description: "
|
|
4965
|
+
description: "Editor access required. Returns the current draft summary in data and the native operation response in stepResult. Read native setup with setup, browse videos with videos and optional pageToken, screen with screen and videoId. Save draft steps with save_content/contentSave={campaignId,videoId,playlistId,strategy}, save_location/locationSave={campaignId,targeting:{mode:GLOBAL}|{mode:COUNTRIES,countries:[US]}}, save_ad_copy/adCopySave={campaignId,adCopy,mode:assisted|preserve}, or save_budget/budgetSave={campaignId,budgetAmountCents,budgetType,endDate,currency?,budgetAmountMinor?}. Amounts are exact minor units in the artist currency; use the setup budget policy. Reuse the campaignId when retrying. Saves use native last-write-wins semantics; re-read setup after ambiguous outcomes. Draft saves never launch, change live campaigns or call Google Ads; launch is a separate step. Inspect a recoverable draft with inspect. Use discard only on explicit user request with campaignId, expectedUpdatedAt from inspect and userIntentSummary. Discard cannot be undone.",
|
|
4927
4966
|
destructiveHint: true,
|
|
4928
4967
|
name: "dynamoi_manage_youtube_draft",
|
|
4929
|
-
openWorldHint:
|
|
4968
|
+
openWorldHint: true,
|
|
4930
4969
|
outputSchema: ManageYoutubeDraftOutputEnvelopeSchema,
|
|
4931
4970
|
readOnlyHint: false,
|
|
4932
4971
|
schema: DynamoiManageYoutubeDraftInputSchema,
|
|
4933
4972
|
title: "Manage YouTube Draft"
|
|
4934
4973
|
},
|
|
4935
4974
|
{
|
|
4936
|
-
description: `Use only when the user explicitly requests a campaign change. Resume isn't available for fixed-flight YouTube campaigns. Duplicate the campaign to relaunch it. Actions: pause, resume, update_budget, update_end_date (DAILY or TOTAL budget; TOTAL end-date extensions may require the same funding consent fields as update_budget or resume), update_location (GLOBAL or catalog-valid countries), change_strategy (managed YouTube Demand Gen), update_goals (YouTube optimization toggles), archive (never deletes). Inspect the campaign first and supply expectedCurrentStatus where possible. For resume, update_budget, or a TOTAL update_end_date that needs automatic daily card funding, first show the user the exact consent copy for the campaign's budget type, then pass the request's clientRequestId and, for DAILY, authorizeAutomaticDailyFunding=true with acceptedConsentVersion and acceptedConsentCopyHash: "${PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY}" (version "${PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION}", hash "${PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH}"); for TOTAL, acceptedTotalConsentVersion and acceptedTotalConsentCopyHash: "${TOTAL_BUDGET_FUNDING_CONSENT_COPY}" (version "${TOTAL_BUDGET_FUNDING_CONSENT_VERSION}", hash "${TOTAL_BUDGET_FUNDING_CONSENT_COPY_HASH}"). A budget type refuses the other's consent. Without them, a resume that needs card funding is refused with: "Review and accept the daily funding authorization to resume this campaign." When retrying the same action, reuse the same clientRequestId.`,
|
|
4975
|
+
description: `Use only when the user explicitly requests a campaign change. Resume isn't available for fixed-flight YouTube campaigns. Duplicate the campaign to relaunch it. Actions: pause, resume, update_budget, update_end_date (DAILY or TOTAL budget; TOTAL end-date extensions may require the same funding consent fields as update_budget or resume), update_location (GLOBAL or catalog-valid countries), change_strategy (managed YouTube Demand Gen), update_goals (YouTube optimization toggles), archive (never deletes), unarchive (restores PAUSED without funding or activating providers). Inspect the campaign first and supply expectedCurrentStatus where possible. For resume, update_budget, or a TOTAL update_end_date that needs automatic daily card funding, first show the user the exact consent copy for the campaign's budget type, then pass the request's clientRequestId and, for DAILY, authorizeAutomaticDailyFunding=true with acceptedConsentVersion and acceptedConsentCopyHash: "${PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY}" (version "${PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION}", hash "${PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH}"); for TOTAL, acceptedTotalConsentVersion and acceptedTotalConsentCopyHash: "${TOTAL_BUDGET_FUNDING_CONSENT_COPY}" (version "${TOTAL_BUDGET_FUNDING_CONSENT_VERSION}", hash "${TOTAL_BUDGET_FUNDING_CONSENT_COPY_HASH}"). A budget type refuses the other's consent. Without them, a resume that needs card funding is refused with: "Review and accept the daily funding authorization to resume this campaign." When retrying the same action, reuse the same clientRequestId.`,
|
|
4937
4976
|
destructiveHint: true,
|
|
4938
4977
|
idempotentHint: true,
|
|
4939
4978
|
name: "dynamoi_update_campaign",
|
|
@@ -5220,7 +5259,7 @@ async function openWorkspace(adapter) {
|
|
|
5220
5259
|
function workspaceHtml() {
|
|
5221
5260
|
return `<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Dynamoi workspace</title><style>${WORKSPACE_STYLE}</style></head><body><main id="workspace"><header><h1>Dynamoi workspace</h1><p>Artists, campaigns and Smart Links</p></header><p role="status" id="connection">Connecting to your host…</p><section id="content" aria-label="Artist workspace"></section><noscript>This workspace needs JavaScript. Use Dynamoi’s individual read tools to inspect your account.</noscript></main><script>${WORKSPACE_SCRIPT.replaceAll("</script", "<\\/script")}</script></body></html>`;
|
|
5222
5261
|
}
|
|
5223
|
-
function registerWorkspaceResource(server) {
|
|
5262
|
+
function registerWorkspaceResource(server, uiDomain = "https://dynamoi.com") {
|
|
5224
5263
|
server.registerResource("artist-workspace", WORKSPACE_RESOURCE_URI, {
|
|
5225
5264
|
description: "Read-only artist, campaign and Smart Link workspace.",
|
|
5226
5265
|
mimeType: "text/html;profile=mcp-app",
|
|
@@ -5231,7 +5270,7 @@ function registerWorkspaceResource(server) {
|
|
|
5231
5270
|
_meta: {
|
|
5232
5271
|
ui: {
|
|
5233
5272
|
csp: { connectDomains: [], resourceDomains: [] },
|
|
5234
|
-
domain:
|
|
5273
|
+
domain: uiDomain,
|
|
5235
5274
|
prefersBorder: true
|
|
5236
5275
|
}
|
|
5237
5276
|
},
|
|
@@ -5301,21 +5340,6 @@ var DIRECTORY_DESCRIPTIVE_DATA_SCHEMAS = {
|
|
|
5301
5340
|
summary: z27.string().optional(),
|
|
5302
5341
|
totalCount: z27.number().optional()
|
|
5303
5342
|
}).passthrough(),
|
|
5304
|
-
dynamoi_update_smart_link: DescriptiveEntitySchema.extend({
|
|
5305
|
-
artistId: z27.string().optional(),
|
|
5306
|
-
artistName: z27.string().optional(),
|
|
5307
|
-
defaultTheme: z27.string().optional(),
|
|
5308
|
-
renderQueuedCount: z27.number().optional(),
|
|
5309
|
-
renderWarning: z27.string().nullable().optional()
|
|
5310
|
-
}).passthrough(),
|
|
5311
|
-
dynamoi_update_smart_link_artist_hub_settings: DescriptiveEntitySchema.extend({
|
|
5312
|
-
artistHub: z27.object({}).passthrough().optional(),
|
|
5313
|
-
artistId: z27.string().optional(),
|
|
5314
|
-
artistName: z27.string().optional(),
|
|
5315
|
-
defaultTheme: z27.string().optional(),
|
|
5316
|
-
renderQueuedCount: z27.number().optional(),
|
|
5317
|
-
renderWarning: z27.string().nullable().optional()
|
|
5318
|
-
}).passthrough(),
|
|
5319
5343
|
dynamoi_update_smart_link_artist_settings: DescriptiveEntitySchema.extend({
|
|
5320
5344
|
artistId: z27.string().optional(),
|
|
5321
5345
|
artistName: z27.string().optional(),
|
|
@@ -5330,16 +5354,6 @@ var DIRECTORY_DESCRIPTIVE_DATA_SCHEMAS = {
|
|
|
5330
5354
|
renderQueuedCount: z27.number().optional(),
|
|
5331
5355
|
renderWarning: z27.string().nullable().optional()
|
|
5332
5356
|
}).passthrough(),
|
|
5333
|
-
dynamoi_update_smart_link_release_settings: DescriptiveEntitySchema.extend({
|
|
5334
|
-
artistId: z27.string().optional(),
|
|
5335
|
-
customDescription: z27.string().nullable().optional(),
|
|
5336
|
-
nextActions: z27.array(z27.string()).optional(),
|
|
5337
|
-
publishState: z27.string().optional(),
|
|
5338
|
-
releaseSettings: z27.object({}).passthrough().optional(),
|
|
5339
|
-
releaseTitle: z27.string().optional(),
|
|
5340
|
-
renderWarning: z27.string().nullable().optional(),
|
|
5341
|
-
theme: z27.string().optional()
|
|
5342
|
-
}).passthrough(),
|
|
5343
5357
|
fetch: DescriptiveEntitySchema,
|
|
5344
5358
|
search: z27.object({ results: z27.array(DescriptiveEntitySchema).optional() }).passthrough()
|
|
5345
5359
|
};
|
|
@@ -5389,49 +5403,20 @@ var DYNAMOI_TOOL_DEFINITIONS = [
|
|
|
5389
5403
|
var DYNAMOI_TOOL_NAMES = DYNAMOI_TOOL_DEFINITIONS.map((definition) => definition.name);
|
|
5390
5404
|
var MUTATING_TOOL_NAMES = new Set(DYNAMOI_TOOL_DEFINITIONS.filter((definition) => !definition.readOnlyHint).map((definition) => definition.name));
|
|
5391
5405
|
var DIRECTORY_EXCLUDED_TOOL_NAMES = new Set([
|
|
5392
|
-
"dynamoi_onboard_artist",
|
|
5393
|
-
"dynamoi_smart_link_controls",
|
|
5394
|
-
"dynamoi_claim_referral_code",
|
|
5395
|
-
"dynamoi_smart_campaign_ad_copy",
|
|
5396
|
-
"dynamoi_delete_account",
|
|
5397
|
-
"dynamoi_update_account_profile",
|
|
5398
|
-
"dynamoi_get_artist_billing_country",
|
|
5399
|
-
"dynamoi_set_artist_billing_country",
|
|
5400
|
-
"dynamoi_contact_support",
|
|
5401
5406
|
"dynamoi_add_campaign_funds",
|
|
5407
|
+
"dynamoi_launch_campaign",
|
|
5408
|
+
"dynamoi_update_campaign",
|
|
5402
5409
|
"dynamoi_shop_create_checkout",
|
|
5403
5410
|
"dynamoi_shop_get_quote",
|
|
5404
5411
|
"dynamoi_shop_list_orders",
|
|
5405
|
-
"
|
|
5406
|
-
"dynamoi_get_action_center",
|
|
5407
|
-
"dynamoi_get_team",
|
|
5408
|
-
"dynamoi_manage_team",
|
|
5409
|
-
"dynamoi_get_audit_log",
|
|
5410
|
-
"dynamoi_get_referrals",
|
|
5411
|
-
"dynamoi_get_distribution_status",
|
|
5412
|
-
"dynamoi_prepare_distribution_release",
|
|
5413
|
-
"dynamoi_get_earnings",
|
|
5412
|
+
"dynamoi_set_artist_billing_country",
|
|
5414
5413
|
"dynamoi_get_resume_funding",
|
|
5415
|
-
"
|
|
5416
|
-
"dynamoi_manage_youtube_draft",
|
|
5417
|
-
"dynamoi_manage_smart_campaign_creative",
|
|
5418
|
-
"dynamoi_launch_campaign",
|
|
5419
|
-
"dynamoi_list_available_countries",
|
|
5420
|
-
"dynamoi_list_media_assets",
|
|
5421
|
-
"dynamoi_start_meta_connection",
|
|
5422
|
-
"dynamoi_start_youtube_channel_link",
|
|
5423
|
-
"dynamoi_update_campaign",
|
|
5424
|
-
"dynamoi_update_smart_link",
|
|
5425
|
-
"dynamoi_update_smart_link_artist_hub_settings",
|
|
5426
|
-
"dynamoi_update_smart_link_release_settings"
|
|
5414
|
+
"dynamoi_delete_account"
|
|
5427
5415
|
]);
|
|
5428
5416
|
var DIRECTORY_ONLY_TOOL_NAMES = new Set([
|
|
5429
5417
|
"dynamoi_update_smart_link_artist_settings",
|
|
5430
5418
|
"dynamoi_update_smart_link_description"
|
|
5431
5419
|
]);
|
|
5432
|
-
var DIRECTORY_COMPATIBILITY_TOOL_NAMES = new Set([
|
|
5433
|
-
"dynamoi_update_smart_link"
|
|
5434
|
-
]);
|
|
5435
5420
|
function getDynamoiToolDefinitions(options) {
|
|
5436
5421
|
const definitions = [...DYNAMOI_TOOL_DEFINITIONS];
|
|
5437
5422
|
if (options?.toolProfile === "full") {
|
|
@@ -5442,11 +5427,8 @@ function getDynamoiToolDefinitions(options) {
|
|
|
5442
5427
|
}
|
|
5443
5428
|
return definitions.filter((definition) => definition.profiles ? definition.profiles.directory === "advertised" : !DIRECTORY_EXCLUDED_TOOL_NAMES.has(definition.name));
|
|
5444
5429
|
}
|
|
5445
|
-
function getDynamoiToolCompatibilityDefinitions(
|
|
5446
|
-
|
|
5447
|
-
return [];
|
|
5448
|
-
}
|
|
5449
|
-
return DYNAMOI_TOOL_DEFINITIONS.filter((definition) => DIRECTORY_COMPATIBILITY_TOOL_NAMES.has(definition.name));
|
|
5430
|
+
function getDynamoiToolCompatibilityDefinitions(_options) {
|
|
5431
|
+
return [];
|
|
5450
5432
|
}
|
|
5451
5433
|
var RECOVERY_METADATA_FIELDS = [
|
|
5452
5434
|
"draftId",
|
|
@@ -5459,6 +5441,27 @@ var RECOVERY_METADATA_FIELDS = [
|
|
|
5459
5441
|
"retryable",
|
|
5460
5442
|
"retryAfterSeconds"
|
|
5461
5443
|
];
|
|
5444
|
+
var SMART_LINK_STATE_CONFLICT_TOOLS = new Set([
|
|
5445
|
+
"dynamoi_update_smart_link",
|
|
5446
|
+
"dynamoi_update_smart_link_description",
|
|
5447
|
+
"dynamoi_update_smart_link_artist_settings",
|
|
5448
|
+
"dynamoi_update_smart_link_artist_hub_settings",
|
|
5449
|
+
"dynamoi_update_smart_link_release_settings"
|
|
5450
|
+
]);
|
|
5451
|
+
var SMART_LINK_STATE_CONFLICT_FIELDS = new Map([
|
|
5452
|
+
[
|
|
5453
|
+
"Smart Link changed since it was last read. Read it again before updating.",
|
|
5454
|
+
"expectedUpdatedAt"
|
|
5455
|
+
],
|
|
5456
|
+
[
|
|
5457
|
+
"Smart Link changed since it was last read. Reload before updating.",
|
|
5458
|
+
"expectedVersion"
|
|
5459
|
+
],
|
|
5460
|
+
[
|
|
5461
|
+
"Theme applied, other changes refused because Smart Link changed. Reload before updating.",
|
|
5462
|
+
"expectedVersion"
|
|
5463
|
+
]
|
|
5464
|
+
]);
|
|
5462
5465
|
var SPOTIFY_SOURCE_ERROR_MESSAGES = new Set([
|
|
5463
5466
|
"Paste a valid Spotify artist, album, or track URL.",
|
|
5464
5467
|
"Paste a Spotify artist, album, or track URL.",
|
|
@@ -5562,10 +5565,11 @@ function mapKnownErrorRecovery(toolName, kind, message) {
|
|
|
5562
5565
|
retryable: false
|
|
5563
5566
|
};
|
|
5564
5567
|
}
|
|
5565
|
-
|
|
5568
|
+
const conflictField = SMART_LINK_STATE_CONFLICT_FIELDS.get(message);
|
|
5569
|
+
if (SMART_LINK_STATE_CONFLICT_TOOLS.has(toolName) && conflictField) {
|
|
5566
5570
|
return {
|
|
5567
5571
|
code: "STATE_CONFLICT",
|
|
5568
|
-
field:
|
|
5572
|
+
field: conflictField,
|
|
5569
5573
|
nextAction: {
|
|
5570
5574
|
kind: "read_status",
|
|
5571
5575
|
reason: "Read the existing Smart Link again, then resubmit only with its current state."
|
|
@@ -5728,7 +5732,7 @@ function snapshotForObserver(value) {
|
|
|
5728
5732
|
};
|
|
5729
5733
|
}
|
|
5730
5734
|
}
|
|
5731
|
-
function asTextResult(envelope) {
|
|
5735
|
+
function asTextResult(envelope, toolName) {
|
|
5732
5736
|
const isToolError = Boolean(envelope) && typeof envelope === "object" && envelope.status === "error";
|
|
5733
5737
|
const plainText = (() => {
|
|
5734
5738
|
if (!envelope || typeof envelope !== "object") {
|
|
@@ -5741,6 +5745,12 @@ function asTextResult(envelope) {
|
|
|
5741
5745
|
}
|
|
5742
5746
|
const data = envelope.data;
|
|
5743
5747
|
if (data && typeof data === "object") {
|
|
5748
|
+
if (toolName === "dynamoi_claim_referral_code" && "link" in data && typeof data.link === "string") {
|
|
5749
|
+
const referralPage = new URL("/dashboard/user/refer", data.link).href;
|
|
5750
|
+
return `${JSON.stringify(envelope)}
|
|
5751
|
+
|
|
5752
|
+
To join the referral program, you need to accept the affiliate terms on your referral page: ${referralPage}`;
|
|
5753
|
+
}
|
|
5744
5754
|
const summary = data.summary;
|
|
5745
5755
|
if (typeof summary === "string" && summary.trim().length > 0) {
|
|
5746
5756
|
return summary;
|
|
@@ -5774,7 +5784,7 @@ function asValidatedTextResult(options) {
|
|
|
5774
5784
|
status: "error"
|
|
5775
5785
|
});
|
|
5776
5786
|
}
|
|
5777
|
-
return asTextResult(envelope);
|
|
5787
|
+
return asTextResult(envelope, options.toolName);
|
|
5778
5788
|
}
|
|
5779
5789
|
var PRIVATE_LIST_CACHE_HINT = {
|
|
5780
5790
|
cacheScope: "private",
|
|
@@ -5928,8 +5938,8 @@ function createDynamoiMcpServer(options) {
|
|
|
5928
5938
|
}
|
|
5929
5939
|
]
|
|
5930
5940
|
}));
|
|
5931
|
-
registerSmartLinkThemePreviewResource(server);
|
|
5932
|
-
registerWorkspaceResource(server);
|
|
5941
|
+
registerSmartLinkThemePreviewResource(server, options.uiDomain);
|
|
5942
|
+
registerWorkspaceResource(server, options.uiDomain);
|
|
5933
5943
|
if (toolProfile === "full") {
|
|
5934
5944
|
registerDynamoiPrompts(server);
|
|
5935
5945
|
registerDynamoiResources(server, options.adapter);
|
|
@@ -6163,7 +6173,7 @@ export {
|
|
|
6163
6173
|
DYNAMOI_MCP_TOOL_SCOPES,
|
|
6164
6174
|
DYNAMOI_MCP_VERSION,
|
|
6165
6175
|
DYNAMOI_SHOP_FULL_SCOPE,
|
|
6166
|
-
DYNAMOI_SHOP_MAX_TARGET_COUNTRY_CODES,
|
|
6176
|
+
SHOP_MAX_TARGET_COUNTRY_CODES as DYNAMOI_SHOP_MAX_TARGET_COUNTRY_CODES,
|
|
6167
6177
|
DYNAMOI_SUPPORT_CATEGORIES,
|
|
6168
6178
|
DateRangeSchema2 as DateRangeSchema,
|
|
6169
6179
|
DeleteAccountSchema,
|