@dynamoi/mcp 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CAPABILITY_PARITY.md +24 -16
- package/CHANGELOG.md +124 -0
- package/README.md +76 -24
- package/dist/auth/protected-resource.d.ts +12 -1
- package/dist/auth/protected-resource.js +107 -11
- package/dist/consent.d.ts +101 -4
- package/dist/consent.js +83 -11
- package/dist/flow-types.d.ts +72 -3
- package/dist/index.d.ts +15 -6
- package/dist/index.js +2741 -639
- package/dist/readiness-types.d.ts +21 -1
- package/dist/server/about.d.ts +18 -15
- package/dist/server/account-schema.generated.d.ts +62 -0
- package/dist/server/channel-results-schema.d.ts +104 -0
- package/dist/server/create-server.d.ts +41 -30
- package/dist/server/distribution-tools.d.ts +31 -24
- package/dist/server/messaging.d.ts +2 -3
- package/dist/server/openai-tools.d.ts +30 -23
- package/dist/server/output-schemas.d.ts +416 -73
- package/dist/server/shop-tools.d.ts +36 -29
- package/dist/server/smart-link-tools.d.ts +511 -73
- package/dist/server/support-tools.d.ts +88 -0
- package/dist/server/tools.d.ts +753 -223
- package/dist/server/workflow-tools.d.ts +99 -86
- package/dist/server/workspace/data.d.ts +67 -0
- package/dist/server/workspace/tool.d.ts +82 -0
- package/dist/server/youtube-channel-data-schema.d.ts +169 -0
- package/dist/server/youtube-strategy-guide.d.ts +103 -0
- package/dist/transport/http.d.ts +0 -1
- package/dist/types.d.ts +135 -12
- package/dist/version.d.ts +0 -1
- package/dist/youtube-metrics.d.ts +135 -0
- package/dist/youtube-metrics.js +114 -0
- package/package.json +50 -13
- package/server.json +2 -2
- package/dist/auth/protected-resource.d.ts.map +0 -1
- package/dist/auth/protected-resource.js.map +0 -9
- package/dist/chunk-3htwe57a.js +0 -85
- package/dist/chunk-3htwe57a.js.map +0 -10
- package/dist/chunk-n5xmtwjj.js +0 -9
- package/dist/chunk-n5xmtwjj.js.map +0 -10
- package/dist/consent.d.ts.map +0 -1
- package/dist/consent.js.map +0 -9
- package/dist/flow-types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -28
- package/dist/readiness-types.d.ts.map +0 -1
- package/dist/server/about.d.ts.map +0 -1
- package/dist/server/create-server.d.ts.map +0 -1
- package/dist/server/distribution-tools.d.ts.map +0 -1
- package/dist/server/instructions.d.ts +0 -3
- package/dist/server/instructions.d.ts.map +0 -1
- package/dist/server/messaging.d.ts.map +0 -1
- package/dist/server/onboarding-tool-definitions.d.ts +0 -106
- package/dist/server/onboarding-tool-definitions.d.ts.map +0 -1
- package/dist/server/openai-tools.d.ts.map +0 -1
- package/dist/server/output-schemas.d.ts.map +0 -1
- package/dist/server/playbook-resources.d.ts +0 -3
- package/dist/server/playbook-resources.d.ts.map +0 -1
- package/dist/server/prompts.d.ts +0 -3
- package/dist/server/prompts.d.ts.map +0 -1
- package/dist/server/resources.d.ts +0 -4
- package/dist/server/resources.d.ts.map +0 -1
- package/dist/server/shared-schemas.d.ts +0 -14
- package/dist/server/shared-schemas.d.ts.map +0 -1
- package/dist/server/shop-tools.d.ts.map +0 -1
- package/dist/server/smart-link-theme-preview.d.ts +0 -73
- package/dist/server/smart-link-theme-preview.d.ts.map +0 -1
- package/dist/server/smart-link-tools.d.ts.map +0 -1
- package/dist/server/tools.d.ts.map +0 -1
- package/dist/server/workflow-tools.d.ts.map +0 -1
- package/dist/transport/http.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/version.d.ts.map +0 -1
package/CAPABILITY_PARITY.md
CHANGED
|
@@ -2,21 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
## Release truth
|
|
4
4
|
|
|
5
|
-
The
|
|
5
|
+
The current source does **not** implement 100% dashboard,
|
|
6
6
|
iOS, Android and MCP workflow parity. Universal client registration and full
|
|
7
7
|
catalog access are authorization capabilities, not evidence of workflow parity.
|
|
8
8
|
The canonical catalog owner is `getDynamoiToolDefinitions` in
|
|
9
9
|
`src/server/create-server.ts`; do not maintain a second availability registry here.
|
|
10
10
|
|
|
11
|
-
The
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
The full profile serves 37 tools. The directory profile advertises 24 tools:
|
|
12
|
+
22 Dynamoi operations and the OpenAI Connector `search` and `fetch` tools.
|
|
13
|
+
It uses separate directory-only tools for Smart Link description and artist
|
|
14
|
+
settings updates. The prior combined schema remains callable for compatibility
|
|
15
|
+
requests from already-approved clients. On `/mcp`, the host picks the profile
|
|
16
|
+
from the verified OAuth client ID; `/mcp/directory` always serves the directory
|
|
17
|
+
profile. Every other authenticated client on `/mcp` gets the full profile,
|
|
18
|
+
whatever its vendor or client-ID format. Each call still requires its own
|
|
19
|
+
scopes and resource RBAC; the Shop tools also require `dynamoi:mcp.full`.
|
|
20
|
+
Unauthenticated requests get the directory profile, where only discovery
|
|
21
|
+
methods, the public `dynamoi_about` tool and the `dynamoi://about` resource
|
|
22
|
+
work. Everything else is refused.
|
|
20
23
|
|
|
21
24
|
## Implemented boundaries and gaps
|
|
22
25
|
|
|
@@ -24,19 +27,20 @@ only discovery methods, the public `dynamoi_about` tool and the
|
|
|
24
27
|
| --- | --- | --- |
|
|
25
28
|
| Account/artist orientation | Account overview, roster and single-artist reads | Organization invites/roles, full artist settings and account deletion |
|
|
26
29
|
| Smart Links | Spotify ingestion, list/detail, description, artist theme/pixels, per-link analytics and theme previews | Full studio/availability controls, every field, aggregate analytics and promotion request workflow |
|
|
27
|
-
| Campaigns | List/detail, provider analytics, readiness, existing-asset launch, pause/resume and eligible single-provider budgets | Draft state machines, source uploads, creative generation/selection/approval, screening, existing targeting edits and multi-provider budgets |
|
|
28
|
-
| Analytics | Campaign-provider rollups
|
|
30
|
+
| Campaigns | List/detail, provider analytics, readiness, existing-asset launch, YouTube draft inspect/discard, pause/resume and eligible single-provider budgets | Draft state machines, source uploads, creative generation/selection/approval, screening, existing targeting edits and multi-provider budgets |
|
|
31
|
+
| Analytics | Campaign-provider rollups, growth audit (`dynamoi_get_growth_audit`), tracked playlist analytics (`dynamoi_get_playlist_analytics`), streaming audience analytics (`dynamoi_get_audience_analytics`), per-link analytics and observed YouTube channel data (`dynamoi_get_youtube_channel_data`) | Artist-wide Smart Link aggregation |
|
|
29
32
|
| Connections | Meta and YouTube browser OAuth handoffs and status reads | Headless provider login, owner selection or bypass of ownership verification |
|
|
30
33
|
| Distribution | Five scored requirements, application state and explicit adult-attested application submission for manual review | Agreement execution, release intake/catalog, rights/splits, royalties, tax, payout and takedown workflows |
|
|
31
|
-
| Billing and Shop | Managed billing observations; full-profile Shop quote and unpaid Stripe checkout creation | Managed subscription changes, invoice/funding workflows or agent payment settlement. Shop checkout is not a campaign launch or paid order. |
|
|
34
|
+
| Billing and Shop | Managed billing observations and read-only existing-campaign resume funding breakdown (`dynamoi_get_resume_funding`); full-profile Shop quote and unpaid Stripe checkout creation | Managed subscription changes, invoice/funding workflows or agent payment settlement. Shop checkout is not a campaign launch or paid order. |
|
|
32
35
|
|
|
33
36
|
A real campaign launch, budget edit or pause/resume runs the same shared
|
|
34
37
|
backend functions as web and mobile. Operations that need automatic daily card
|
|
35
|
-
funding —
|
|
36
|
-
that require card funding — must carry the funding-consent fields
|
|
38
|
+
funding — launches and budget updates (DAILY or TOTAL), and resumes of
|
|
39
|
+
campaigns that require card funding — must carry the funding-consent fields
|
|
37
40
|
(`authorizeAutomaticDailyFunding` with the exact `acceptedConsentVersion` and
|
|
38
41
|
`acceptedConsentCopyHash`, plus `clientRequestId`) after the user is shown the
|
|
39
|
-
consent copy
|
|
42
|
+
consent copy for the budget type (the TOTAL consent only on a TOTAL budget);
|
|
43
|
+
without them the shared path refuses before any provider call.
|
|
40
44
|
Existing owners retain RBAC, spending authority and idempotency checks. Demo
|
|
41
45
|
responses remain simulations with no provider, billing or campaign effects.
|
|
42
46
|
|
|
@@ -56,3 +60,7 @@ standalone SSE subscription channel and no session resumption. CIMD uses the
|
|
|
56
60
|
`mcp-2026-07-28` metadata profile. Authentication challenges, discovery and
|
|
57
61
|
both protocol eras must still be tested against the deployed edge and origin.
|
|
58
62
|
Do not advertise universal host compatibility without host journey tests.
|
|
63
|
+
|
|
64
|
+
## Read-only workspace
|
|
65
|
+
|
|
66
|
+
`dynamoi_open_workspace` exposes a bounded authorized artist roster and an MCP Apps HTML resource with global/thread entrypoints. The view reads existing campaign and Smart Link records through individually registered directory read tools. Selected context is explicit and bounded; only the selected record and artist IDs, displayed name/status and qualified observed results are shared, with no billing fields, raw records or spend. Host support is capability-detected. The existing theme-preview resource is retained. Composer mentions, settings, file viewers, events and public host acceptance are not implemented or claimed.
|
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,130 @@ and [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.0.3] - 2026-10-21
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **Two access tiers: Full and Middle.** The read-only ceiling for unreviewed clients is removed. Unreviewed clients that sign in on the user's own computer (local loopback) get Full; other unreviewed clients get Middle, which keeps the directory tool catalog and scopes and omits campaign launch, budget and checkout. The package and registry descriptions are rewritten to match.
|
|
15
|
+
|
|
16
|
+
- The README, About text and skill copy describe the two-tier model and the approved pricing.
|
|
17
|
+
|
|
18
|
+
- **TOTAL budgets use the same funding path and consent as the web app.** `dynamoi_launch_campaign`, and `dynamoi_update_campaign` for `resume`, `update_budget` and `update_end_date`, now accept the TOTAL funding consent (`managed-ads-total-daily-v3`, exported from `@dynamoi/mcp/consent`): show the user its copy, then send its version and hash in the new optional `acceptedTotalConsentVersion` and `acceptedTotalConsentCopyHash` fields (the DAILY fields are unchanged). Every budget is funded from credit, then prepaid funds, then the saved card. A DAILY budget refuses the TOTAL consent and the reverse, stale versions are refused, and a TOTAL launch without consent is refused and never charged. The DAILY consent is unchanged.
|
|
19
|
+
|
|
20
|
+
### Removed
|
|
21
|
+
|
|
22
|
+
- Retired the `monetizationQualificationMode` option and readback from `dynamoi_update_campaign`. YouTube goal toggles remain manually editable; existing campaigns retain their current goals.
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
|
|
26
|
+
- **`dynamoi_contact_support`** (full profile). After the user approves the message, an agent can send a support request or feedback (category, subject, message, and optionally the failed tool and error) into the Dynamoi support inbox. Dynamoi attaches the signed-in account and the agent's OAuth client, support replies to the account email, and each account can send five requests a day. It needs only `dynamoi:read`, so read-only clients can report problems, changes no account data, and is omitted from the directory profile. The full profile now has 38 tools.
|
|
27
|
+
- **AdSense in `dynamoi_get_youtube_channel_data`.** The first page additively carries one `adsense` block (with `windowFromDay`, `windowThroughDay`, `windowDays` for the days it covers, and an `adsenseNote`), the figures the Dynamoi dashboard and app show: long-form versus Shorts AdSense revenue and RPM, each campaign's incremental AdSense and earned back versus billed, and country AdSense per ad playback against similar channels. It is estimated, not a payout; building or unavailable states mean unknown, not zero. It is null outside the YouTube Partner Program, on later pages, or when temporarily unavailable.
|
|
28
|
+
|
|
29
|
+
## [1.0.2] - 2026-10-15
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
|
|
33
|
+
- **YouTube metric dictionary.** `@dynamoi/mcp/youtube-metrics` is the single owner of what each YouTube number is, its source field, freshness clock and the claims agents must not make. `dynamoi_get_campaign` `analytics` for YouTube campaigns additively returns `viewsThroughAd` (Google Ads clicks) and `subscribersDirectlyAttributed` (credited by the ad account). `totals.clicks` is unchanged.
|
|
34
|
+
- **Full-profile Smart Link Studio tools.** `dynamoi_update_smart_link_release_settings` sparsely updates one link's release video, destination visibility and description, and `dynamoi_update_smart_link_artist_hub_settings` updates an artist's hub introduction, official profile links and service order. Both reuse the native Studio mutation owners, keep the Smart Link write scope and are omitted from the directory profile; the approved `dynamoi_update_smart_link` schema is unchanged. Full-profile `dynamoi_get_smart_link` additively returns `artistHub` (with `includeArtistSettings=true`) and `releaseSettings` so partial or ambiguous Studio saves can be read back, and the two mutation results carry the same readback; the directory profile is unchanged. The full profile now has 37 tools.
|
|
35
|
+
- **Single-purpose Smart Link update tools.** The directory catalog now advertises separate tools for a link's public description and artist-level theme or pixel settings. The prior `dynamoi_update_smart_link` schema remains in the full catalog and as an exact-name, scope-checked compatibility call for previously approved directory clients; it is omitted from new directory listings.
|
|
36
|
+
- **Views per ad click.** `dynamoi_get_campaign` `channelResults.viewsPerAdClick` is the playlist waterfall signal: channel views divided by ad clicks from campaign analytics, over only the days in the window that have both. It is null when ad clicks are unavailable or no day qualifies.
|
|
37
|
+
- **`dynamoi_get_youtube_channel_data`.** A read-only tool for the artist's observed YouTube channel data, one dataset per call: channel, video, country, traffic source (views YouTube tags `ADVERTISING` versus every other source, which is not organic proof), search term, subscribed status, device, operating system, playback location, content type and the video catalog. Each response lists coverage (days YouTube has not delivered are unknown, never zero), the data lag, and the artist's YouTube campaigns with strategy and dates. It pages with `nextCursor` and refuses a channel that needs reconnecting. It is in the directory profile. The full profile now has 30 tools and the directory profile 19.
|
|
38
|
+
- **Continued views type.** `GetCampaignAnalyticsJsonData` now declares `adNetworkReportedContinuedViews`, matching the runtime output.
|
|
39
|
+
- **Continued views.** Campaign analytics for YouTube campaigns (`dynamoi_get_campaign` `analytics`) add `adNetworkReportedContinuedViews`: organic views directly attributed, meaning the follow-on views the ad account credits to the campaign by click date. The credit stays provisional for two days. Whether it includes the first watch after the click is unconfirmed, and it is not YouTube's channel view count.
|
|
40
|
+
- **`dynamoi_manage_youtube_draft`** (full profile). Inspect an artist's open
|
|
41
|
+
YouTube draft after an interrupted launch, or discard it when the user
|
|
42
|
+
explicitly asks. Discard requires `expectedUpdatedAt` from inspect and
|
|
43
|
+
cannot be undone.
|
|
44
|
+
- **`.mcp.json`** at the repository root, so clients and directories that
|
|
45
|
+
read it can connect to `https://dynamoi.com/mcp`.
|
|
46
|
+
|
|
47
|
+
### Changed
|
|
48
|
+
|
|
49
|
+
- Publish map-free artifacts with an exact file allowlist (#7717).
|
|
50
|
+
|
|
51
|
+
- **YouTube strategy names.** The strategies are now labeled Views, Watch Time,
|
|
52
|
+
Subscribers, Channel Growth and Revenue (formerly Maximize Views, Organic
|
|
53
|
+
Views, Subscriber Growth, Organic Views & Subscribers and Revenue
|
|
54
|
+
Optimization) in tool descriptions, the strategy guide and the About text.
|
|
55
|
+
The enum values (`CHEAPEST_VIEWS`, `ORGANIC_VIEWS`, `SUBSCRIBERS`,
|
|
56
|
+
`ORGANIC_VIEWS_AND_SUBSCRIBERS`, `ADSENSE_ROI`) are unchanged.
|
|
57
|
+
- **`update_goals` keeps the strategy in step.** `dynamoi_update_campaign`
|
|
58
|
+
`update_goals` now stores the matching goal-based strategy
|
|
59
|
+
(Watch Time, Subscribers or Channel Growth) with the new goals and returns it
|
|
60
|
+
as `strategy` (null when it is unchanged); Revenue and Views campaigns keep
|
|
61
|
+
their strategy. The change is
|
|
62
|
+
recorded in the campaign's strategy history, and archived campaigns are
|
|
63
|
+
refused.
|
|
64
|
+
- **Analytics spend in the artist's currency.** `dynamoi_get_campaign_analytics`, `dynamoi_get_artist_analytics` and `dynamoi_get_campaign` `analytics` now show spend, CPC and CPM in the artist's currency. USD artists are unchanged. When an amount cannot be shown in the artist's currency, `spend`, `cpc` and `cpm` are `null` (rendered as an em dash in summaries) with one warning; impressions, clicks and CTR are unaffected. The `spend` fields of `GetArtistAnalyticsJsonData` are now typed `MoneyDisplay | null`, as the campaign type already declared.
|
|
65
|
+
- **Honest view labels for YouTube campaigns.** YouTube credits ad clicks that
|
|
66
|
+
land in a playlist mostly to PLAYLIST and SUBSCRIBER, not ADVERTISING, so
|
|
67
|
+
"everything but ADVERTISING is organic" counted ad sessions as organic.
|
|
68
|
+
`dynamoi_get_campaign` `channelResults.trafficSources` now reports
|
|
69
|
+
`advertisingSourceViews` (YouTube-tagged ADVERTISING) and `otherSourceViews`
|
|
70
|
+
instead of `paidViews` and `organicViews`, and the summary says other-source
|
|
71
|
+
views are not organic proof. The strategy guide separates campaign-period
|
|
72
|
+
lift (views above the pre-campaign baseline, mostly ad sessions) from
|
|
73
|
+
organic lift (growth in sources the ads do not touch, or lift that persists
|
|
74
|
+
after spend stops), and says neither YouTube traffic sources nor the ad
|
|
75
|
+
network's continued views are organic proof. Server instructions use the
|
|
76
|
+
same vocabulary. The `trafficClass` row field of `dynamoi_get_youtube_channel_data`
|
|
77
|
+
is unchanged, but its description now says `organic` only groups sources.
|
|
78
|
+
- **"The ad network" vocabulary.** Server instructions and the YouTube
|
|
79
|
+
strategy guide now tell agents to say "the ad network" when reporting to
|
|
80
|
+
users (Google may be named once; do not repeat "Google Ads"). Summary text
|
|
81
|
+
shows the Google platform as "Ad network" and the geo target ID column as
|
|
82
|
+
"Geo Target ID". Enum values, field names and JSON keys are unchanged.
|
|
83
|
+
|
|
84
|
+
### Fixed
|
|
85
|
+
|
|
86
|
+
- **Bounded observer.** A hung `onToolCall` observer no longer delays a tool
|
|
87
|
+
result. The server waits up to `observerTimeoutMs` (default 3000) and then
|
|
88
|
+
answers, absorbing any late rejection. Observer failures still never change
|
|
89
|
+
the result.
|
|
90
|
+
- **Directory catalog count.** The README now states the directory profile's
|
|
91
|
+
19 tools (17 Dynamoi tools plus `search` and `fetch`).
|
|
92
|
+
- **YouTube budget minimum.** The server instructions said agents could
|
|
93
|
+
launch a YouTube campaign with a $50 total budget. The enforced minimum is
|
|
94
|
+
$75 total.
|
|
95
|
+
|
|
96
|
+
### Changed
|
|
97
|
+
|
|
98
|
+
- **Daily funding consent v6.** The consent constants are now
|
|
99
|
+
`managed-ads-prospective-daily-v6` with one-sentence copy and a new hash:
|
|
100
|
+
"Charge my default payment method daily for this campaign's budget, until
|
|
101
|
+
I pause or end it." The rest of the charging terms are the Terms of Service
|
|
102
|
+
section on automatic daily charges, as for total budgets; the funding terms
|
|
103
|
+
are unchanged. `dynamoi_launch_campaign` and `dynamoi_update_campaign`
|
|
104
|
+
(`resume` and `update_budget`) refuse the v5, v4, v3 and v2 values, so
|
|
105
|
+
clients pinned to them must update. The v5 constants are exported as
|
|
106
|
+
`PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_*`. Campaigns that accepted v2, v3,
|
|
107
|
+
v4 or v5 keep renewing under the consent they accepted.
|
|
108
|
+
- **Daily funding consent v5.** The consent constants are now
|
|
109
|
+
`managed-ads-prospective-daily-v5`. The copy drops the funding time zone;
|
|
110
|
+
the funding terms are unchanged and get a new hash. `dynamoi_launch_campaign` and `dynamoi_update_campaign` (`resume`
|
|
111
|
+
and `update_budget`) refuse the v4, v3 and v2 values, so clients pinned to
|
|
112
|
+
them must update. The v4 constants are exported as
|
|
113
|
+
`PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_*`. Campaigns that accepted v2, v3
|
|
114
|
+
or v4 keep renewing under the consent they accepted.
|
|
115
|
+
- **Daily funding consent v4.** The consent constants are now
|
|
116
|
+
`managed-ads-prospective-daily-v4` with shorter copy and a new hash. The
|
|
117
|
+
copy names the payment method, says credits and campaign funds apply first,
|
|
118
|
+
and says unused funds stay available. The funding terms are unchanged from
|
|
119
|
+
v3. `dynamoi_launch_campaign` and
|
|
120
|
+
`dynamoi_update_campaign` (`resume` and `update_budget`) refuse the v3 and
|
|
121
|
+
v2 values, so clients pinned to them must update. The v3 constants are
|
|
122
|
+
exported as `PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_*`. Campaigns that
|
|
123
|
+
accepted v2 or v3 keep renewing under the consent they accepted.
|
|
124
|
+
`isCurrentProspectiveBudgetFundingConsent` reports whether a submitted
|
|
125
|
+
version and hash are exactly the current pair.
|
|
126
|
+
- **Daily funding consent v3.** The consent constants are now
|
|
127
|
+
`managed-ads-prospective-daily-v3` with new copy and hash. A launch or resume
|
|
128
|
+
of a `DAILY` campaign funds the rest of today and all of tomorrow in
|
|
129
|
+
one charge, then each following day up to one hour before it starts. `dynamoi_launch_campaign` and `dynamoi_update_campaign` (`resume`
|
|
130
|
+
and `update_budget`) refuse the v2 values, so clients pinned to v2 must
|
|
131
|
+
update. Campaigns that accepted v2 keep renewing under v2.
|
|
132
|
+
- **Channel results.** `dynamoi_get_campaign` `channelResults` gains a `pending` status for windows YouTube has not delivered yet, reporting the day loaded data runs through instead of zeros.
|
|
133
|
+
|
|
10
134
|
## [1.0.1] - 2026-09-23
|
|
11
135
|
|
|
12
136
|
### Changed
|
package/README.md
CHANGED
|
@@ -8,12 +8,10 @@
|
|
|
8
8
|
[](https://cursor.com/install-mcp?name=dynamoi&config=eyJ1cmwiOiJodHRwczovL2R5bmFtb2kuY29tL21jcCJ9)
|
|
9
9
|
[](https://insiders.vscode.dev/redirect/mcp/install?name=dynamoi&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fdynamoi.com%2Fmcp%22%7D)
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
check platform status, and apply for music distribution. Use the hosted MCP
|
|
16
|
-
server, or use this package as a library.
|
|
11
|
+
Full-service music distribution and promotion from your AI agent. Connect
|
|
12
|
+
Claude, ChatGPT, Codex or Cursor to check results, manage releases and Smart
|
|
13
|
+
Links, and, where your assistant allows purchases, launch Spotify and YouTube
|
|
14
|
+
campaigns. Use the hosted MCP server, or use this package as a library.
|
|
17
15
|
|
|
18
16
|
```txt
|
|
19
17
|
https://dynamoi.com/mcp
|
|
@@ -50,8 +48,9 @@ assisted by AI. People make the decisions and are accountable for every
|
|
|
50
48
|
campaign and support reply. AI helps with ad creative, campaign monitoring,
|
|
51
49
|
reporting, and routine tasks.
|
|
52
50
|
|
|
53
|
-
Smart Links are free. Starter is $25/month
|
|
54
|
-
|
|
51
|
+
Smart Links are free. Starter is $25/month per artist, and your plan
|
|
52
|
+
price becomes ad credit. Eligible new artists get double credit the first month.
|
|
53
|
+
Campaign budgets start at $10/day. See
|
|
55
54
|
[pricing](https://dynamoi.com/pricing).
|
|
56
55
|
|
|
57
56
|
Agents can read the same overview before sign-in through the `dynamoi_about`
|
|
@@ -145,6 +144,23 @@ Or add the server to `~/.codex/config.toml` and run `codex mcp login dynamoi`:
|
|
|
145
144
|
url = "https://dynamoi.com/mcp"
|
|
146
145
|
```
|
|
147
146
|
|
|
147
|
+
### OpenClaw
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
openclaw mcp add dynamoi --url https://dynamoi.com/mcp --transport streamable-http --auth oauth \
|
|
151
|
+
--oauth-client-metadata-url https://dynamoi.com/api/oauth/clients/openclaw \
|
|
152
|
+
--oauth-scope "offline_access dynamoi:read dynamoi:mcp.full dynamoi:billing.read dynamoi:campaign.launch dynamoi:campaign.write dynamoi:distribution.apply dynamoi:distribution.read dynamoi:platform.read dynamoi:platform.write dynamoi:smart_links.write"
|
|
153
|
+
openclaw mcp login dynamoi
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
The metadata URL is Dynamoi's reviewed client document for OpenClaw, which
|
|
157
|
+
recognizes OpenClaw by its published identity. OpenClaw gets Full access with
|
|
158
|
+
or without it, because it signs in on your own computer.
|
|
159
|
+
|
|
160
|
+
The [`dynamoi` skill](./skills/dynamoi/SKILL.md) teaches OpenClaw agents the
|
|
161
|
+
Dynamoi workflows and safety rules. Install it from ClawHub with
|
|
162
|
+
`openclaw skills install @getdynamoi/dynamoi`.
|
|
163
|
+
|
|
148
164
|
### Other MCP clients
|
|
149
165
|
|
|
150
166
|
Use `https://dynamoi.com/mcp` as a remote Streamable HTTP server. The client
|
|
@@ -153,13 +169,17 @@ need a remote-to-stdio bridge.
|
|
|
153
169
|
|
|
154
170
|
## Which tools a client sees
|
|
155
171
|
|
|
156
|
-
|
|
157
|
-
|
|
172
|
+
Every client gets one of two tiers. The server picks it from the identity the
|
|
173
|
+
OAuth client signs in with, not from anything the client claims about itself.
|
|
158
174
|
|
|
159
|
-
|
|
|
175
|
+
| Tier | Who gets it | What it includes |
|
|
160
176
|
| --- | --- | --- |
|
|
161
|
-
| **
|
|
162
|
-
| **
|
|
177
|
+
| **Full** | Reviewed clients (Codex CLI, Claude on the web or desktop and Claude Code, OpenClaw via Dynamoi's client document) and any app that signs in on your own computer (loopback or `https://vscode.dev/redirect` return addresses, no device code), such as Claude Code, Codex, OpenClaw, Cursor, VS Code and Gemini CLI | All 38 tools, plus the Dynamoi prompts and reference resources, including campaign launches, budget changes and Shop checkout links |
|
|
178
|
+
| **Directory** | ChatGPT, Claude added from the directory listing (`https://dynamoi.com/mcp/directory`), unreviewed web apps, device-code sign-ins and requests made before sign-in | 24 review-safe advertised tools: reads, Smart Links, distribution and About. No billing, campaign launch or changes, platform connection starters, or Shop checkout, and the scopes they need are never granted. |
|
|
179
|
+
|
|
180
|
+
Seeing a tool is not permission to call it. A Full client can approve every
|
|
181
|
+
scope for its tools; a Directory client is never granted the scopes that Full
|
|
182
|
+
tools need, so those calls are refused.
|
|
163
183
|
|
|
164
184
|
Signing in does not skip permission checks. Every tool call still needs its
|
|
165
185
|
OAuth scopes, and the user's role must allow access to the artist, campaign,
|
|
@@ -173,6 +193,7 @@ start an action with an outside provider.
|
|
|
173
193
|
| Tool | What it does | Access | Catalog |
|
|
174
194
|
| --- | --- | --- | --- |
|
|
175
195
|
| `dynamoi_about` | What Dynamoi is and how to start. Works before sign-in. | Reads | Both |
|
|
196
|
+
| `dynamoi_open_workspace` | Open a read-only workspace for the authorized artist roster; supported hosts can browse campaigns and Smart Links | Reads | Both |
|
|
176
197
|
| `dynamoi_get_account_overview` | Signed-in account, access counts and suggested next steps | Reads | Both |
|
|
177
198
|
| `dynamoi_list_artists` | Artist roster, or one artist's profile and readiness | Reads | Both |
|
|
178
199
|
| `dynamoi_search` | Find artists, campaigns, and Smart Links by name | Reads | Both |
|
|
@@ -180,6 +201,10 @@ start an action with an outside provider.
|
|
|
180
201
|
| `dynamoi_list_campaigns` | An artist's campaigns, with type and status filters | Reads | Both |
|
|
181
202
|
| `dynamoi_get_campaign` | One campaign, with optional analytics, delivery status, and countries | Reads | Both |
|
|
182
203
|
| `dynamoi_get_artist_analytics` | Artist-level analytics across campaigns | Reads | Both |
|
|
204
|
+
| `dynamoi_get_growth_audit` | Spotify growth score, recommendations, listener trends, and playlist reach with status and coverage evidence | Reads | Both |
|
|
205
|
+
| `dynamoi_get_playlist_analytics` | Tracked playlist placements, reach, and movement with freshness and snapshot dates | Reads | Both |
|
|
206
|
+
| `dynamoi_get_audience_analytics` | Streaming audience by date range, country, service, and paid/free tier | Reads | Both |
|
|
207
|
+
| `dynamoi_get_youtube_channel_data` | Observed YouTube channel data by dataset, with coverage and campaign dates | Reads | Both |
|
|
183
208
|
| `dynamoi_get_platform_status` | Spotify, Meta, and YouTube connection status and setup blockers | Reads | Both |
|
|
184
209
|
| `dynamoi_get_distribution_application` | The five distribution requirements and application status | Reads | Both |
|
|
185
210
|
| `dynamoi_apply_for_distribution` | Submit a distribution application for manual review | Changes data | Both |
|
|
@@ -188,21 +213,38 @@ start an action with an outside provider.
|
|
|
188
213
|
| `dynamoi_create_smart_links_from_spotify_artist` | Import an artist's catalog as free Smart Links and return the artist hub | Changes data | Both |
|
|
189
214
|
| `dynamoi_list_smart_links` | An artist's Smart Links and public URLs | Reads | Both |
|
|
190
215
|
| `dynamoi_get_smart_link` | One Smart Link, with optional analytics and artist settings | Reads | Both |
|
|
191
|
-
| `
|
|
216
|
+
| `dynamoi_update_smart_link_description` | Update one Smart Link's public description | Changes data | Directory |
|
|
217
|
+
| `dynamoi_update_smart_link_artist_settings` | Update an artist's Smart Link theme or validated pixel settings | Changes data | Directory |
|
|
218
|
+
| `dynamoi_update_smart_link` | Prior multi-action schema for description or artist settings | Changes data | Full |
|
|
219
|
+
| `dynamoi_update_smart_link_release_settings` | Update one Smart Link's release video or destination visibility | Changes data | Full |
|
|
220
|
+
| `dynamoi_update_smart_link_artist_hub_settings` | Update an artist's hub introduction, official profile links or service order | Changes data | Full |
|
|
192
221
|
| `dynamoi_get_billing` | Billing status, credit balance, and promo limits | Reads | Full |
|
|
222
|
+
| `dynamoi_get_resume_funding` | Campaign resume-funding breakdown, refusal, and consent requirements | Reads | Full |
|
|
193
223
|
| `dynamoi_list_available_countries` | Countries a Smart Campaign or YouTube campaign can target | Reads | Full |
|
|
194
224
|
| `dynamoi_get_campaign_readiness` | Check launch inputs before creating anything | Reads | Full |
|
|
195
225
|
| `dynamoi_list_media_assets` | Uploaded images and videos that a launch can reuse | Reads | Full |
|
|
196
226
|
| `dynamoi_launch_campaign` | Launch a Smart Campaign or YouTube campaign | Changes data | Full |
|
|
197
227
|
| `dynamoi_update_campaign` | Pause, resume, or change a campaign's budget or end date | Changes data | Full |
|
|
228
|
+
| `dynamoi_manage_youtube_draft` | Inspect an interrupted YouTube launch draft, or discard it when the user asks | Changes data | Full |
|
|
198
229
|
| `dynamoi_start_meta_connection` | Start the Facebook Page and Instagram connection in the browser | Changes data | Full |
|
|
199
230
|
| `dynamoi_start_youtube_channel_link` | Start the YouTube channel connection in the browser | Changes data | Full |
|
|
231
|
+
| `dynamoi_contact_support` | Send a support request or feedback to Dynamoi | Changes data | Full |
|
|
200
232
|
| `dynamoi_shop_get_quote` | Estimate a one-off YouTube promotion | Reads | Full |
|
|
201
233
|
| `dynamoi_shop_create_checkout` | Create an unpaid Stripe Checkout link for that promotion | Changes data | Full |
|
|
202
234
|
|
|
203
235
|
Full tool descriptions and input schemas come from `tools/list`, or from
|
|
204
236
|
`getDynamoiToolDefinitions()` in this package.
|
|
205
237
|
|
|
238
|
+
The full-only Studio tools (`dynamoi_update_smart_link_release_settings` and
|
|
239
|
+
`dynamoi_update_smart_link_artist_hub_settings`) are not part of the approved
|
|
240
|
+
directory contract and are never listed in the directory profile.
|
|
241
|
+
|
|
242
|
+
Previously approved directory clients may continue calling the exact
|
|
243
|
+
`dynamoi_update_smart_link` name with its approved schema. New directory tool
|
|
244
|
+
lists omit that compatibility handler and advertise the two single-purpose
|
|
245
|
+
operations above. Compatibility calls keep the same Smart Link write scope,
|
|
246
|
+
confirmation, account, and domain checks.
|
|
247
|
+
|
|
206
248
|
## Money and safety
|
|
207
249
|
|
|
208
250
|
- **Smart Links are free.** Creating or updating them never charges anyone.
|
|
@@ -211,16 +253,18 @@ Full tool descriptions and input schemas come from `tools/list`, or from
|
|
|
211
253
|
web and mobile apps: permissions, promo limits, and repeat-request
|
|
212
254
|
protection. Whether a person approves each call is up to the MCP client's
|
|
213
255
|
tool-approval settings, so keep approval on for tools that change data.
|
|
214
|
-
- **
|
|
215
|
-
funded one
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
`
|
|
220
|
-
|
|
221
|
-
|
|
256
|
+
- **Every budget needs the user's funding consent.** A `DAILY` or `TOTAL`
|
|
257
|
+
budget is funded one window at a time: available credits and campaign funds
|
|
258
|
+
first, then the card the user saved in Dynamoi is charged automatically (a
|
|
259
|
+
`TOTAL` budget never beyond its total). The agent must show the user the exact
|
|
260
|
+
consent text for the budget type, then send, for `DAILY`,
|
|
261
|
+
`authorizeAutomaticDailyFunding: true` with `acceptedConsentVersion` and
|
|
262
|
+
`acceptedConsentCopyHash`, or, for `TOTAL`, `acceptedTotalConsentVersion` and
|
|
263
|
+
`acceptedTotalConsentCopyHash`. This applies to
|
|
264
|
+
launches, budget updates, and resumes that need card funding. A `DAILY`
|
|
265
|
+
budget refuses the `TOTAL` consent and the reverse; without consent the
|
|
266
|
+
request is refused and never charged. The consent values are exported from
|
|
222
267
|
`@dynamoi/mcp/consent`.
|
|
223
|
-
- **Total budgets use existing credit** and need no funding consent.
|
|
224
268
|
- **Agents never handle payment credentials.** Subscriptions, plans, and
|
|
225
269
|
billing setup happen only in the [Dynamoi dashboard](https://dynamoi.com/dashboard),
|
|
226
270
|
where subscriptions start through hosted Stripe Checkout. No tool starts a
|
|
@@ -292,7 +336,7 @@ The package is ESM-only and built on MCP TypeScript SDK v2
|
|
|
292
336
|
| --- | --- |
|
|
293
337
|
| `@dynamoi/mcp` | `createDynamoiMcpServer`, `handleMcpHttpRequest`, `getDynamoiToolDefinitions`, `DynamoiMcpToolProfile`, `Phase3Adapter`, tool definition arrays and input schemas, Shop schemas, About exports (`getDynamoiAbout`, `DYNAMOI_ABOUT_*`), result and data types, `DYNAMOI_MCP_VERSION` |
|
|
294
338
|
| `@dynamoi/mcp/auth` | `DYNAMOI_BETTER_AUTH_MCP_SCOPES`, `DYNAMOI_MCP_TOOL_SCOPES`, `buildWwwAuthenticateHeader` |
|
|
295
|
-
| `@dynamoi/mcp/consent` | `PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION`, `PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY`, `PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH` |
|
|
339
|
+
| `@dynamoi/mcp/consent` | `PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION`, `PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY`, `PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH` (current v6), the previous v5, v4, v3 and v2 constants, `isCurrentProspectiveBudgetFundingConsent`, and `isRenewableProspectiveBudgetFundingConsent` |
|
|
296
340
|
|
|
297
341
|
A host provides a `Phase3Adapter`, which connects each tool to its own
|
|
298
342
|
services. It also verifies the caller before it serves a request:
|
|
@@ -346,3 +390,11 @@ per-request transport.
|
|
|
346
390
|
| Capability map | [CAPABILITY_PARITY.md](./CAPABILITY_PARITY.md) |
|
|
347
391
|
|
|
348
392
|
MIT licensed. See [LICENSE](./LICENSE).
|
|
393
|
+
|
|
394
|
+
## Artist workspace
|
|
395
|
+
|
|
396
|
+
`dynamoi_open_workspace({})` returns an authorized artist roster and declares a read-only MCP Apps resource with global and thread entrypoints. On supported hosts, browse campaigns and Smart Links, inspect reported metrics, and deliberately share the selected record and artist references with the next conversation turn. Channel observations retain their own window, provenance and coverage; they are not attributed to the campaign. No pricing, checkout or campaign-write controls appear in this workspace. Unsupported hosts retain the ordinary text and tool result.
|
|
397
|
+
|
|
398
|
+
The existing Smart Link theme preview remains separate. Composer mentions, settings, file viewers and events are not advertised. Local App/AppBridge fixtures establish their tested contract only; actual ChatGPT host support and public approval require separate evidence.
|
|
399
|
+
|
|
400
|
+
The browser bridge is bundled locally with the compatible MCP Apps v2 SDK; no CDN is needed. `bun scripts/build-workspace.cjs` regenerates the checked-in source bundle and `bun scripts/build-workspace.cjs --check` verifies reproducibility from the package directory. The ordinary package build runs the same owner. Keep the generated script synchronized with its browser/view/data sources.
|
|
@@ -2,22 +2,30 @@ export declare const DYNAMOI_BETTER_AUTH_MCP_SCOPES: readonly ["dynamoi:read", "
|
|
|
2
2
|
export declare const DYNAMOI_MCP_TOOL_SCOPES: {
|
|
3
3
|
readonly dynamoi_about: readonly [];
|
|
4
4
|
readonly dynamoi_apply_for_distribution: readonly ["dynamoi:read", "dynamoi:distribution.apply"];
|
|
5
|
+
readonly dynamoi_contact_support: readonly ["dynamoi:read"];
|
|
5
6
|
readonly dynamoi_create_smart_link_from_spotify: readonly ["dynamoi:read", "dynamoi:smart_links.write"];
|
|
6
7
|
readonly dynamoi_create_smart_links_from_spotify_artist: readonly ["dynamoi:read", "dynamoi:smart_links.write"];
|
|
7
8
|
readonly dynamoi_get_account_overview: readonly ["dynamoi:read"];
|
|
8
9
|
readonly dynamoi_get_artist_analytics: readonly ["dynamoi:read"];
|
|
10
|
+
readonly dynamoi_get_audience_analytics: readonly ["dynamoi:read"];
|
|
9
11
|
readonly dynamoi_get_billing: readonly ["dynamoi:read", "dynamoi:billing.read"];
|
|
10
12
|
readonly dynamoi_get_campaign: readonly ["dynamoi:read"];
|
|
11
13
|
readonly dynamoi_get_campaign_readiness: readonly ["dynamoi:read"];
|
|
12
14
|
readonly dynamoi_get_distribution_application: readonly ["dynamoi:read", "dynamoi:distribution.read"];
|
|
15
|
+
readonly dynamoi_get_growth_audit: readonly ["dynamoi:read"];
|
|
13
16
|
readonly dynamoi_get_platform_status: readonly ["dynamoi:read", "dynamoi:platform.read"];
|
|
17
|
+
readonly dynamoi_get_playlist_analytics: readonly ["dynamoi:read"];
|
|
18
|
+
readonly dynamoi_get_resume_funding: readonly ["dynamoi:read", "dynamoi:billing.read"];
|
|
14
19
|
readonly dynamoi_get_smart_link: readonly ["dynamoi:read"];
|
|
20
|
+
readonly dynamoi_get_youtube_channel_data: readonly ["dynamoi:read"];
|
|
15
21
|
readonly dynamoi_launch_campaign: readonly ["dynamoi:read", "dynamoi:campaign.launch"];
|
|
16
22
|
readonly dynamoi_list_artists: readonly ["dynamoi:read"];
|
|
17
23
|
readonly dynamoi_list_available_countries: readonly ["dynamoi:read"];
|
|
18
24
|
readonly dynamoi_list_campaigns: readonly ["dynamoi:read"];
|
|
19
25
|
readonly dynamoi_list_media_assets: readonly ["dynamoi:read"];
|
|
20
26
|
readonly dynamoi_list_smart_links: readonly ["dynamoi:read"];
|
|
27
|
+
readonly dynamoi_manage_youtube_draft: readonly ["dynamoi:read", "dynamoi:campaign.write"];
|
|
28
|
+
readonly dynamoi_open_workspace: readonly ["dynamoi:read"];
|
|
21
29
|
readonly dynamoi_preview_smart_link_themes: readonly ["dynamoi:read"];
|
|
22
30
|
readonly dynamoi_search: readonly ["dynamoi:read"];
|
|
23
31
|
readonly dynamoi_shop_create_checkout: readonly ["dynamoi:read", "dynamoi:mcp.full"];
|
|
@@ -26,6 +34,10 @@ export declare const DYNAMOI_MCP_TOOL_SCOPES: {
|
|
|
26
34
|
readonly dynamoi_start_youtube_channel_link: readonly ["dynamoi:read", "dynamoi:platform.write"];
|
|
27
35
|
readonly dynamoi_update_campaign: readonly ["dynamoi:read", "dynamoi:campaign.write"];
|
|
28
36
|
readonly dynamoi_update_smart_link: readonly ["dynamoi:read", "dynamoi:smart_links.write"];
|
|
37
|
+
readonly dynamoi_update_smart_link_artist_hub_settings: readonly ["dynamoi:read", "dynamoi:smart_links.write"];
|
|
38
|
+
readonly dynamoi_update_smart_link_artist_settings: readonly ["dynamoi:read", "dynamoi:smart_links.write"];
|
|
39
|
+
readonly dynamoi_update_smart_link_description: readonly ["dynamoi:read", "dynamoi:smart_links.write"];
|
|
40
|
+
readonly dynamoi_update_smart_link_release_settings: readonly ["dynamoi:read", "dynamoi:smart_links.write"];
|
|
29
41
|
readonly fetch: readonly ["dynamoi:read"];
|
|
30
42
|
readonly search: readonly ["dynamoi:read"];
|
|
31
43
|
};
|
|
@@ -35,4 +47,3 @@ export declare function buildWwwAuthenticateHeader(options: {
|
|
|
35
47
|
error?: "insufficient_scope" | "invalid_token";
|
|
36
48
|
scope?: string;
|
|
37
49
|
}): string;
|
|
38
|
-
//# sourceMappingURL=protected-resource.d.ts.map
|
|
@@ -1,13 +1,109 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
// src/auth/protected-resource.ts
|
|
2
|
+
var DYNAMOI_BETTER_AUTH_MCP_SCOPES = [
|
|
3
|
+
"dynamoi:read",
|
|
4
|
+
"dynamoi:mcp.full",
|
|
5
|
+
"dynamoi:billing.read",
|
|
6
|
+
"dynamoi:campaign.launch",
|
|
7
|
+
"dynamoi:campaign.write",
|
|
8
|
+
"dynamoi:distribution.apply",
|
|
9
|
+
"dynamoi:distribution.read",
|
|
10
|
+
"dynamoi:platform.read",
|
|
11
|
+
"dynamoi:platform.write",
|
|
12
|
+
"dynamoi:smart_links.write"
|
|
13
|
+
];
|
|
14
|
+
var DYNAMOI_MCP_TOOL_SCOPES = {
|
|
15
|
+
dynamoi_about: [],
|
|
16
|
+
dynamoi_apply_for_distribution: [
|
|
17
|
+
"dynamoi:read",
|
|
18
|
+
"dynamoi:distribution.apply"
|
|
19
|
+
],
|
|
20
|
+
dynamoi_contact_support: ["dynamoi:read"],
|
|
21
|
+
dynamoi_create_smart_link_from_spotify: [
|
|
22
|
+
"dynamoi:read",
|
|
23
|
+
"dynamoi:smart_links.write"
|
|
24
|
+
],
|
|
25
|
+
dynamoi_create_smart_links_from_spotify_artist: [
|
|
26
|
+
"dynamoi:read",
|
|
27
|
+
"dynamoi:smart_links.write"
|
|
28
|
+
],
|
|
29
|
+
dynamoi_get_account_overview: ["dynamoi:read"],
|
|
30
|
+
dynamoi_get_artist_analytics: ["dynamoi:read"],
|
|
31
|
+
dynamoi_get_audience_analytics: ["dynamoi:read"],
|
|
32
|
+
dynamoi_get_billing: ["dynamoi:read", "dynamoi:billing.read"],
|
|
33
|
+
dynamoi_get_campaign: ["dynamoi:read"],
|
|
34
|
+
dynamoi_get_campaign_readiness: ["dynamoi:read"],
|
|
35
|
+
dynamoi_get_distribution_application: [
|
|
36
|
+
"dynamoi:read",
|
|
37
|
+
"dynamoi:distribution.read"
|
|
38
|
+
],
|
|
39
|
+
dynamoi_get_growth_audit: ["dynamoi:read"],
|
|
40
|
+
dynamoi_get_platform_status: ["dynamoi:read", "dynamoi:platform.read"],
|
|
41
|
+
dynamoi_get_playlist_analytics: ["dynamoi:read"],
|
|
42
|
+
dynamoi_get_resume_funding: ["dynamoi:read", "dynamoi:billing.read"],
|
|
43
|
+
dynamoi_get_smart_link: ["dynamoi:read"],
|
|
44
|
+
dynamoi_get_youtube_channel_data: ["dynamoi:read"],
|
|
45
|
+
dynamoi_launch_campaign: ["dynamoi:read", "dynamoi:campaign.launch"],
|
|
46
|
+
dynamoi_list_artists: ["dynamoi:read"],
|
|
47
|
+
dynamoi_list_available_countries: ["dynamoi:read"],
|
|
48
|
+
dynamoi_list_campaigns: ["dynamoi:read"],
|
|
49
|
+
dynamoi_list_media_assets: ["dynamoi:read"],
|
|
50
|
+
dynamoi_list_smart_links: ["dynamoi:read"],
|
|
51
|
+
dynamoi_manage_youtube_draft: ["dynamoi:read", "dynamoi:campaign.write"],
|
|
52
|
+
dynamoi_open_workspace: ["dynamoi:read"],
|
|
53
|
+
dynamoi_preview_smart_link_themes: ["dynamoi:read"],
|
|
54
|
+
dynamoi_search: ["dynamoi:read"],
|
|
55
|
+
dynamoi_shop_create_checkout: ["dynamoi:read", "dynamoi:mcp.full"],
|
|
56
|
+
dynamoi_shop_get_quote: ["dynamoi:read", "dynamoi:mcp.full"],
|
|
57
|
+
dynamoi_start_meta_connection: ["dynamoi:read", "dynamoi:platform.write"],
|
|
58
|
+
dynamoi_start_youtube_channel_link: [
|
|
59
|
+
"dynamoi:read",
|
|
60
|
+
"dynamoi:platform.write"
|
|
61
|
+
],
|
|
62
|
+
dynamoi_update_campaign: ["dynamoi:read", "dynamoi:campaign.write"],
|
|
63
|
+
dynamoi_update_smart_link: ["dynamoi:read", "dynamoi:smart_links.write"],
|
|
64
|
+
dynamoi_update_smart_link_artist_hub_settings: [
|
|
65
|
+
"dynamoi:read",
|
|
66
|
+
"dynamoi:smart_links.write"
|
|
67
|
+
],
|
|
68
|
+
dynamoi_update_smart_link_artist_settings: [
|
|
69
|
+
"dynamoi:read",
|
|
70
|
+
"dynamoi:smart_links.write"
|
|
71
|
+
],
|
|
72
|
+
dynamoi_update_smart_link_description: [
|
|
73
|
+
"dynamoi:read",
|
|
74
|
+
"dynamoi:smart_links.write"
|
|
75
|
+
],
|
|
76
|
+
dynamoi_update_smart_link_release_settings: [
|
|
77
|
+
"dynamoi:read",
|
|
78
|
+
"dynamoi:smart_links.write"
|
|
79
|
+
],
|
|
80
|
+
fetch: ["dynamoi:read"],
|
|
81
|
+
search: ["dynamoi:read"]
|
|
82
|
+
};
|
|
83
|
+
function buildWwwAuthenticateHeader(options) {
|
|
84
|
+
const scope = options.scope ?? "dynamoi:read";
|
|
85
|
+
const params = [
|
|
86
|
+
`resource_metadata="${escapeHeaderValue(options.resourceMetadataUrl)}"`,
|
|
87
|
+
`scope="${escapeHeaderValue(scope)}"`
|
|
88
|
+
];
|
|
89
|
+
if (options.error) {
|
|
90
|
+
const errorDescription = options.errorDescription ?? (options.error === "insufficient_scope" ? "Additional Dynamoi permissions are required." : "Sign in to Dynamoi to continue.");
|
|
91
|
+
params.push(`error="${escapeHeaderValue(options.error)}"`, `error_description="${escapeHeaderValue(errorDescription)}"`);
|
|
92
|
+
}
|
|
93
|
+
return `Bearer ${params.join(", ")}`;
|
|
94
|
+
}
|
|
95
|
+
function escapeHeaderValue(value) {
|
|
96
|
+
const containsControlCharacter = Array.from(value).some((character) => {
|
|
97
|
+
const codePoint = character.codePointAt(0) ?? 0;
|
|
98
|
+
return codePoint <= 31 || codePoint === 127;
|
|
99
|
+
});
|
|
100
|
+
if (containsControlCharacter) {
|
|
101
|
+
throw new Error("WWW-Authenticate values cannot contain control characters.");
|
|
102
|
+
}
|
|
103
|
+
return value.replaceAll("\\", "\\\\").replaceAll('"', "\\\"");
|
|
104
|
+
}
|
|
6
105
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
106
|
+
DYNAMOI_BETTER_AUTH_MCP_SCOPES,
|
|
107
|
+
DYNAMOI_MCP_TOOL_SCOPES,
|
|
108
|
+
buildWwwAuthenticateHeader
|
|
10
109
|
};
|
|
11
|
-
|
|
12
|
-
//# debugId=3CEA7E243AFD6EFD64756E2164756E21
|
|
13
|
-
//# sourceMappingURL=protected-resource.js.map
|