@dynamoi/mcp 0.5.2 → 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 CHANGED
@@ -7,6 +7,25 @@ and [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.6.0] - 2026-05-02
11
+
12
+ ### Added
13
+
14
+ - Added read-only campaign planning tools: `dynamoi_list_available_countries`, `dynamoi_get_onboarding_status`, `dynamoi_get_campaign_readiness`, and `dynamoi_get_campaign_deployment_status`.
15
+ - Added campaign-type-aware targeting metadata so assistants distinguish Smart Campaign country availability from YouTube/Google Ads country targeting.
16
+
17
+ ## [0.5.3] - 2026-05-01
18
+
19
+ ### Added
20
+
21
+ - Added MCP prompts and resources that help assistants explain free Smart Links, find Smart Link URLs, and distinguish free Smart Links from paid managed advertising.
22
+
23
+ ### Changed
24
+
25
+ - Smart Link create/get/list/search summaries now prioritize release title, artist name, public URL, status, and next actions for more natural assistant replies.
26
+ - `dynamoi_search` summary rows keep artist and campaign IDs for follow-up tool calls while keeping Smart Link internal IDs out of user-facing summaries.
27
+ - Smart Link tool descriptions and runtime instructions now tell assistants to lead with public URLs and avoid internal IDs unless the user asks.
28
+
10
29
  ## [0.5.2] - 2026-05-01
11
30
 
12
31
  ### Fixed
@@ -5,7 +5,7 @@ type ProtectedResourceMetadata = {
5
5
  resource_documentation?: string;
6
6
  scopes_supported: string[];
7
7
  };
8
- declare const DYNAMOI_MCP_SCOPES: readonly ["email", "profile", "dynamoi:read", "dynamoi:campaign.write", "dynamoi:campaign.launch", "dynamoi:billing.read", "dynamoi:platform.read", "dynamoi:smart_links.write", "dynamoi:audit.read", "dynamoi:admin"];
8
+ declare const DYNAMOI_MCP_SCOPES: readonly ["email", "profile"];
9
9
  declare function buildProtectedResourceMetadata(options: {
10
10
  resource: string;
11
11
  authorizationServers: string[];
@@ -2,7 +2,7 @@ import {
2
2
  DYNAMOI_MCP_SCOPES,
3
3
  buildProtectedResourceMetadata,
4
4
  buildWwwAuthenticateHeader
5
- } from "../chunk-U5Y6RJS2.js";
5
+ } from "../chunk-6SBJ7DZU.js";
6
6
  export {
7
7
  DYNAMOI_MCP_SCOPES,
8
8
  buildProtectedResourceMetadata,
@@ -1,16 +1,5 @@
1
1
  // src/auth/protected-resource.ts
2
- var DYNAMOI_MCP_SCOPES = [
3
- "email",
4
- "profile",
5
- "dynamoi:read",
6
- "dynamoi:campaign.write",
7
- "dynamoi:campaign.launch",
8
- "dynamoi:billing.read",
9
- "dynamoi:platform.read",
10
- "dynamoi:smart_links.write",
11
- "dynamoi:audit.read",
12
- "dynamoi:admin"
13
- ];
2
+ var DYNAMOI_MCP_SCOPES = ["email", "profile"];
14
3
  function buildProtectedResourceMetadata(options) {
15
4
  return {
16
5
  authorization_servers: options.authorizationServers,
@@ -23,7 +12,7 @@ function buildProtectedResourceMetadata(options) {
23
12
  };
24
13
  }
25
14
  function buildWwwAuthenticateHeader(options) {
26
- const scope = options.scope ?? "email profile dynamoi:read";
15
+ const scope = options.scope ?? "email profile";
27
16
  const error = options.error ? `, error="${options.error}"` : "";
28
17
  return `Bearer resource_metadata="${options.resourceMetadataUrl}", scope="${scope}"${error}`;
29
18
  }
@@ -33,4 +22,4 @@ export {
33
22
  buildProtectedResourceMetadata,
34
23
  buildWwwAuthenticateHeader
35
24
  };
36
- //# sourceMappingURL=chunk-U5Y6RJS2.js.map
25
+ //# sourceMappingURL=chunk-6SBJ7DZU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/auth/protected-resource.ts"],"sourcesContent":["type ProtectedResourceMetadata = {\n\tauthorization_servers: string[];\n\tbearer_methods_supported: [\"header\"];\n\tresource: string;\n\tresource_documentation?: string;\n\tscopes_supported: string[];\n};\n\nexport const DYNAMOI_MCP_SCOPES = [\"email\", \"profile\"] as const;\n\nexport function buildProtectedResourceMetadata(options: {\n\tresource: string;\n\tauthorizationServers: string[];\n\tresourceDocumentation?: string;\n\tscopesSupported?: string[];\n}): ProtectedResourceMetadata {\n\treturn {\n\t\tauthorization_servers: options.authorizationServers,\n\t\tbearer_methods_supported: [\"header\"],\n\t\tresource: options.resource,\n\t\t...(options.resourceDocumentation\n\t\t\t? { resource_documentation: options.resourceDocumentation }\n\t\t\t: {}),\n\t\t// Supabase OAuth Server (beta) can fail token exchange when `openid` is requested\n\t\t// (it attempts to mint an ID token). Our MCP only needs an access token.\n\t\tscopes_supported: options.scopesSupported ?? [...DYNAMOI_MCP_SCOPES],\n\t};\n}\n\nexport function buildWwwAuthenticateHeader(options: {\n\tresourceMetadataUrl: string;\n\terror?: \"insufficient_scope\" | \"invalid_token\";\n\tscope?: string;\n}): string {\n\tconst scope = options.scope ?? \"email profile\";\n\tconst error = options.error ? `, error=\"${options.error}\"` : \"\";\n\t// RFC 6750 style with resource metadata extension.\n\treturn `Bearer resource_metadata=\"${options.resourceMetadataUrl}\", scope=\"${scope}\"${error}`;\n}\n"],"mappings":";AAQO,IAAM,qBAAqB,CAAC,SAAS,SAAS;AAE9C,SAAS,+BAA+B,SAKjB;AAC7B,SAAO;AAAA,IACN,uBAAuB,QAAQ;AAAA,IAC/B,0BAA0B,CAAC,QAAQ;AAAA,IACnC,UAAU,QAAQ;AAAA,IAClB,GAAI,QAAQ,wBACT,EAAE,wBAAwB,QAAQ,sBAAsB,IACxD,CAAC;AAAA;AAAA;AAAA,IAGJ,kBAAkB,QAAQ,mBAAmB,CAAC,GAAG,kBAAkB;AAAA,EACpE;AACD;AAEO,SAAS,2BAA2B,SAIhC;AACV,QAAM,QAAQ,QAAQ,SAAS;AAC/B,QAAM,QAAQ,QAAQ,QAAQ,YAAY,QAAQ,KAAK,MAAM;AAE7D,SAAO,6BAA6B,QAAQ,mBAAmB,aAAa,KAAK,IAAI,KAAK;AAC3F;","names":[]}
package/dist/index.d.ts CHANGED
@@ -18,6 +18,93 @@ type VerifyAccessTokenOptions = {
18
18
  };
19
19
  declare function verifyAccessToken(options: VerifyAccessTokenOptions): Promise<VerifiedAccessToken>;
20
20
 
21
+ type CountryCatalogSource = "SMART_CAMPAIGN_COUNTRIES" | "GOOGLE_ADS_COUNTRIES";
22
+ type AvailableCountry = {
23
+ code: string;
24
+ name: string;
25
+ googleAdsId: number;
26
+ dominantLanguage?: string;
27
+ };
28
+ type ListAvailableCountriesData = {
29
+ campaignType: CampaignType;
30
+ source: CountryCatalogSource;
31
+ countries: AvailableCountry[];
32
+ totalCount: number;
33
+ nextCursor?: string;
34
+ notes: string[];
35
+ };
36
+ type ListAvailableCountriesSummaryData = {
37
+ summary: string;
38
+ totalCount: number;
39
+ nextCursor?: string;
40
+ };
41
+ type ProductReadiness = {
42
+ isReady: boolean;
43
+ missingRequirements: string[];
44
+ nextAction?: string;
45
+ blockers: string[];
46
+ warnings: string[];
47
+ };
48
+ type GetOnboardingStatusData = {
49
+ artistId: string;
50
+ artistName: string;
51
+ smartCampaign: ProductReadiness;
52
+ youtube: ProductReadiness;
53
+ overallNextAction?: string;
54
+ };
55
+ type GetOnboardingStatusSummaryData = {
56
+ summary: string;
57
+ warnings?: string[];
58
+ actionRequired?: string[];
59
+ };
60
+ type GetCampaignReadinessData = {
61
+ artistId: string;
62
+ artistName: string;
63
+ campaignType: CampaignType;
64
+ isReady: boolean;
65
+ blockingIssues: string[];
66
+ warnings: string[];
67
+ missingInputs: string[];
68
+ normalizedTargeting: {
69
+ mode: "GLOBAL";
70
+ } | {
71
+ mode: "COUNTRIES";
72
+ countries: Array<{
73
+ code: string;
74
+ name: string;
75
+ }>;
76
+ };
77
+ recommendedNextAction: string;
78
+ };
79
+ type GetCampaignReadinessSummaryData = {
80
+ summary: string;
81
+ warnings?: string[];
82
+ actionRequired?: string[];
83
+ };
84
+ type GetCampaignDeploymentStatusData = {
85
+ campaignId: string;
86
+ artistId: string;
87
+ artistName: string;
88
+ contentTitle: string;
89
+ campaignType: CampaignType;
90
+ status: CampaignDisplayStatus;
91
+ deliveryState: "LIVE" | "PENDING" | "BLOCKED" | "PAUSED" | "ENDED";
92
+ platforms: Array<{
93
+ platform: "META" | "GOOGLE";
94
+ status: string;
95
+ linkedProviderId?: string;
96
+ errorMessage?: string;
97
+ }>;
98
+ blockers: string[];
99
+ warnings: string[];
100
+ nextAction?: string;
101
+ };
102
+ type GetCampaignDeploymentStatusSummaryData = {
103
+ summary: string;
104
+ warnings?: string[];
105
+ actionRequired?: string[];
106
+ };
107
+
21
108
  type ResultEnvelope<T> = {
22
109
  status: "success";
23
110
  data: T;
@@ -64,6 +151,7 @@ type SearchData = {
64
151
  name: string;
65
152
  status?: string;
66
153
  artistName?: string;
154
+ publicUrl?: string;
67
155
  resultReason?: string;
68
156
  }>;
69
157
  nextCursor?: string;
@@ -139,6 +227,7 @@ type GetSmartLinkData = SmartLinkSummary & {
139
227
  resourceUri: string;
140
228
  settingsResourceUri: string;
141
229
  nextActions: string[];
230
+ summary: string;
142
231
  warnings?: string[];
143
232
  actionRequired?: string[];
144
233
  };
@@ -535,6 +624,10 @@ type Phase3Adapter = {
535
624
  getCampaignAnalytics(input: unknown): Promise<ResultEnvelope<GetCampaignAnalyticsJsonData | GetCampaignAnalyticsSummaryData>>;
536
625
  getBilling(input: unknown): Promise<ResultEnvelope<GetBillingData | GetBillingSummaryData>>;
537
626
  getPlatformStatus(input: unknown): Promise<ResultEnvelope<GetPlatformStatusData | GetPlatformStatusSummaryData>>;
627
+ listAvailableCountries(input: unknown): Promise<ResultEnvelope<ListAvailableCountriesData | ListAvailableCountriesSummaryData>>;
628
+ getOnboardingStatus(input: unknown): Promise<ResultEnvelope<GetOnboardingStatusData | GetOnboardingStatusSummaryData>>;
629
+ getCampaignReadiness(input: unknown): Promise<ResultEnvelope<GetCampaignReadinessData | GetCampaignReadinessSummaryData>>;
630
+ getCampaignDeploymentStatus(input: unknown): Promise<ResultEnvelope<GetCampaignDeploymentStatusData | GetCampaignDeploymentStatusSummaryData>>;
538
631
  pauseCampaign(input: unknown): Promise<ResultEnvelope<PauseResumeCampaignData>>;
539
632
  resumeCampaign(input: unknown): Promise<ResultEnvelope<PauseResumeCampaignData>>;
540
633
  updateBudget(input: unknown): Promise<ResultEnvelope<UpdateBudgetData>>;
@@ -655,7 +748,7 @@ declare const DynamoiPublishSmartLinkInputSchema: z.ZodObject<{
655
748
  userIntentSummary: z.ZodOptional<z.ZodString>;
656
749
  }, z.core.$strict>;
657
750
  declare const PHASE_4_TOOL_DEFINITIONS: readonly [{
658
- readonly description: "Use this when the user wants to create a free Dynamoi Smart Link from a Spotify artist, album, or track URL/URI. Smart Links are free: no per-link fee, no subscription requirement, and no upgrade gate. This does not create a paid ad campaign. Spotify playlist URLs are not supported today. If the Smart Link already exists, return the existing link instead of creating a duplicate.";
751
+ readonly description: "Use this when the user wants to create a free Dynamoi Smart Link from a Spotify artist, album, or track URL/URI. Smart Links are free: no per-link fee, no subscription requirement, and no upgrade gate. This does not create a paid ad campaign. Spotify playlist URLs are not supported today. If the Smart Link already exists, return the existing link instead of creating a duplicate. In the final answer, lead with the public URL and do not expose internal IDs unless asked.";
659
752
  readonly destructiveHint: false;
660
753
  readonly idempotentHint: true;
661
754
  readonly name: "dynamoi_create_smart_link_from_spotify";
@@ -713,6 +806,7 @@ declare const PHASE_4_TOOL_DEFINITIONS: readonly [{
713
806
  resourceUri: z.ZodString;
714
807
  settingsResourceUri: z.ZodString;
715
808
  spotifyDiscographyId: z.ZodString;
809
+ summary: z.ZodString;
716
810
  warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
717
811
  outcome: z.ZodEnum<{
718
812
  created: "created";
@@ -746,7 +840,7 @@ declare const PHASE_4_TOOL_DEFINITIONS: readonly [{
746
840
  }, z.core.$strict>;
747
841
  readonly title: "Create Free Smart Link from Spotify";
748
842
  }, {
749
- readonly description: "Use this when the user wants to list free Smart Links for one artist, including release title, public URL, publish state, claim state, render state, and theme. Do not use this for paid campaign lists; use dynamoi_list_campaigns for campaigns.";
843
+ readonly description: "Use this when the user wants to list free Smart Links for one artist, including release title, public URL, publish state, claim state, render state, and theme. Do not use this for paid campaign lists; use dynamoi_list_campaigns for campaigns. In the final answer, show public URLs and avoid internal IDs unless asked.";
750
844
  readonly destructiveHint: false;
751
845
  readonly name: "dynamoi_list_smart_links";
752
846
  readonly openWorldHint: false;
@@ -844,7 +938,7 @@ declare const PHASE_4_TOOL_DEFINITIONS: readonly [{
844
938
  }, z.core.$strict>;
845
939
  readonly title: "List Smart Links";
846
940
  }, {
847
- readonly 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.";
941
+ readonly 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. In the final answer, lead with the public URL and do not expose internal IDs unless asked.";
848
942
  readonly destructiveHint: false;
849
943
  readonly name: "dynamoi_get_smart_link";
850
944
  readonly openWorldHint: false;
@@ -901,6 +995,7 @@ declare const PHASE_4_TOOL_DEFINITIONS: readonly [{
901
995
  resourceUri: z.ZodString;
902
996
  settingsResourceUri: z.ZodString;
903
997
  spotifyDiscographyId: z.ZodString;
998
+ summary: z.ZodString;
904
999
  warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
905
1000
  }, z.core.$strict>, z.ZodObject<{
906
1001
  summary: z.ZodString;
@@ -1111,6 +1206,7 @@ declare const PHASE_4_TOOL_DEFINITIONS: readonly [{
1111
1206
  resourceUri: z.ZodString;
1112
1207
  settingsResourceUri: z.ZodString;
1113
1208
  spotifyDiscographyId: z.ZodString;
1209
+ summary: z.ZodString;
1114
1210
  warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
1115
1211
  renderRunId: z.ZodNullable<z.ZodString>;
1116
1212
  renderWarning: z.ZodNullable<z.ZodString>;
@@ -1253,6 +1349,7 @@ declare const PHASE_4_TOOL_DEFINITIONS: readonly [{
1253
1349
  resourceUri: z.ZodString;
1254
1350
  settingsResourceUri: z.ZodString;
1255
1351
  spotifyDiscographyId: z.ZodString;
1352
+ summary: z.ZodString;
1256
1353
  warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
1257
1354
  workflowRunId: z.ZodNullable<z.ZodString>;
1258
1355
  workflowWarning: z.ZodNullable<z.ZodString>;
@@ -1338,6 +1435,7 @@ declare const PHASE_4_TOOL_DEFINITIONS: readonly [{
1338
1435
  resourceUri: z.ZodString;
1339
1436
  settingsResourceUri: z.ZodString;
1340
1437
  spotifyDiscographyId: z.ZodString;
1438
+ summary: z.ZodString;
1341
1439
  warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
1342
1440
  workflowRunId: z.ZodNullable<z.ZodString>;
1343
1441
  workflowWarning: z.ZodNullable<z.ZodString>;
@@ -1483,15 +1581,72 @@ declare const DynamoiGetPlatformStatusInputSchema: z.ZodObject<{
1483
1581
  json: "json";
1484
1582
  }>>;
1485
1583
  }, z.core.$strict>;
1584
+ declare const DynamoiListAvailableCountriesInputSchema: z.ZodObject<{
1585
+ campaignType: z.ZodEnum<{
1586
+ SMART_CAMPAIGN: "SMART_CAMPAIGN";
1587
+ YOUTUBE: "YOUTUBE";
1588
+ }>;
1589
+ cursor: z.ZodOptional<z.ZodString>;
1590
+ format: z.ZodOptional<z.ZodEnum<{
1591
+ summary: "summary";
1592
+ json: "json";
1593
+ }>>;
1594
+ limit: z.ZodOptional<z.ZodNumber>;
1595
+ query: z.ZodOptional<z.ZodString>;
1596
+ }, z.core.$strict>;
1597
+ declare const DynamoiGetOnboardingStatusInputSchema: z.ZodObject<{
1598
+ artistId: z.ZodString;
1599
+ format: z.ZodOptional<z.ZodEnum<{
1600
+ summary: "summary";
1601
+ json: "json";
1602
+ }>>;
1603
+ }, z.core.$strict>;
1604
+ declare const DynamoiGetCampaignReadinessInputSchema: z.ZodObject<{
1605
+ artistId: z.ZodString;
1606
+ budgetAmount: z.ZodOptional<z.ZodNumber>;
1607
+ budgetType: z.ZodOptional<z.ZodEnum<{
1608
+ DAILY: "DAILY";
1609
+ TOTAL: "TOTAL";
1610
+ }>>;
1611
+ campaignType: z.ZodEnum<{
1612
+ SMART_CAMPAIGN: "SMART_CAMPAIGN";
1613
+ YOUTUBE: "YOUTUBE";
1614
+ }>;
1615
+ contentType: z.ZodOptional<z.ZodEnum<{
1616
+ TRACK: "TRACK";
1617
+ ALBUM: "ALBUM";
1618
+ PLAYLIST: "PLAYLIST";
1619
+ VIDEO: "VIDEO";
1620
+ }>>;
1621
+ endDate: z.ZodOptional<z.ZodString>;
1622
+ format: z.ZodOptional<z.ZodEnum<{
1623
+ summary: "summary";
1624
+ json: "json";
1625
+ }>>;
1626
+ locationTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1627
+ code: z.ZodString;
1628
+ name: z.ZodString;
1629
+ }, z.core.$strict>>>;
1630
+ mediaAssetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1631
+ spotifyUrl: z.ZodOptional<z.ZodString>;
1632
+ youtubeVideoId: z.ZodOptional<z.ZodString>;
1633
+ }, z.core.$strict>;
1634
+ declare const DynamoiGetCampaignDeploymentStatusInputSchema: z.ZodObject<{
1635
+ campaignId: z.ZodString;
1636
+ format: z.ZodOptional<z.ZodEnum<{
1637
+ summary: "summary";
1638
+ json: "json";
1639
+ }>>;
1640
+ }, z.core.$strict>;
1486
1641
  declare const DynamoiPauseCampaignInputSchema: z.ZodObject<{
1487
1642
  campaignId: z.ZodString;
1488
1643
  clientRequestId: z.ZodOptional<z.ZodString>;
1489
1644
  expectedCurrentStatus: z.ZodOptional<z.ZodEnum<{
1490
- ACTIVE: "ACTIVE";
1491
1645
  AWAITING_SMART_LINK: "AWAITING_SMART_LINK";
1492
1646
  CONTENT_VALIDATION: "CONTENT_VALIDATION";
1493
1647
  DEPLOYING: "DEPLOYING";
1494
1648
  READY_FOR_REVIEW: "READY_FOR_REVIEW";
1649
+ ACTIVE: "ACTIVE";
1495
1650
  PAUSED: "PAUSED";
1496
1651
  SUBSCRIPTION_PAUSED: "SUBSCRIPTION_PAUSED";
1497
1652
  ARCHIVED: "ARCHIVED";
@@ -1504,11 +1659,11 @@ declare const DynamoiResumeCampaignInputSchema: z.ZodObject<{
1504
1659
  campaignId: z.ZodString;
1505
1660
  clientRequestId: z.ZodOptional<z.ZodString>;
1506
1661
  expectedCurrentStatus: z.ZodOptional<z.ZodEnum<{
1507
- ACTIVE: "ACTIVE";
1508
1662
  AWAITING_SMART_LINK: "AWAITING_SMART_LINK";
1509
1663
  CONTENT_VALIDATION: "CONTENT_VALIDATION";
1510
1664
  DEPLOYING: "DEPLOYING";
1511
1665
  READY_FOR_REVIEW: "READY_FOR_REVIEW";
1666
+ ACTIVE: "ACTIVE";
1512
1667
  PAUSED: "PAUSED";
1513
1668
  SUBSCRIPTION_PAUSED: "SUBSCRIPTION_PAUSED";
1514
1669
  ARCHIVED: "ARCHIVED";
@@ -1921,6 +2076,245 @@ declare const PHASE_1_TOOL_DEFINITIONS: readonly [{
1921
2076
  }>>;
1922
2077
  }, z.core.$strict>;
1923
2078
  readonly title: "Get Platform Status";
2079
+ }, {
2080
+ readonly 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.";
2081
+ readonly destructiveHint: false;
2082
+ readonly name: "dynamoi_list_available_countries";
2083
+ readonly openWorldHint: false;
2084
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
2085
+ data: z.ZodUnion<readonly [z.ZodObject<{
2086
+ campaignType: z.ZodEnum<{
2087
+ SMART_CAMPAIGN: "SMART_CAMPAIGN";
2088
+ YOUTUBE: "YOUTUBE";
2089
+ }>;
2090
+ countries: z.ZodArray<z.ZodObject<{
2091
+ code: z.ZodString;
2092
+ dominantLanguage: z.ZodOptional<z.ZodString>;
2093
+ googleAdsId: z.ZodNumber;
2094
+ name: z.ZodString;
2095
+ }, z.core.$strict>>;
2096
+ nextCursor: z.ZodOptional<z.ZodString>;
2097
+ notes: z.ZodArray<z.ZodString>;
2098
+ source: z.ZodEnum<{
2099
+ SMART_CAMPAIGN_COUNTRIES: "SMART_CAMPAIGN_COUNTRIES";
2100
+ GOOGLE_ADS_COUNTRIES: "GOOGLE_ADS_COUNTRIES";
2101
+ }>;
2102
+ totalCount: z.ZodNumber;
2103
+ }, z.core.$strict>, z.ZodObject<{
2104
+ nextCursor: z.ZodOptional<z.ZodString>;
2105
+ summary: z.ZodString;
2106
+ totalCount: z.ZodNumber;
2107
+ }, z.core.$strict>]>;
2108
+ status: z.ZodLiteral<"success">;
2109
+ }, z.core.$strip>, z.ZodObject<{
2110
+ kind: z.ZodOptional<z.ZodEnum<{
2111
+ validation: "validation";
2112
+ business: "business";
2113
+ platform: "platform";
2114
+ unknown: "unknown";
2115
+ }>>;
2116
+ message: z.ZodString;
2117
+ status: z.ZodLiteral<"error">;
2118
+ }, z.core.$strict>]>;
2119
+ readonly readOnlyHint: true;
2120
+ readonly schema: z.ZodObject<{
2121
+ campaignType: z.ZodEnum<{
2122
+ SMART_CAMPAIGN: "SMART_CAMPAIGN";
2123
+ YOUTUBE: "YOUTUBE";
2124
+ }>;
2125
+ cursor: z.ZodOptional<z.ZodString>;
2126
+ format: z.ZodOptional<z.ZodEnum<{
2127
+ summary: "summary";
2128
+ json: "json";
2129
+ }>>;
2130
+ limit: z.ZodOptional<z.ZodNumber>;
2131
+ query: z.ZodOptional<z.ZodString>;
2132
+ }, z.core.$strict>;
2133
+ readonly title: "List Available Countries";
2134
+ }, {
2135
+ readonly 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.";
2136
+ readonly destructiveHint: false;
2137
+ readonly name: "dynamoi_get_onboarding_status";
2138
+ readonly openWorldHint: false;
2139
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
2140
+ data: z.ZodUnion<readonly [z.ZodObject<{
2141
+ artistId: z.ZodString;
2142
+ artistName: z.ZodString;
2143
+ overallNextAction: z.ZodOptional<z.ZodString>;
2144
+ smartCampaign: z.ZodObject<{
2145
+ blockers: z.ZodArray<z.ZodString>;
2146
+ isReady: z.ZodBoolean;
2147
+ missingRequirements: z.ZodArray<z.ZodString>;
2148
+ nextAction: z.ZodOptional<z.ZodString>;
2149
+ warnings: z.ZodArray<z.ZodString>;
2150
+ }, z.core.$strict>;
2151
+ youtube: z.ZodObject<{
2152
+ blockers: z.ZodArray<z.ZodString>;
2153
+ isReady: z.ZodBoolean;
2154
+ missingRequirements: z.ZodArray<z.ZodString>;
2155
+ nextAction: z.ZodOptional<z.ZodString>;
2156
+ warnings: z.ZodArray<z.ZodString>;
2157
+ }, z.core.$strict>;
2158
+ }, z.core.$strict>, z.ZodObject<{
2159
+ actionRequired: z.ZodOptional<z.ZodArray<z.ZodString>>;
2160
+ summary: z.ZodString;
2161
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
2162
+ }, z.core.$strict>]>;
2163
+ status: z.ZodLiteral<"success">;
2164
+ }, z.core.$strip>, z.ZodObject<{
2165
+ kind: z.ZodOptional<z.ZodEnum<{
2166
+ validation: "validation";
2167
+ business: "business";
2168
+ platform: "platform";
2169
+ unknown: "unknown";
2170
+ }>>;
2171
+ message: z.ZodString;
2172
+ status: z.ZodLiteral<"error">;
2173
+ }, z.core.$strict>]>;
2174
+ readonly readOnlyHint: true;
2175
+ readonly schema: z.ZodObject<{
2176
+ artistId: z.ZodString;
2177
+ format: z.ZodOptional<z.ZodEnum<{
2178
+ summary: "summary";
2179
+ json: "json";
2180
+ }>>;
2181
+ }, z.core.$strict>;
2182
+ readonly title: "Get Onboarding Status";
2183
+ }, {
2184
+ readonly 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.";
2185
+ readonly destructiveHint: false;
2186
+ readonly name: "dynamoi_get_campaign_readiness";
2187
+ readonly openWorldHint: false;
2188
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
2189
+ data: z.ZodUnion<readonly [z.ZodObject<{
2190
+ artistId: z.ZodString;
2191
+ artistName: z.ZodString;
2192
+ blockingIssues: z.ZodArray<z.ZodString>;
2193
+ campaignType: z.ZodEnum<{
2194
+ SMART_CAMPAIGN: "SMART_CAMPAIGN";
2195
+ YOUTUBE: "YOUTUBE";
2196
+ }>;
2197
+ isReady: z.ZodBoolean;
2198
+ missingInputs: z.ZodArray<z.ZodString>;
2199
+ normalizedTargeting: z.ZodUnion<readonly [z.ZodObject<{
2200
+ mode: z.ZodLiteral<"GLOBAL">;
2201
+ }, z.core.$strict>, z.ZodObject<{
2202
+ countries: z.ZodArray<z.ZodObject<{
2203
+ code: z.ZodString;
2204
+ name: z.ZodString;
2205
+ }, z.core.$strict>>;
2206
+ mode: z.ZodLiteral<"COUNTRIES">;
2207
+ }, z.core.$strict>]>;
2208
+ recommendedNextAction: z.ZodString;
2209
+ warnings: z.ZodArray<z.ZodString>;
2210
+ }, z.core.$strict>, z.ZodObject<{
2211
+ actionRequired: z.ZodOptional<z.ZodArray<z.ZodString>>;
2212
+ summary: z.ZodString;
2213
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
2214
+ }, z.core.$strict>]>;
2215
+ status: z.ZodLiteral<"success">;
2216
+ }, z.core.$strip>, z.ZodObject<{
2217
+ kind: z.ZodOptional<z.ZodEnum<{
2218
+ validation: "validation";
2219
+ business: "business";
2220
+ platform: "platform";
2221
+ unknown: "unknown";
2222
+ }>>;
2223
+ message: z.ZodString;
2224
+ status: z.ZodLiteral<"error">;
2225
+ }, z.core.$strict>]>;
2226
+ readonly readOnlyHint: true;
2227
+ readonly schema: z.ZodObject<{
2228
+ artistId: z.ZodString;
2229
+ budgetAmount: z.ZodOptional<z.ZodNumber>;
2230
+ budgetType: z.ZodOptional<z.ZodEnum<{
2231
+ DAILY: "DAILY";
2232
+ TOTAL: "TOTAL";
2233
+ }>>;
2234
+ campaignType: z.ZodEnum<{
2235
+ SMART_CAMPAIGN: "SMART_CAMPAIGN";
2236
+ YOUTUBE: "YOUTUBE";
2237
+ }>;
2238
+ contentType: z.ZodOptional<z.ZodEnum<{
2239
+ TRACK: "TRACK";
2240
+ ALBUM: "ALBUM";
2241
+ PLAYLIST: "PLAYLIST";
2242
+ VIDEO: "VIDEO";
2243
+ }>>;
2244
+ endDate: z.ZodOptional<z.ZodString>;
2245
+ format: z.ZodOptional<z.ZodEnum<{
2246
+ summary: "summary";
2247
+ json: "json";
2248
+ }>>;
2249
+ locationTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2250
+ code: z.ZodString;
2251
+ name: z.ZodString;
2252
+ }, z.core.$strict>>>;
2253
+ mediaAssetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2254
+ spotifyUrl: z.ZodOptional<z.ZodString>;
2255
+ youtubeVideoId: z.ZodOptional<z.ZodString>;
2256
+ }, z.core.$strict>;
2257
+ readonly title: "Get Campaign Readiness";
2258
+ }, {
2259
+ readonly 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.";
2260
+ readonly destructiveHint: false;
2261
+ readonly name: "dynamoi_get_campaign_deployment_status";
2262
+ readonly openWorldHint: false;
2263
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
2264
+ data: z.ZodUnion<readonly [z.ZodObject<{
2265
+ artistId: z.ZodString;
2266
+ artistName: z.ZodString;
2267
+ blockers: z.ZodArray<z.ZodString>;
2268
+ campaignId: z.ZodString;
2269
+ campaignType: z.ZodEnum<{
2270
+ SMART_CAMPAIGN: "SMART_CAMPAIGN";
2271
+ YOUTUBE: "YOUTUBE";
2272
+ }>;
2273
+ contentTitle: z.ZodString;
2274
+ deliveryState: z.ZodEnum<{
2275
+ PAUSED: "PAUSED";
2276
+ ENDED: "ENDED";
2277
+ LIVE: "LIVE";
2278
+ PENDING: "PENDING";
2279
+ BLOCKED: "BLOCKED";
2280
+ }>;
2281
+ nextAction: z.ZodOptional<z.ZodString>;
2282
+ platforms: z.ZodArray<z.ZodObject<{
2283
+ errorMessage: z.ZodOptional<z.ZodString>;
2284
+ linkedProviderId: z.ZodOptional<z.ZodString>;
2285
+ platform: z.ZodEnum<{
2286
+ META: "META";
2287
+ GOOGLE: "GOOGLE";
2288
+ }>;
2289
+ status: z.ZodString;
2290
+ }, z.core.$strict>>;
2291
+ status: z.ZodString;
2292
+ warnings: z.ZodArray<z.ZodString>;
2293
+ }, z.core.$strict>, z.ZodObject<{
2294
+ actionRequired: z.ZodOptional<z.ZodArray<z.ZodString>>;
2295
+ summary: z.ZodString;
2296
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
2297
+ }, z.core.$strict>]>;
2298
+ status: z.ZodLiteral<"success">;
2299
+ }, z.core.$strip>, z.ZodObject<{
2300
+ kind: z.ZodOptional<z.ZodEnum<{
2301
+ validation: "validation";
2302
+ business: "business";
2303
+ platform: "platform";
2304
+ unknown: "unknown";
2305
+ }>>;
2306
+ message: z.ZodString;
2307
+ status: z.ZodLiteral<"error">;
2308
+ }, z.core.$strict>]>;
2309
+ readonly readOnlyHint: true;
2310
+ readonly schema: z.ZodObject<{
2311
+ campaignId: z.ZodString;
2312
+ format: z.ZodOptional<z.ZodEnum<{
2313
+ summary: "summary";
2314
+ json: "json";
2315
+ }>>;
2316
+ }, z.core.$strict>;
2317
+ readonly title: "Get Campaign Deployment Status";
1924
2318
  }];
1925
2319
  declare const PHASE_2_TOOL_DEFINITIONS: readonly [{
1926
2320
  readonly description: "Use this when the user explicitly wants to pause a running campaign and stop ad delivery. Do not use this for inspection-only questions; this changes external campaign state.";
@@ -1984,11 +2378,11 @@ declare const PHASE_2_TOOL_DEFINITIONS: readonly [{
1984
2378
  campaignId: z.ZodString;
1985
2379
  clientRequestId: z.ZodOptional<z.ZodString>;
1986
2380
  expectedCurrentStatus: z.ZodOptional<z.ZodEnum<{
1987
- ACTIVE: "ACTIVE";
1988
2381
  AWAITING_SMART_LINK: "AWAITING_SMART_LINK";
1989
2382
  CONTENT_VALIDATION: "CONTENT_VALIDATION";
1990
2383
  DEPLOYING: "DEPLOYING";
1991
2384
  READY_FOR_REVIEW: "READY_FOR_REVIEW";
2385
+ ACTIVE: "ACTIVE";
1992
2386
  PAUSED: "PAUSED";
1993
2387
  SUBSCRIPTION_PAUSED: "SUBSCRIPTION_PAUSED";
1994
2388
  ARCHIVED: "ARCHIVED";
@@ -2060,11 +2454,11 @@ declare const PHASE_2_TOOL_DEFINITIONS: readonly [{
2060
2454
  campaignId: z.ZodString;
2061
2455
  clientRequestId: z.ZodOptional<z.ZodString>;
2062
2456
  expectedCurrentStatus: z.ZodOptional<z.ZodEnum<{
2063
- ACTIVE: "ACTIVE";
2064
2457
  AWAITING_SMART_LINK: "AWAITING_SMART_LINK";
2065
2458
  CONTENT_VALIDATION: "CONTENT_VALIDATION";
2066
2459
  DEPLOYING: "DEPLOYING";
2067
2460
  READY_FOR_REVIEW: "READY_FOR_REVIEW";
2461
+ ACTIVE: "ACTIVE";
2068
2462
  PAUSED: "PAUSED";
2069
2463
  SUBSCRIPTION_PAUSED: "SUBSCRIPTION_PAUSED";
2070
2464
  ARCHIVED: "ARCHIVED";
@@ -2214,8 +2608,8 @@ declare const PHASE_3_TOOL_DEFINITIONS: readonly [{
2214
2608
  }>;
2215
2609
  contentTitle: z.ZodString;
2216
2610
  deliveryState: z.ZodEnum<{
2217
- ACTIVE: "ACTIVE";
2218
2611
  CONTENT_VALIDATION: "CONTENT_VALIDATION";
2612
+ ACTIVE: "ACTIVE";
2219
2613
  PENDING_REVIEW: "PENDING_REVIEW";
2220
2614
  }>;
2221
2615
  id: z.ZodString;
@@ -2289,7 +2683,16 @@ type HandleOptions = {
2289
2683
  * Recommended: `${sub}:${clientId ?? "unknown"}`.
2290
2684
  */
2291
2685
  sessionContextKey: string;
2686
+ /**
2687
+ * Whether initialize requests should create reusable MCP sessions.
2688
+ * Public capability discovery can run statelessly so an unauthenticated
2689
+ * discovery initialize does not produce a session ID that later collides with
2690
+ * an authenticated principal-bound session.
2691
+ *
2692
+ * Default: true.
2693
+ */
2694
+ enableSessions?: boolean;
2292
2695
  };
2293
2696
  declare function handleMcpHttpRequest(options: HandleOptions): Promise<Response>;
2294
2697
 
2295
- export { type AccessRole, type ArtistTier, type BillingStatus, type CampaignDisplayStatus, type CampaignType, type CreateSmartLinkFromSpotifyData, DateRangeSchema, DynamoiCreateSmartLinkFromSpotifyInputSchema, DynamoiGetArtistAnalyticsInputSchema, DynamoiGetArtistInputSchema, DynamoiGetBillingInputSchema, DynamoiGetCampaignAnalyticsInputSchema, DynamoiGetCampaignInputSchema, DynamoiGetCurrentUserInputSchema, DynamoiGetPlatformStatusInputSchema, DynamoiGetSmartLinkAnalyticsInputSchema, DynamoiGetSmartLinkArtistSettingsInputSchema, DynamoiGetSmartLinkInputSchema, DynamoiLaunchCampaignInputSchema, DynamoiListArtistsInputSchema, DynamoiListCampaignsInputSchema, DynamoiListMediaAssetsInputSchema, DynamoiListSmartLinksInputSchema, DynamoiPauseCampaignInputSchema, DynamoiPublishSmartLinkInputSchema, DynamoiResumeCampaignInputSchema, DynamoiSearchInputSchema, DynamoiUpdateBudgetInputSchema, DynamoiUpdateSmartLinkArtistSettingsInputSchema, DynamoiUpdateSmartLinkInputSchema, type GetArtistAnalyticsJsonData, type GetArtistAnalyticsSummaryData, type GetArtistData, type GetArtistSummaryData, type GetBillingData, type GetBillingSummaryData, type GetCampaignAnalyticsJsonData, type GetCampaignAnalyticsSummaryData, type GetCampaignData, type GetCampaignSummaryData, type GetCurrentUserData, type GetCurrentUserSummaryData, type GetPlatformStatusData, type GetPlatformStatusSummaryData, type GetSmartLinkAnalyticsData, type GetSmartLinkAnalyticsSummaryData, type GetSmartLinkData, type GetSmartLinkSummaryData, type LaunchCampaignData, type ListArtistsData, type ListArtistsSummaryData, type ListCampaignsJsonData, type ListCampaignsSummaryData, type ListMediaAssetsData, type ListMediaAssetsSummaryData, type ListSmartLinksData, type ListSmartLinksSummaryData, type MediaAssetSummary, type MoneyDisplay, PHASE_1_TOOL_DEFINITIONS, PHASE_2_TOOL_DEFINITIONS, PHASE_3_TOOL_DEFINITIONS, PHASE_4_TOOL_DEFINITIONS, type PauseResumeCampaignData, type PauseResumePlatformResult, type Phase3Adapter, type PublishSmartLinkData, type ResultEnvelope, type SearchData, type SearchResultType, type SearchSummaryData, type SmartLinkSettingsData, type SmartLinkSummary, ToolFormatSchema, type UpdateBudgetData, type UpdateSmartLinkArtistSettingsData, type UpdateSmartLinkData, createDynamoiMcpServer, handleMcpHttpRequest, verifyAccessToken };
2698
+ export { type AccessRole, type ArtistTier, type BillingStatus, type CampaignDisplayStatus, type CampaignType, type CountryCatalogSource, type CreateSmartLinkFromSpotifyData, DateRangeSchema, DynamoiCreateSmartLinkFromSpotifyInputSchema, DynamoiGetArtistAnalyticsInputSchema, DynamoiGetArtistInputSchema, DynamoiGetBillingInputSchema, DynamoiGetCampaignAnalyticsInputSchema, DynamoiGetCampaignDeploymentStatusInputSchema, DynamoiGetCampaignInputSchema, DynamoiGetCampaignReadinessInputSchema, DynamoiGetCurrentUserInputSchema, DynamoiGetOnboardingStatusInputSchema, DynamoiGetPlatformStatusInputSchema, DynamoiGetSmartLinkAnalyticsInputSchema, DynamoiGetSmartLinkArtistSettingsInputSchema, DynamoiGetSmartLinkInputSchema, DynamoiLaunchCampaignInputSchema, DynamoiListArtistsInputSchema, DynamoiListAvailableCountriesInputSchema, DynamoiListCampaignsInputSchema, DynamoiListMediaAssetsInputSchema, DynamoiListSmartLinksInputSchema, DynamoiPauseCampaignInputSchema, DynamoiPublishSmartLinkInputSchema, DynamoiResumeCampaignInputSchema, DynamoiSearchInputSchema, DynamoiUpdateBudgetInputSchema, DynamoiUpdateSmartLinkArtistSettingsInputSchema, DynamoiUpdateSmartLinkInputSchema, type GetArtistAnalyticsJsonData, type GetArtistAnalyticsSummaryData, type GetArtistData, type GetArtistSummaryData, type GetBillingData, type GetBillingSummaryData, type GetCampaignAnalyticsJsonData, type GetCampaignAnalyticsSummaryData, type GetCampaignData, type GetCampaignDeploymentStatusData, type GetCampaignDeploymentStatusSummaryData, type GetCampaignReadinessData, type GetCampaignReadinessSummaryData, type GetCampaignSummaryData, type GetCurrentUserData, type GetCurrentUserSummaryData, type GetOnboardingStatusData, type GetOnboardingStatusSummaryData, type GetPlatformStatusData, type GetPlatformStatusSummaryData, type GetSmartLinkAnalyticsData, type GetSmartLinkAnalyticsSummaryData, type GetSmartLinkData, type GetSmartLinkSummaryData, type LaunchCampaignData, type ListArtistsData, type ListArtistsSummaryData, type ListAvailableCountriesData, type ListAvailableCountriesSummaryData, type ListCampaignsJsonData, type ListCampaignsSummaryData, type ListMediaAssetsData, type ListMediaAssetsSummaryData, type ListSmartLinksData, type ListSmartLinksSummaryData, type MediaAssetSummary, type MoneyDisplay, PHASE_1_TOOL_DEFINITIONS, PHASE_2_TOOL_DEFINITIONS, PHASE_3_TOOL_DEFINITIONS, PHASE_4_TOOL_DEFINITIONS, type PauseResumeCampaignData, type PauseResumePlatformResult, type Phase3Adapter, type PublishSmartLinkData, type ResultEnvelope, type SearchData, type SearchResultType, type SearchSummaryData, type SmartLinkSettingsData, type SmartLinkSummary, ToolFormatSchema, type UpdateBudgetData, type UpdateSmartLinkArtistSettingsData, type UpdateSmartLinkData, createDynamoiMcpServer, handleMcpHttpRequest, verifyAccessToken };