@dynamoi/mcp 0.7.1 → 1.0.1
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 +57 -59
- package/CHANGELOG.md +167 -0
- package/README.md +281 -123
- package/dist/auth/protected-resource.d.ts +5 -18
- package/dist/auth/protected-resource.d.ts.map +1 -1
- package/dist/auth/protected-resource.js +8 -12
- package/dist/auth/protected-resource.js.map +1 -1
- package/dist/{chunk-2jm8hjsz.js → chunk-3htwe57a.js} +19 -30
- package/dist/chunk-3htwe57a.js.map +10 -0
- package/dist/chunk-n5xmtwjj.js +9 -0
- package/dist/chunk-n5xmtwjj.js.map +10 -0
- package/dist/consent.d.ts +3 -3
- package/dist/consent.d.ts.map +1 -1
- package/dist/consent.js +8 -8
- package/dist/consent.js.map +1 -1
- package/dist/flow-types.d.ts +3 -3
- package/dist/flow-types.d.ts.map +1 -1
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1203 -577
- package/dist/index.js.map +19 -17
- package/dist/server/about.d.ts +74 -0
- package/dist/server/about.d.ts.map +1 -0
- package/dist/server/create-server.d.ts +18 -12
- package/dist/server/create-server.d.ts.map +1 -1
- package/dist/server/distribution-tools.d.ts +53 -3
- package/dist/server/distribution-tools.d.ts.map +1 -1
- package/dist/server/instructions.d.ts.map +1 -1
- package/dist/server/messaging.d.ts +14 -0
- package/dist/server/messaging.d.ts.map +1 -0
- package/dist/server/onboarding-tool-definitions.d.ts +50 -0
- package/dist/server/onboarding-tool-definitions.d.ts.map +1 -1
- package/dist/server/openai-tools.d.ts +50 -0
- package/dist/server/openai-tools.d.ts.map +1 -1
- package/dist/server/output-schemas.d.ts +233 -0
- package/dist/server/output-schemas.d.ts.map +1 -1
- package/dist/server/playbook-resources.d.ts +1 -1
- package/dist/server/playbook-resources.d.ts.map +1 -1
- package/dist/server/prompts.d.ts +1 -1
- package/dist/server/prompts.d.ts.map +1 -1
- package/dist/server/resources.d.ts +1 -1
- package/dist/server/resources.d.ts.map +1 -1
- package/dist/server/shop-tools.d.ts +335 -0
- package/dist/server/shop-tools.d.ts.map +1 -0
- package/dist/server/smart-link-theme-preview.d.ts +26 -1
- package/dist/server/smart-link-theme-preview.d.ts.map +1 -1
- package/dist/server/smart-link-tools.d.ts +126 -2
- package/dist/server/smart-link-tools.d.ts.map +1 -1
- package/dist/server/tools.d.ts +402 -13
- package/dist/server/tools.d.ts.map +1 -1
- package/dist/server/workflow-tools.d.ts +62 -1
- package/dist/server/workflow-tools.d.ts.map +1 -1
- package/dist/transport/http.d.ts +7 -1
- package/dist/transport/http.d.ts.map +1 -1
- package/dist/types.d.ts +14 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +6 -6
- package/server.json +2 -13
- package/dist/auth/verify-token.d.ts +0 -21
- package/dist/auth/verify-token.d.ts.map +0 -1
- package/dist/chunk-2jm8hjsz.js.map +0 -10
- package/dist/chunk-kb3xpcrb.js +0 -9
- package/dist/chunk-kb3xpcrb.js.map +0 -10
package/README.md
CHANGED
|
@@ -1,94 +1,100 @@
|
|
|
1
|
-
# Dynamoi MCP
|
|
1
|
+
# Dynamoi MCP Server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Music marketing for AI agents.**
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@dynamoi/mcp)
|
|
6
6
|
[](./LICENSE)
|
|
7
|
-
[](https://registry.modelcontextprotocol.io/v0/servers?search=io.github.getDynamoi/dynamoi)
|
|
8
|
+
[](https://cursor.com/install-mcp?name=dynamoi&config=eyJ1cmwiOiJodHRwczovL2R5bmFtb2kuY29tL21jcCJ9)
|
|
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)
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
campaign context, review analytics, start platform connection flows, and handle
|
|
17
|
-
music-distribution applications.
|
|
18
|
-
|
|
19
|
-
It works with any MCP host that supports remote Streamable HTTP and OAuth:
|
|
20
|
-
ChatGPT, Claude, Gemini, local agent runtimes, internal label tools, or custom
|
|
21
|
-
automation.
|
|
11
|
+
The Dynamoi MCP server connects ChatGPT, Claude, Cursor, and other AI agents
|
|
12
|
+
to [Dynamoi](https://dynamoi.com), the music marketing platform for artists,
|
|
13
|
+
labels, and managers. Agents can create free Spotify Smart Links, run managed
|
|
14
|
+
YouTube and Meta promotion campaigns, read campaign and Smart Link analytics,
|
|
15
|
+
check platform status, and apply for music distribution. Use the hosted MCP
|
|
16
|
+
server, or use this package as a library.
|
|
22
17
|
|
|
23
18
|
```txt
|
|
24
19
|
https://dynamoi.com/mcp
|
|
25
20
|
```
|
|
26
21
|
|
|
27
|
-
|
|
22
|
+
The hosted server needs no install. Point any MCP client that supports remote
|
|
23
|
+
Streamable HTTP and OAuth at that URL, and the user signs in with their
|
|
24
|
+
Dynamoi account.
|
|
28
25
|
|
|
29
|
-
|
|
30
|
-
| --- | --- |
|
|
31
|
-
| 🎧 "Make a link for this release." | Create a free Smart Link from Spotify and return the public URL. |
|
|
32
|
-
| 🚦 "Why is this campaign not ready?" | Check the missing setup: billing, platform connections, countries, assets, and launch state. |
|
|
33
|
-
| 📈 "What do we have live right now?" | Search artists, Smart Links, campaigns, analytics, and account status. |
|
|
34
|
-
| 📺 "Connect our YouTube channel." | Start the correct connection flow from the conversation. |
|
|
35
|
-
| 🚀 "Can we promote this?" | Keep the free-link workflow separate from managed advertising, then point to the next safe step. |
|
|
36
|
-
| 💿 "Can we apply for distribution?" | Check the five eligibility requirements and submit a complete application for manual review. |
|
|
26
|
+
## About Dynamoi
|
|
37
27
|
|
|
38
|
-
|
|
28
|
+
Dynamoi is a music marketing platform founded in 2021 by Trevor Loucks. It
|
|
29
|
+
runs managed Meta and YouTube ad campaigns, music distribution, and royalty
|
|
30
|
+
analytics for independent artists, labels, managers, and YouTube creators,
|
|
31
|
+
alongside free Smart Links and analytics.
|
|
39
32
|
|
|
40
|
-
**
|
|
41
|
-
|
|
33
|
+
- **Free Smart Links:** release pages and artist hubs built from Spotify
|
|
34
|
+
URLs, with link analytics, themes, validated pixel IDs, and team seats.
|
|
35
|
+
- **Managed Smart Campaigns:** Meta ads that promote Spotify tracks, albums,
|
|
36
|
+
and playlists.
|
|
37
|
+
- **YouTube campaigns:** managed Google Ads campaigns for YouTube channel
|
|
38
|
+
growth.
|
|
39
|
+
- **Music distribution:** opt-in delivery to 100+ stores. Applications are
|
|
40
|
+
scored against five requirements, and approval is not guaranteed.
|
|
41
|
+
- **YouTube promotion Shop:** one-off YouTube video promotion with no
|
|
42
|
+
subscription.
|
|
42
43
|
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
Campaigns run on Dynamoi's own managed Meta and Google ad infrastructure. They
|
|
45
|
+
reach real people through official ad networks, never bots, fake streams, or
|
|
46
|
+
paid playlist placement. Results vary and are never guaranteed.
|
|
45
47
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
Dynamoi is based in Sioux Falls, South Dakota, and is operated by humans,
|
|
49
|
+
assisted by AI. People make the decisions and are accountable for every
|
|
50
|
+
campaign and support reply. AI helps with ad creative, campaign monitoring,
|
|
51
|
+
reporting, and routine tasks.
|
|
49
52
|
|
|
50
|
-
|
|
53
|
+
Smart Links are free. Starter is $25/month with a $50 launch campaign credit,
|
|
54
|
+
and campaign budgets start at $10/day. See
|
|
55
|
+
[pricing](https://dynamoi.com/pricing).
|
|
51
56
|
|
|
52
|
-
|
|
57
|
+
Agents can read the same overview before sign-in through the `dynamoi_about`
|
|
58
|
+
tool or the `dynamoi://about` resource.
|
|
53
59
|
|
|
54
|
-
|
|
55
|
-
- Import an artist catalog into an artist hub.
|
|
56
|
-
- Return the shareable URL immediately.
|
|
57
|
-
- Check link status, analytics, theme/settings, and publish state.
|
|
58
|
-
- Update or publish a link when the user clearly asks.
|
|
60
|
+
## Connect
|
|
59
61
|
|
|
60
|
-
|
|
61
|
-
clean next step when the release is ready to push.
|
|
62
|
+
Each client opens the Dynamoi sign-in page on first use.
|
|
62
63
|
|
|
63
|
-
|
|
64
|
+
### ChatGPT
|
|
64
65
|
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
Open the [Dynamoi app in the ChatGPT directory](https://chatgpt.com/plugins/plugin_asdk_app_69ceb0e849788191aa3fd4d416204a9d).
|
|
67
|
+
In developer mode you can instead add a custom app with the MCP server URL
|
|
68
|
+
`https://dynamoi.com/mcp` and OAuth authentication. ChatGPT gets the
|
|
69
|
+
[directory catalog](#which-tools-a-client-sees).
|
|
67
70
|
|
|
68
|
-
|
|
69
|
-
| --- | --- |
|
|
70
|
-
| "Is this artist ready?" | Account access, artist records, platform status, and missing setup. |
|
|
71
|
-
| "Can this campaign launch?" | Readiness, billing state, supported countries, media assets, and deployment status. |
|
|
72
|
-
| "What needs attention?" | Active campaigns, Smart Links, analytics, and next actions. |
|
|
73
|
-
| "Are we connected?" | YouTube and Meta connection state, plus connection-start flows where available. |
|
|
71
|
+
### Claude (web and desktop)
|
|
74
72
|
|
|
75
|
-
|
|
73
|
+
Open **Settings → Connectors**, choose **Add custom connector**, and enter
|
|
74
|
+
`https://dynamoi.com/mcp`.
|
|
76
75
|
|
|
77
|
-
|
|
78
|
-
connected, at least 1,000 Spotify followers, at least 10,000 verified
|
|
79
|
-
Soundcharts monthly listeners, connected Facebook Page plus Instagram
|
|
80
|
-
professional identity, and connected YouTube identity. Eligible users can
|
|
81
|
-
submit an application for manual review from an agent.
|
|
76
|
+
### Claude Code
|
|
82
77
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
78
|
+
```bash
|
|
79
|
+
claude mcp add --transport http dynamoi https://dynamoi.com/mcp
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Then run `/mcp` in Claude Code to sign in.
|
|
83
|
+
|
|
84
|
+
The Dynamoi plugin from the
|
|
85
|
+
[agent plugins repository](https://github.com/getDynamoi/agent-plugins)
|
|
86
|
+
bundles Dynamoi skills with the directory catalog on
|
|
87
|
+
`https://dynamoi.com/mcp/directory`:
|
|
88
|
+
|
|
89
|
+
```txt
|
|
90
|
+
/plugin marketplace add getDynamoi/agent-plugins
|
|
91
|
+
/plugin install dynamoi@dynamoi
|
|
92
|
+
```
|
|
87
93
|
|
|
88
|
-
|
|
94
|
+
### Cursor
|
|
89
95
|
|
|
90
|
-
|
|
91
|
-
|
|
96
|
+
Use the **Add to Cursor** badge above, or add Dynamoi to `~/.cursor/mcp.json`
|
|
97
|
+
(or `.cursor/mcp.json` in a project):
|
|
92
98
|
|
|
93
99
|
```json
|
|
94
100
|
{
|
|
@@ -100,91 +106,243 @@ hosted endpoint from any MCP-capable client that supports remote Streamable HTTP
|
|
|
100
106
|
}
|
|
101
107
|
```
|
|
102
108
|
|
|
103
|
-
|
|
104
|
-
account, and the connected agent receives only the scopes needed for the tools it
|
|
105
|
-
calls.
|
|
109
|
+
### VS Code
|
|
106
110
|
|
|
107
|
-
|
|
111
|
+
Use the **Install in VS Code** badge above, or add Dynamoi to
|
|
112
|
+
`.vscode/mcp.json`:
|
|
108
113
|
|
|
109
|
-
|
|
110
|
-
|
|
114
|
+
```json
|
|
115
|
+
{
|
|
116
|
+
"servers": {
|
|
117
|
+
"dynamoi": {
|
|
118
|
+
"type": "http",
|
|
119
|
+
"url": "https://dynamoi.com/mcp"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
```
|
|
111
124
|
|
|
112
|
-
|
|
113
|
-
contract:
|
|
125
|
+
### Gemini CLI
|
|
114
126
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
```
|
|
127
|
+
Install the Dynamoi extension from the
|
|
128
|
+
[agent plugins repository](https://github.com/getDynamoi/agent-plugins):
|
|
118
129
|
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
buildProtectedResourceMetadata,
|
|
122
|
-
createDynamoiMcpServer,
|
|
123
|
-
handleMcpHttpRequest,
|
|
124
|
-
} from "@dynamoi/mcp";
|
|
130
|
+
```bash
|
|
131
|
+
gemini extensions install https://github.com/getDynamoi/agent-plugins
|
|
125
132
|
```
|
|
126
133
|
|
|
127
|
-
|
|
128
|
-
Dynamoi's private application services:
|
|
134
|
+
### Codex CLI
|
|
129
135
|
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
websiteUrl: "https://dynamoi.com",
|
|
134
|
-
});
|
|
136
|
+
```bash
|
|
137
|
+
codex mcp add dynamoi --url https://dynamoi.com/mcp
|
|
138
|
+
codex mcp login dynamoi
|
|
135
139
|
```
|
|
136
140
|
|
|
137
|
-
`
|
|
138
|
-
serverless deployments. Authentication and authorization remain the host
|
|
139
|
-
application's responsibility on every request.
|
|
141
|
+
Or add the server to `~/.codex/config.toml` and run `codex mcp login dynamoi`:
|
|
140
142
|
|
|
141
|
-
|
|
143
|
+
```toml
|
|
144
|
+
[mcp_servers.dynamoi]
|
|
145
|
+
url = "https://dynamoi.com/mcp"
|
|
146
|
+
```
|
|
142
147
|
|
|
143
|
-
|
|
148
|
+
### Other MCP clients
|
|
149
|
+
|
|
150
|
+
Use `https://dynamoi.com/mcp` as a remote Streamable HTTP server. The client
|
|
151
|
+
must handle an OAuth 401 challenge (MCP authorization). Stdio-only clients
|
|
152
|
+
need a remote-to-stdio bridge.
|
|
153
|
+
|
|
154
|
+
## Which tools a client sees
|
|
155
|
+
|
|
156
|
+
The server has two tool catalogs. It picks one from the OAuth client that
|
|
157
|
+
signed in, not from anything the client claims about itself.
|
|
158
|
+
|
|
159
|
+
| Catalog | Who gets it | What it includes |
|
|
160
|
+
| --- | --- | --- |
|
|
161
|
+
| **Directory** | Every client on `https://dynamoi.com/mcp/directory` (used by agent-directory listings such as the Dynamoi Claude plugin), the published ChatGPT app on `/mcp`, and requests made before sign-in | 18 review-safe tools: reads, Smart Links, distribution, and About. No billing, campaign launch or campaign changes, platform connection starters, or Shop checkout. |
|
|
162
|
+
| **Full** | Every other signed-in client on `https://dynamoi.com/mcp`, such as Claude custom connectors, Claude Code, Cursor, VS Code, Gemini CLI, Codex CLI, and custom agents | All 28 tools, plus the Dynamoi prompts and reference resources |
|
|
163
|
+
|
|
164
|
+
Signing in does not skip permission checks. Every tool call still needs its
|
|
165
|
+
OAuth scopes, and the user's role must allow access to the artist, campaign,
|
|
166
|
+
or Smart Link.
|
|
167
|
+
|
|
168
|
+
## Tools
|
|
169
|
+
|
|
170
|
+
"Reads" tools are marked read-only. "Changes data" tools write to Dynamoi or
|
|
171
|
+
start an action with an outside provider.
|
|
172
|
+
|
|
173
|
+
| Tool | What it does | Access | Catalog |
|
|
174
|
+
| --- | --- | --- | --- |
|
|
175
|
+
| `dynamoi_about` | What Dynamoi is and how to start. Works before sign-in. | Reads | Both |
|
|
176
|
+
| `dynamoi_get_account_overview` | Signed-in account, access counts and suggested next steps | Reads | Both |
|
|
177
|
+
| `dynamoi_list_artists` | Artist roster, or one artist's profile and readiness | Reads | Both |
|
|
178
|
+
| `dynamoi_search` | Find artists, campaigns, and Smart Links by name | Reads | Both |
|
|
179
|
+
| `search` / `fetch` | ChatGPT deep research search and fetch | Reads | Both |
|
|
180
|
+
| `dynamoi_list_campaigns` | An artist's campaigns, with type and status filters | Reads | Both |
|
|
181
|
+
| `dynamoi_get_campaign` | One campaign, with optional analytics, delivery status, and countries | Reads | Both |
|
|
182
|
+
| `dynamoi_get_artist_analytics` | Artist-level analytics across campaigns | Reads | Both |
|
|
183
|
+
| `dynamoi_get_platform_status` | Spotify, Meta, and YouTube connection status and setup blockers | Reads | Both |
|
|
184
|
+
| `dynamoi_get_distribution_application` | The five distribution requirements and application status | Reads | Both |
|
|
185
|
+
| `dynamoi_apply_for_distribution` | Submit a distribution application for manual review | Changes data | Both |
|
|
186
|
+
| `dynamoi_preview_smart_link_themes` | Visual preview of the Smart Link themes | Reads | Both |
|
|
187
|
+
| `dynamoi_create_smart_link_from_spotify` | Create a free Smart Link from a Spotify album or track | Changes data | Both |
|
|
188
|
+
| `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
|
+
| `dynamoi_list_smart_links` | An artist's Smart Links and public URLs | Reads | Both |
|
|
190
|
+
| `dynamoi_get_smart_link` | One Smart Link, with optional analytics and artist settings | Reads | Both |
|
|
191
|
+
| `dynamoi_update_smart_link` | Update a link description or the artist's theme and pixel settings | Changes data | Both |
|
|
192
|
+
| `dynamoi_get_billing` | Billing status, credit balance, and promo limits | Reads | Full |
|
|
193
|
+
| `dynamoi_list_available_countries` | Countries a Smart Campaign or YouTube campaign can target | Reads | Full |
|
|
194
|
+
| `dynamoi_get_campaign_readiness` | Check launch inputs before creating anything | Reads | Full |
|
|
195
|
+
| `dynamoi_list_media_assets` | Uploaded images and videos that a launch can reuse | Reads | Full |
|
|
196
|
+
| `dynamoi_launch_campaign` | Launch a Smart Campaign or YouTube campaign | Changes data | Full |
|
|
197
|
+
| `dynamoi_update_campaign` | Pause, resume, or change a campaign's budget or end date | Changes data | Full |
|
|
198
|
+
| `dynamoi_start_meta_connection` | Start the Facebook Page and Instagram connection in the browser | Changes data | Full |
|
|
199
|
+
| `dynamoi_start_youtube_channel_link` | Start the YouTube channel connection in the browser | Changes data | Full |
|
|
200
|
+
| `dynamoi_shop_get_quote` | Estimate a one-off YouTube promotion | Reads | Full |
|
|
201
|
+
| `dynamoi_shop_create_checkout` | Create an unpaid Stripe Checkout link for that promotion | Changes data | Full |
|
|
202
|
+
|
|
203
|
+
Full tool descriptions and input schemas come from `tools/list`, or from
|
|
204
|
+
`getDynamoiToolDefinitions()` in this package.
|
|
205
|
+
|
|
206
|
+
## Money and safety
|
|
207
|
+
|
|
208
|
+
- **Smart Links are free.** Creating or updating them never charges anyone.
|
|
209
|
+
- **Launches and budget changes are real.** `dynamoi_launch_campaign` and
|
|
210
|
+
`dynamoi_update_campaign` go through the same backend checks as the Dynamoi
|
|
211
|
+
web and mobile apps: permissions, promo limits, and repeat-request
|
|
212
|
+
protection. Whether a person approves each call is up to the MCP client's
|
|
213
|
+
tool-approval settings, so keep approval on for tools that change data.
|
|
214
|
+
- **Daily budgets need the user's funding consent.** A `DAILY` budget is
|
|
215
|
+
funded one 24-hour window at a time. Available credits and campaign funds
|
|
216
|
+
are used first, then the card the user saved in Dynamoi is charged
|
|
217
|
+
automatically. The agent must show the user the exact consent text, then send
|
|
218
|
+
`authorizeAutomaticDailyFunding: true` with the matching
|
|
219
|
+
`acceptedConsentVersion` and `acceptedConsentCopyHash`. This applies to
|
|
220
|
+
launches, budget updates, and resumes that need card funding. Without
|
|
221
|
+
consent the request is refused. The consent values are exported from
|
|
222
|
+
`@dynamoi/mcp/consent`.
|
|
223
|
+
- **Total budgets use existing credit** and need no funding consent.
|
|
224
|
+
- **Agents never handle payment credentials.** Subscriptions, plans, and
|
|
225
|
+
billing setup happen only in the [Dynamoi dashboard](https://dynamoi.com/dashboard),
|
|
226
|
+
where subscriptions start through hosted Stripe Checkout. No tool starts a
|
|
227
|
+
subscription.
|
|
228
|
+
- **Shop checkout is only a link.** `dynamoi_shop_create_checkout` creates an
|
|
229
|
+
unpaid Stripe Checkout Session. The user pays on Stripe, and no order exists
|
|
230
|
+
until the payment is verified.
|
|
231
|
+
- **Distribution applications start a manual review.** Submitting one does not
|
|
232
|
+
approve distribution, accept an agreement, or deliver music to stores.
|
|
233
|
+
- **The directory catalog** exposes no tools that spend money, start a
|
|
234
|
+
subscription, or create a checkout.
|
|
235
|
+
|
|
236
|
+
## Authentication
|
|
237
|
+
|
|
238
|
+
Dynamoi uses OAuth 2.1 through its authorization server at
|
|
239
|
+
`https://dynamoi.com/api/auth`. Clients find it through the server's metadata:
|
|
240
|
+
|
|
241
|
+
- Protected resource: `https://dynamoi.com/.well-known/oauth-protected-resource/mcp`
|
|
242
|
+
- Authorization server: `https://dynamoi.com/.well-known/oauth-authorization-server`
|
|
243
|
+
|
|
244
|
+
| Topic | Support |
|
|
144
245
|
| --- | --- |
|
|
145
|
-
|
|
|
146
|
-
|
|
|
147
|
-
|
|
|
148
|
-
| HTTP transport helpers | Stateless Streamable HTTP handling for serverless hosts. |
|
|
149
|
-
| TypeScript types | Integration-safe contracts for hosted server code. |
|
|
246
|
+
| Client registration | Client ID Metadata Documents (preferred) and dynamic client registration |
|
|
247
|
+
| Grants | Authorization code with PKCE (`S256`), refresh token, and the device authorization grant for CLI and headless agents (`https://dynamoi.com/api/auth/device/code`) |
|
|
248
|
+
| Tokens | Bearer tokens in the `Authorization` header. DPoP signing algorithms are advertised. |
|
|
150
249
|
|
|
151
|
-
|
|
250
|
+
Without a token, a request gets a `401` with a `WWW-Authenticate` challenge.
|
|
251
|
+
That challenge asks for every scope the client's catalog uses, so one consent
|
|
252
|
+
covers the whole catalog. A full-catalog client that signed in with fewer
|
|
253
|
+
scopes is asked once for the rest.
|
|
152
254
|
|
|
153
|
-
|
|
154
|
-
clear boundaries around what an agent can do.
|
|
155
|
-
|
|
156
|
-
| Safety layer | What it protects |
|
|
255
|
+
| Scope | Allows |
|
|
157
256
|
| --- | --- |
|
|
158
|
-
|
|
|
159
|
-
|
|
|
160
|
-
|
|
|
161
|
-
|
|
|
162
|
-
|
|
|
163
|
-
|
|
|
257
|
+
| `dynamoi:read` | Reading the account, artists, campaigns, analytics, and Smart Links. Every signed-in tool needs it. |
|
|
258
|
+
| `dynamoi:platform.read` | Checking Spotify, Meta, and YouTube connection status |
|
|
259
|
+
| `dynamoi:platform.write` | Starting Meta and YouTube connection flows |
|
|
260
|
+
| `dynamoi:smart_links.write` | Creating and updating free Smart Links |
|
|
261
|
+
| `dynamoi:distribution.read` | Checking distribution requirements and application status |
|
|
262
|
+
| `dynamoi:distribution.apply` | Submitting a distribution application |
|
|
263
|
+
| `dynamoi:billing.read` | Reading billing status, credit balance, and promo limits |
|
|
264
|
+
| `dynamoi:campaign.launch` | Launching new campaigns |
|
|
265
|
+
| `dynamoi:campaign.write` | Pausing, resuming, and changing campaign budgets |
|
|
266
|
+
| `dynamoi:mcp.full` | Using the Shop quote and checkout tools |
|
|
267
|
+
|
|
268
|
+
## Protocol support
|
|
269
|
+
|
|
270
|
+
- MCP **2026-07-28**: stateless requests with per-request `_meta`, including
|
|
271
|
+
`server/discover`.
|
|
272
|
+
- MCP **2025-11-25** and earlier `initialize`-based revisions, for clients
|
|
273
|
+
that have not moved to 2026-07-28.
|
|
274
|
+
- Streamable HTTP, POST only. Responses are JSON, or SSE for 2025-era
|
|
275
|
+
clients that accept it. The server keeps no sessions and opens no
|
|
276
|
+
standalone stream, so `GET` and `DELETE` return `405`.
|
|
277
|
+
|
|
278
|
+
## Using the package
|
|
279
|
+
|
|
280
|
+
Most people should connect to the hosted server. Install the package if you
|
|
281
|
+
are building against the Dynamoi MCP contract: tool definitions, Zod schemas,
|
|
282
|
+
result types, OAuth scope maps, or the stateless HTTP handler.
|
|
164
283
|
|
|
165
|
-
|
|
284
|
+
```bash
|
|
285
|
+
npm install @dynamoi/mcp
|
|
286
|
+
```
|
|
166
287
|
|
|
167
|
-
|
|
288
|
+
The package is ESM-only and built on MCP TypeScript SDK v2
|
|
289
|
+
(`@modelcontextprotocol/server`).
|
|
168
290
|
|
|
169
|
-
|
|
291
|
+
| Entry point | Main exports |
|
|
292
|
+
| --- | --- |
|
|
293
|
+
| `@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
|
+
| `@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` |
|
|
170
296
|
|
|
171
|
-
|
|
297
|
+
A host provides a `Phase3Adapter`, which connects each tool to its own
|
|
298
|
+
services. It also verifies the caller before it serves a request:
|
|
172
299
|
|
|
173
|
-
|
|
300
|
+
```ts
|
|
301
|
+
import {
|
|
302
|
+
createDynamoiMcpServer,
|
|
303
|
+
handleMcpHttpRequest,
|
|
304
|
+
type DynamoiMcpToolProfile,
|
|
305
|
+
type Phase3Adapter,
|
|
306
|
+
} from "@dynamoi/mcp";
|
|
174
307
|
|
|
175
|
-
|
|
308
|
+
export async function handleMcp(
|
|
309
|
+
request: Request,
|
|
310
|
+
adapter: Phase3Adapter,
|
|
311
|
+
toolProfile: DynamoiMcpToolProfile,
|
|
312
|
+
): Promise<Response> {
|
|
313
|
+
// Authenticate the request and check scopes first; this package does not
|
|
314
|
+
// verify tokens. The profile defaults to "directory" if you omit it.
|
|
315
|
+
const parsedBody = request.method === "POST" ? await request.json() : null;
|
|
316
|
+
return handleMcpHttpRequest({
|
|
317
|
+
request,
|
|
318
|
+
parsedBody,
|
|
319
|
+
createServer: () => createDynamoiMcpServer({ adapter, toolProfile }),
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
```
|
|
176
323
|
|
|
177
|
-
|
|
324
|
+
`createDynamoiMcpServer` also accepts `authorizeToolCall` (answer a call
|
|
325
|
+
before it runs, for example with a step-up challenge), `onToolCall` (a
|
|
326
|
+
telemetry hook), and `oauthScopes`.
|
|
178
327
|
|
|
179
|
-
|
|
328
|
+
Every request builds a new server. `handleMcpHttpRequest` sends 2026-07-28
|
|
329
|
+
requests to the SDK's stateless handler and 2025-era requests to a stateless
|
|
330
|
+
per-request transport.
|
|
180
331
|
|
|
181
|
-
##
|
|
332
|
+
## Links
|
|
182
333
|
|
|
183
334
|
| Resource | URL |
|
|
184
335
|
| --- | --- |
|
|
185
|
-
|
|
|
186
|
-
|
|
|
187
|
-
|
|
|
188
|
-
|
|
|
336
|
+
| MCP server docs | <https://dynamoi.com/docs/mcp-server> |
|
|
337
|
+
| ChatGPT app | <https://chatgpt.com/plugins/plugin_asdk_app_69ceb0e849788191aa3fd4d416204a9d> |
|
|
338
|
+
| Agent plugins (Claude Code, Gemini CLI) | <https://github.com/getDynamoi/agent-plugins> |
|
|
339
|
+
| MCP Registry | <https://registry.modelcontextprotocol.io/v0/servers?search=io.github.getDynamoi/dynamoi> |
|
|
340
|
+
| Agent overview (`llms.txt`) | <https://dynamoi.com/llms.txt> |
|
|
341
|
+
| Support | <https://dynamoi.com/support> or support@dynamoi.com (replies within 24 hours) |
|
|
342
|
+
| Pricing | <https://dynamoi.com/pricing> |
|
|
343
|
+
| npm | <https://www.npmjs.com/package/@dynamoi/mcp> |
|
|
344
|
+
| Source and issues | <https://github.com/getDynamoi/mcp> |
|
|
189
345
|
| Changelog | [CHANGELOG.md](./CHANGELOG.md) |
|
|
190
|
-
| Capability
|
|
346
|
+
| Capability map | [CAPABILITY_PARITY.md](./CAPABILITY_PARITY.md) |
|
|
347
|
+
|
|
348
|
+
MIT licensed. See [LICENSE](./LICENSE).
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
authorization_servers: string[];
|
|
3
|
-
bearer_methods_supported: ["header"];
|
|
4
|
-
resource: string;
|
|
5
|
-
resource_documentation?: string;
|
|
6
|
-
scopes_supported: string[];
|
|
7
|
-
};
|
|
8
|
-
export declare const DYNAMOI_BETTER_AUTH_MCP_SCOPES: readonly ["dynamoi:read", "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"];
|
|
9
|
-
/** @deprecated Use DYNAMOI_BETTER_AUTH_MCP_SCOPES. */
|
|
10
|
-
export declare const DYNAMOI_MCP_SCOPES: readonly ["dynamoi:read", "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"];
|
|
1
|
+
export declare const DYNAMOI_BETTER_AUTH_MCP_SCOPES: readonly ["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"];
|
|
11
2
|
export declare const DYNAMOI_MCP_TOOL_SCOPES: {
|
|
3
|
+
readonly dynamoi_about: readonly [];
|
|
4
|
+
readonly dynamoi_apply_for_distribution: readonly ["dynamoi:read", "dynamoi:distribution.apply"];
|
|
12
5
|
readonly dynamoi_create_smart_link_from_spotify: readonly ["dynamoi:read", "dynamoi:smart_links.write"];
|
|
13
6
|
readonly dynamoi_create_smart_links_from_spotify_artist: readonly ["dynamoi:read", "dynamoi:smart_links.write"];
|
|
14
7
|
readonly dynamoi_get_account_overview: readonly ["dynamoi:read"];
|
|
@@ -20,7 +13,6 @@ export declare const DYNAMOI_MCP_TOOL_SCOPES: {
|
|
|
20
13
|
readonly dynamoi_get_platform_status: readonly ["dynamoi:read", "dynamoi:platform.read"];
|
|
21
14
|
readonly dynamoi_get_smart_link: readonly ["dynamoi:read"];
|
|
22
15
|
readonly dynamoi_launch_campaign: readonly ["dynamoi:read", "dynamoi:campaign.launch"];
|
|
23
|
-
readonly dynamoi_apply_for_distribution: readonly ["dynamoi:read", "dynamoi:distribution.apply"];
|
|
24
16
|
readonly dynamoi_list_artists: readonly ["dynamoi:read"];
|
|
25
17
|
readonly dynamoi_list_available_countries: readonly ["dynamoi:read"];
|
|
26
18
|
readonly dynamoi_list_campaigns: readonly ["dynamoi:read"];
|
|
@@ -28,6 +20,8 @@ export declare const DYNAMOI_MCP_TOOL_SCOPES: {
|
|
|
28
20
|
readonly dynamoi_list_smart_links: readonly ["dynamoi:read"];
|
|
29
21
|
readonly dynamoi_preview_smart_link_themes: readonly ["dynamoi:read"];
|
|
30
22
|
readonly dynamoi_search: readonly ["dynamoi:read"];
|
|
23
|
+
readonly dynamoi_shop_create_checkout: readonly ["dynamoi:read", "dynamoi:mcp.full"];
|
|
24
|
+
readonly dynamoi_shop_get_quote: readonly ["dynamoi:read", "dynamoi:mcp.full"];
|
|
31
25
|
readonly dynamoi_start_meta_connection: readonly ["dynamoi:read", "dynamoi:platform.write"];
|
|
32
26
|
readonly dynamoi_start_youtube_channel_link: readonly ["dynamoi:read", "dynamoi:platform.write"];
|
|
33
27
|
readonly dynamoi_update_campaign: readonly ["dynamoi:read", "dynamoi:campaign.write"];
|
|
@@ -35,17 +29,10 @@ export declare const DYNAMOI_MCP_TOOL_SCOPES: {
|
|
|
35
29
|
readonly fetch: readonly ["dynamoi:read"];
|
|
36
30
|
readonly search: readonly ["dynamoi:read"];
|
|
37
31
|
};
|
|
38
|
-
export declare function buildProtectedResourceMetadata(options: {
|
|
39
|
-
resource: string;
|
|
40
|
-
authorizationServers: string[];
|
|
41
|
-
resourceDocumentation?: string;
|
|
42
|
-
scopesSupported?: string[];
|
|
43
|
-
}): ProtectedResourceMetadata;
|
|
44
32
|
export declare function buildWwwAuthenticateHeader(options: {
|
|
45
33
|
resourceMetadataUrl: string;
|
|
46
34
|
errorDescription?: string;
|
|
47
35
|
error?: "insufficient_scope" | "invalid_token";
|
|
48
36
|
scope?: string;
|
|
49
37
|
}): string;
|
|
50
|
-
export {};
|
|
51
38
|
//# sourceMappingURL=protected-resource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protected-resource.d.ts","sourceRoot":"","sources":["../../../src/auth/protected-resource.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"protected-resource.d.ts","sourceRoot":"","sources":["../../../src/auth/protected-resource.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B,YAC1C,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,4BAA4B,EAC5B,2BAA2B,EAC3B,uBAAuB,EACvB,wBAAwB,EACxB,2BAA2B,CAClB,CAAC;AACX,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CkB,CAAC;AAEvD,wBAAgB,0BAA0B,CAAC,OAAO,EAAE;IACnD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,oBAAoB,GAAG,eAAe,CAAC;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,MAAM,CAoBT"}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
buildWwwAuthenticateHeader
|
|
7
|
-
} from "../chunk-2jm8hjsz.js";
|
|
2
|
+
DYNAMOI_BETTER_AUTH_MCP_SCOPES2,
|
|
3
|
+
DYNAMOI_MCP_TOOL_SCOPES2,
|
|
4
|
+
buildWwwAuthenticateHeader2
|
|
5
|
+
} from "../chunk-3htwe57a.js";
|
|
8
6
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
DYNAMOI_MCP_SCOPES,
|
|
13
|
-
DYNAMOI_BETTER_AUTH_MCP_SCOPES
|
|
7
|
+
DYNAMOI_BETTER_AUTH_MCP_SCOPES2 as DYNAMOI_BETTER_AUTH_MCP_SCOPES,
|
|
8
|
+
DYNAMOI_MCP_TOOL_SCOPES2 as DYNAMOI_MCP_TOOL_SCOPES,
|
|
9
|
+
buildWwwAuthenticateHeader2 as buildWwwAuthenticateHeader
|
|
14
10
|
};
|
|
15
11
|
|
|
16
|
-
//# debugId=
|
|
12
|
+
//# debugId=3CEA7E243AFD6EFD64756E2164756E21
|
|
17
13
|
//# sourceMappingURL=protected-resource.js.map
|