@dynamoi/mcp 0.5.3 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/index.d.ts +393 -6
- package/dist/index.js +261 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
package/dist/index.js
CHANGED
|
@@ -341,6 +341,49 @@ function registerDynamoiResources(server, adapter) {
|
|
|
341
341
|
]
|
|
342
342
|
})
|
|
343
343
|
);
|
|
344
|
+
const countryTargetingResource = async (uri) => ({
|
|
345
|
+
contents: [
|
|
346
|
+
{
|
|
347
|
+
mimeType: "application/json",
|
|
348
|
+
text: JSON.stringify({
|
|
349
|
+
agentGuidance: "Always choose a campaign type before suggesting target countries. Smart Campaign and YouTube country catalogs are different.",
|
|
350
|
+
smartCampaigns: {
|
|
351
|
+
meaning: "Spotify-focused Smart Campaign markets supported by Dynamoi's Meta campaign workflow.",
|
|
352
|
+
source: "SMART_CAMPAIGN_COUNTRIES",
|
|
353
|
+
tool: "dynamoi_list_available_countries",
|
|
354
|
+
toolInput: { campaignType: "SMART_CAMPAIGN" }
|
|
355
|
+
},
|
|
356
|
+
youtubeCampaigns: {
|
|
357
|
+
meaning: "Google Ads geo targets for YouTube campaign deployment and localization.",
|
|
358
|
+
source: "GOOGLE_ADS_COUNTRIES",
|
|
359
|
+
tool: "dynamoi_list_available_countries",
|
|
360
|
+
toolInput: { campaignType: "YOUTUBE" }
|
|
361
|
+
}
|
|
362
|
+
}),
|
|
363
|
+
uri: uri.href
|
|
364
|
+
}
|
|
365
|
+
]
|
|
366
|
+
});
|
|
367
|
+
server.registerResource(
|
|
368
|
+
"platform-country-targeting",
|
|
369
|
+
"dynamoi://platform/country-targeting",
|
|
370
|
+
{
|
|
371
|
+
description: "Explains Smart Campaign vs YouTube country-targeting catalogs.",
|
|
372
|
+
mimeType: "application/json",
|
|
373
|
+
title: "Country Targeting"
|
|
374
|
+
},
|
|
375
|
+
countryTargetingResource
|
|
376
|
+
);
|
|
377
|
+
server.registerResource(
|
|
378
|
+
"platform-supported-countries",
|
|
379
|
+
"dynamoi://platform/supported-countries",
|
|
380
|
+
{
|
|
381
|
+
description: "Legacy alias for country-targeting guidance. Use dynamoi://platform/country-targeting for the canonical resource.",
|
|
382
|
+
mimeType: "application/json",
|
|
383
|
+
title: "Supported Countries"
|
|
384
|
+
},
|
|
385
|
+
countryTargetingResource
|
|
386
|
+
);
|
|
344
387
|
server.registerResource(
|
|
345
388
|
"smart-links-free-plan",
|
|
346
389
|
"dynamoi://smart-links/free-plan",
|
|
@@ -853,6 +896,84 @@ var SmartLinkAnalyticsSummaryOutputSchema = z3.object({
|
|
|
853
896
|
summary: z3.string(),
|
|
854
897
|
warnings: z3.array(z3.string()).optional()
|
|
855
898
|
}).strict();
|
|
899
|
+
var AvailableCountryOutputSchema = z3.object({
|
|
900
|
+
code: z3.string(),
|
|
901
|
+
dominantLanguage: z3.string().optional(),
|
|
902
|
+
googleAdsId: z3.number(),
|
|
903
|
+
name: z3.string()
|
|
904
|
+
}).strict();
|
|
905
|
+
var ListAvailableCountriesDataOutputSchema = z3.object({
|
|
906
|
+
campaignType: z3.enum(["SMART_CAMPAIGN", "YOUTUBE"]),
|
|
907
|
+
countries: z3.array(AvailableCountryOutputSchema),
|
|
908
|
+
nextCursor: z3.string().optional(),
|
|
909
|
+
notes: z3.array(z3.string()),
|
|
910
|
+
source: z3.enum(["SMART_CAMPAIGN_COUNTRIES", "GOOGLE_ADS_COUNTRIES"]),
|
|
911
|
+
totalCount: z3.number()
|
|
912
|
+
}).strict();
|
|
913
|
+
var SummaryCountOutputSchema = z3.object({
|
|
914
|
+
nextCursor: z3.string().optional(),
|
|
915
|
+
summary: z3.string(),
|
|
916
|
+
totalCount: z3.number()
|
|
917
|
+
}).strict();
|
|
918
|
+
var ProductReadinessOutputSchema = z3.object({
|
|
919
|
+
blockers: z3.array(z3.string()),
|
|
920
|
+
isReady: z3.boolean(),
|
|
921
|
+
missingRequirements: z3.array(z3.string()),
|
|
922
|
+
nextAction: z3.string().optional(),
|
|
923
|
+
warnings: z3.array(z3.string())
|
|
924
|
+
}).strict();
|
|
925
|
+
var GetOnboardingStatusDataOutputSchema = z3.object({
|
|
926
|
+
artistId: z3.string(),
|
|
927
|
+
artistName: z3.string(),
|
|
928
|
+
overallNextAction: z3.string().optional(),
|
|
929
|
+
smartCampaign: ProductReadinessOutputSchema,
|
|
930
|
+
youtube: ProductReadinessOutputSchema
|
|
931
|
+
}).strict();
|
|
932
|
+
var SummaryWarningsActionsOutputSchema = z3.object({
|
|
933
|
+
actionRequired: z3.array(z3.string()).optional(),
|
|
934
|
+
summary: z3.string(),
|
|
935
|
+
warnings: z3.array(z3.string()).optional()
|
|
936
|
+
}).strict();
|
|
937
|
+
var NormalizedTargetingOutputSchema = z3.union([
|
|
938
|
+
z3.object({ mode: z3.literal("GLOBAL") }).strict(),
|
|
939
|
+
z3.object({
|
|
940
|
+
countries: z3.array(
|
|
941
|
+
z3.object({ code: z3.string(), name: z3.string() }).strict()
|
|
942
|
+
),
|
|
943
|
+
mode: z3.literal("COUNTRIES")
|
|
944
|
+
}).strict()
|
|
945
|
+
]);
|
|
946
|
+
var GetCampaignReadinessDataOutputSchema = z3.object({
|
|
947
|
+
artistId: z3.string(),
|
|
948
|
+
artistName: z3.string(),
|
|
949
|
+
blockingIssues: z3.array(z3.string()),
|
|
950
|
+
campaignType: z3.enum(["SMART_CAMPAIGN", "YOUTUBE"]),
|
|
951
|
+
isReady: z3.boolean(),
|
|
952
|
+
missingInputs: z3.array(z3.string()),
|
|
953
|
+
normalizedTargeting: NormalizedTargetingOutputSchema,
|
|
954
|
+
recommendedNextAction: z3.string(),
|
|
955
|
+
warnings: z3.array(z3.string())
|
|
956
|
+
}).strict();
|
|
957
|
+
var GetCampaignDeploymentStatusDataOutputSchema = z3.object({
|
|
958
|
+
artistId: z3.string(),
|
|
959
|
+
artistName: z3.string(),
|
|
960
|
+
blockers: z3.array(z3.string()),
|
|
961
|
+
campaignId: z3.string(),
|
|
962
|
+
campaignType: z3.enum(["SMART_CAMPAIGN", "YOUTUBE"]),
|
|
963
|
+
contentTitle: z3.string(),
|
|
964
|
+
deliveryState: z3.enum(["LIVE", "PENDING", "BLOCKED", "PAUSED", "ENDED"]),
|
|
965
|
+
nextAction: z3.string().optional(),
|
|
966
|
+
platforms: z3.array(
|
|
967
|
+
z3.object({
|
|
968
|
+
errorMessage: z3.string().optional(),
|
|
969
|
+
linkedProviderId: z3.string().optional(),
|
|
970
|
+
platform: z3.enum(["META", "GOOGLE"]),
|
|
971
|
+
status: z3.string()
|
|
972
|
+
}).strict()
|
|
973
|
+
),
|
|
974
|
+
status: z3.string(),
|
|
975
|
+
warnings: z3.array(z3.string())
|
|
976
|
+
}).strict();
|
|
856
977
|
var CreateSmartLinkFromSpotifyDataOutputSchema = SmartLinkDetailsOutputSchema.extend({
|
|
857
978
|
outcome: z3.enum(["created", "existing"]),
|
|
858
979
|
workflowRunId: z3.string().nullable(),
|
|
@@ -934,6 +1055,46 @@ var LaunchCampaignOutputEnvelopeSchema = z3.union([
|
|
|
934
1055
|
}),
|
|
935
1056
|
ErrorEnvelopeOutputSchema
|
|
936
1057
|
]);
|
|
1058
|
+
var ListAvailableCountriesOutputEnvelopeSchema = z3.union([
|
|
1059
|
+
z3.object({
|
|
1060
|
+
data: z3.union([
|
|
1061
|
+
ListAvailableCountriesDataOutputSchema,
|
|
1062
|
+
SummaryCountOutputSchema
|
|
1063
|
+
]),
|
|
1064
|
+
status: z3.literal("success")
|
|
1065
|
+
}),
|
|
1066
|
+
ErrorEnvelopeOutputSchema
|
|
1067
|
+
]);
|
|
1068
|
+
var GetOnboardingStatusOutputEnvelopeSchema = z3.union([
|
|
1069
|
+
z3.object({
|
|
1070
|
+
data: z3.union([
|
|
1071
|
+
GetOnboardingStatusDataOutputSchema,
|
|
1072
|
+
SummaryWarningsActionsOutputSchema
|
|
1073
|
+
]),
|
|
1074
|
+
status: z3.literal("success")
|
|
1075
|
+
}),
|
|
1076
|
+
ErrorEnvelopeOutputSchema
|
|
1077
|
+
]);
|
|
1078
|
+
var GetCampaignReadinessOutputEnvelopeSchema = z3.union([
|
|
1079
|
+
z3.object({
|
|
1080
|
+
data: z3.union([
|
|
1081
|
+
GetCampaignReadinessDataOutputSchema,
|
|
1082
|
+
SummaryWarningsActionsOutputSchema
|
|
1083
|
+
]),
|
|
1084
|
+
status: z3.literal("success")
|
|
1085
|
+
}),
|
|
1086
|
+
ErrorEnvelopeOutputSchema
|
|
1087
|
+
]);
|
|
1088
|
+
var GetCampaignDeploymentStatusOutputEnvelopeSchema = z3.union([
|
|
1089
|
+
z3.object({
|
|
1090
|
+
data: z3.union([
|
|
1091
|
+
GetCampaignDeploymentStatusDataOutputSchema,
|
|
1092
|
+
SummaryWarningsActionsOutputSchema
|
|
1093
|
+
]),
|
|
1094
|
+
status: z3.literal("success")
|
|
1095
|
+
}),
|
|
1096
|
+
ErrorEnvelopeOutputSchema
|
|
1097
|
+
]);
|
|
937
1098
|
var CreateSmartLinkFromSpotifyOutputEnvelopeSchema = z3.union([
|
|
938
1099
|
z3.object({
|
|
939
1100
|
data: CreateSmartLinkFromSpotifyDataOutputSchema,
|
|
@@ -1334,10 +1495,42 @@ var DynamoiGetBillingInputSchema = z5.object({
|
|
|
1334
1495
|
artistId: z5.string().uuid(),
|
|
1335
1496
|
format: ToolFormatSchema2.optional()
|
|
1336
1497
|
}).strict();
|
|
1498
|
+
var LocationTargetSchema = z5.object({
|
|
1499
|
+
code: z5.string().trim().min(1).max(8),
|
|
1500
|
+
name: z5.string().trim().min(1).max(120)
|
|
1501
|
+
}).strict();
|
|
1337
1502
|
var DynamoiGetPlatformStatusInputSchema = z5.object({
|
|
1338
1503
|
artistId: z5.string().uuid(),
|
|
1339
1504
|
format: ToolFormatSchema2.optional()
|
|
1340
1505
|
}).strict();
|
|
1506
|
+
var DynamoiListAvailableCountriesInputSchema = z5.object({
|
|
1507
|
+
campaignType: z5.enum(["SMART_CAMPAIGN", "YOUTUBE"]),
|
|
1508
|
+
cursor: z5.string().optional(),
|
|
1509
|
+
format: ToolFormatSchema2.optional(),
|
|
1510
|
+
limit: z5.number().int().min(1).max(100).optional(),
|
|
1511
|
+
query: z5.string().trim().max(120).optional()
|
|
1512
|
+
}).strict();
|
|
1513
|
+
var DynamoiGetOnboardingStatusInputSchema = z5.object({
|
|
1514
|
+
artistId: z5.string().uuid(),
|
|
1515
|
+
format: ToolFormatSchema2.optional()
|
|
1516
|
+
}).strict();
|
|
1517
|
+
var DynamoiGetCampaignReadinessInputSchema = z5.object({
|
|
1518
|
+
artistId: z5.string().uuid(),
|
|
1519
|
+
budgetAmount: z5.number().finite().positive().optional(),
|
|
1520
|
+
budgetType: z5.enum(["DAILY", "TOTAL"]).optional(),
|
|
1521
|
+
campaignType: z5.enum(["SMART_CAMPAIGN", "YOUTUBE"]),
|
|
1522
|
+
contentType: z5.enum(["TRACK", "ALBUM", "PLAYLIST", "VIDEO"]).optional(),
|
|
1523
|
+
endDate: IsoDateSchema2.optional(),
|
|
1524
|
+
format: ToolFormatSchema2.optional(),
|
|
1525
|
+
locationTargets: z5.array(LocationTargetSchema).optional(),
|
|
1526
|
+
mediaAssetIds: z5.array(z5.string().uuid()).optional(),
|
|
1527
|
+
spotifyUrl: z5.string().trim().min(1).max(500).optional(),
|
|
1528
|
+
youtubeVideoId: z5.string().trim().min(1).max(128).optional()
|
|
1529
|
+
}).strict();
|
|
1530
|
+
var DynamoiGetCampaignDeploymentStatusInputSchema = z5.object({
|
|
1531
|
+
campaignId: z5.string().uuid(),
|
|
1532
|
+
format: ToolFormatSchema2.optional()
|
|
1533
|
+
}).strict();
|
|
1341
1534
|
var DynamoiPauseCampaignInputSchema = z5.object({
|
|
1342
1535
|
campaignId: z5.string().uuid(),
|
|
1343
1536
|
clientRequestId: ClientRequestIdSchema2,
|
|
@@ -1359,10 +1552,6 @@ var DynamoiUpdateBudgetInputSchema = z5.object({
|
|
|
1359
1552
|
expectedCurrentEndDate: IsoDateSchema2.optional(),
|
|
1360
1553
|
userIntentSummary: UserIntentSummarySchema2
|
|
1361
1554
|
}).strict();
|
|
1362
|
-
var LocationTargetSchema = z5.object({
|
|
1363
|
-
code: z5.string().trim().min(1).max(8),
|
|
1364
|
-
name: z5.string().trim().min(1).max(120)
|
|
1365
|
-
}).strict();
|
|
1366
1555
|
var DynamoiListMediaAssetsInputSchema = z5.object({
|
|
1367
1556
|
artistId: z5.string().uuid(),
|
|
1368
1557
|
cursor: z5.string().optional(),
|
|
@@ -1570,6 +1759,46 @@ var PHASE_1_TOOL_DEFINITIONS = [
|
|
|
1570
1759
|
readOnlyHint: true,
|
|
1571
1760
|
schema: DynamoiGetPlatformStatusInputSchema,
|
|
1572
1761
|
title: "Get Platform Status"
|
|
1762
|
+
},
|
|
1763
|
+
{
|
|
1764
|
+
description: "Use this when the user asks which countries they can target for a Smart Campaign or YouTube campaign. Always pass campaignType because Smart Campaign and YouTube country catalogs are different. Do not use this for generic country marketing advice.",
|
|
1765
|
+
destructiveHint: false,
|
|
1766
|
+
name: "dynamoi_list_available_countries",
|
|
1767
|
+
openWorldHint: false,
|
|
1768
|
+
outputSchema: ListAvailableCountriesOutputEnvelopeSchema,
|
|
1769
|
+
readOnlyHint: true,
|
|
1770
|
+
schema: DynamoiListAvailableCountriesInputSchema,
|
|
1771
|
+
title: "List Available Countries"
|
|
1772
|
+
},
|
|
1773
|
+
{
|
|
1774
|
+
description: "Use this when the user asks whether one artist is ready to create Smart Campaigns or YouTube campaigns, or what setup steps are still missing. This is artist-level readiness, not a campaign launch. Do not use this for generic marketing advice.",
|
|
1775
|
+
destructiveHint: false,
|
|
1776
|
+
name: "dynamoi_get_onboarding_status",
|
|
1777
|
+
openWorldHint: false,
|
|
1778
|
+
outputSchema: GetOnboardingStatusOutputEnvelopeSchema,
|
|
1779
|
+
readOnlyHint: true,
|
|
1780
|
+
schema: DynamoiGetOnboardingStatusInputSchema,
|
|
1781
|
+
title: "Get Onboarding Status"
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
description: "Use this when the user is planning a campaign and wants to know if the proposed inputs are ready before dynamoi_launch_campaign. This validates readiness and targeting without creating a campaign. Do not use this to create or mutate campaigns.",
|
|
1785
|
+
destructiveHint: false,
|
|
1786
|
+
name: "dynamoi_get_campaign_readiness",
|
|
1787
|
+
openWorldHint: false,
|
|
1788
|
+
outputSchema: GetCampaignReadinessOutputEnvelopeSchema,
|
|
1789
|
+
readOnlyHint: true,
|
|
1790
|
+
schema: DynamoiGetCampaignReadinessInputSchema,
|
|
1791
|
+
title: "Get Campaign Readiness"
|
|
1792
|
+
},
|
|
1793
|
+
{
|
|
1794
|
+
description: "Use this when the user asks why an existing campaign is not live, where deployment stands, or what is blocking delivery. This reads local Dynamoi deployment state only. Do not use this for new campaign planning.",
|
|
1795
|
+
destructiveHint: false,
|
|
1796
|
+
name: "dynamoi_get_campaign_deployment_status",
|
|
1797
|
+
openWorldHint: false,
|
|
1798
|
+
outputSchema: GetCampaignDeploymentStatusOutputEnvelopeSchema,
|
|
1799
|
+
readOnlyHint: true,
|
|
1800
|
+
schema: DynamoiGetCampaignDeploymentStatusInputSchema,
|
|
1801
|
+
title: "Get Campaign Deployment Status"
|
|
1573
1802
|
}
|
|
1574
1803
|
];
|
|
1575
1804
|
var PHASE_2_TOOL_DEFINITIONS = [
|
|
@@ -1768,6 +1997,30 @@ function createDynamoiMcpServer(options) {
|
|
|
1768
1997
|
outputSchema: def.outputSchema,
|
|
1769
1998
|
toolName: def.name
|
|
1770
1999
|
});
|
|
2000
|
+
case "dynamoi_list_available_countries":
|
|
2001
|
+
return asValidatedTextResult({
|
|
2002
|
+
envelope: await options.adapter.listAvailableCountries(input),
|
|
2003
|
+
outputSchema: def.outputSchema,
|
|
2004
|
+
toolName: def.name
|
|
2005
|
+
});
|
|
2006
|
+
case "dynamoi_get_onboarding_status":
|
|
2007
|
+
return asValidatedTextResult({
|
|
2008
|
+
envelope: await options.adapter.getOnboardingStatus(input),
|
|
2009
|
+
outputSchema: def.outputSchema,
|
|
2010
|
+
toolName: def.name
|
|
2011
|
+
});
|
|
2012
|
+
case "dynamoi_get_campaign_readiness":
|
|
2013
|
+
return asValidatedTextResult({
|
|
2014
|
+
envelope: await options.adapter.getCampaignReadiness(input),
|
|
2015
|
+
outputSchema: def.outputSchema,
|
|
2016
|
+
toolName: def.name
|
|
2017
|
+
});
|
|
2018
|
+
case "dynamoi_get_campaign_deployment_status":
|
|
2019
|
+
return asValidatedTextResult({
|
|
2020
|
+
envelope: await options.adapter.getCampaignDeploymentStatus(input),
|
|
2021
|
+
outputSchema: def.outputSchema,
|
|
2022
|
+
toolName: def.name
|
|
2023
|
+
});
|
|
1771
2024
|
case "dynamoi_pause_campaign":
|
|
1772
2025
|
return asValidatedTextResult({
|
|
1773
2026
|
envelope: await options.adapter.pauseCampaign(input),
|
|
@@ -1971,14 +2224,18 @@ export {
|
|
|
1971
2224
|
DynamoiGetArtistInputSchema,
|
|
1972
2225
|
DynamoiGetBillingInputSchema,
|
|
1973
2226
|
DynamoiGetCampaignAnalyticsInputSchema,
|
|
2227
|
+
DynamoiGetCampaignDeploymentStatusInputSchema,
|
|
1974
2228
|
DynamoiGetCampaignInputSchema,
|
|
2229
|
+
DynamoiGetCampaignReadinessInputSchema,
|
|
1975
2230
|
DynamoiGetCurrentUserInputSchema,
|
|
2231
|
+
DynamoiGetOnboardingStatusInputSchema,
|
|
1976
2232
|
DynamoiGetPlatformStatusInputSchema,
|
|
1977
2233
|
DynamoiGetSmartLinkAnalyticsInputSchema,
|
|
1978
2234
|
DynamoiGetSmartLinkArtistSettingsInputSchema,
|
|
1979
2235
|
DynamoiGetSmartLinkInputSchema,
|
|
1980
2236
|
DynamoiLaunchCampaignInputSchema,
|
|
1981
2237
|
DynamoiListArtistsInputSchema,
|
|
2238
|
+
DynamoiListAvailableCountriesInputSchema,
|
|
1982
2239
|
DynamoiListCampaignsInputSchema,
|
|
1983
2240
|
DynamoiListMediaAssetsInputSchema,
|
|
1984
2241
|
DynamoiListSmartLinksInputSchema,
|