@dynamoi/mcp 0.6.2 → 0.6.4
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 +27 -0
- package/README.md +117 -70
- package/dist/auth/protected-resource.d.ts +2 -1
- package/dist/auth/protected-resource.js +1 -1
- package/dist/{chunk-53YNLVA3.js → chunk-CHQUK72A.js} +14 -14
- package/dist/chunk-CHQUK72A.js.map +1 -0
- package/dist/index.d.ts +109 -64
- package/dist/index.js +400 -391
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/server.json +3 -3
- package/dist/chunk-53YNLVA3.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,33 @@ and [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.6.4] - 2026-05-30
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Rewrote the public README and package description for musicians, labels, and
|
|
15
|
+
MCP-capable AI agent builders, with clearer release-promotion language,
|
|
16
|
+
richer Markdown structure, badges, emoji section cues, example prompts,
|
|
17
|
+
package usage, and safety model.
|
|
18
|
+
|
|
19
|
+
## [0.6.3] - 2026-05-30
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
|
|
23
|
+
- Added a ChatGPT app review profile that exposes the approved 14-tool surface while keeping the broader MCP package available for other clients.
|
|
24
|
+
- Added regression coverage for profile-specific server behavior and ChatGPT app review schemas.
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- Tightened Smart Link detail inputs to explicit include booleans and closed schemas for app-review clients.
|
|
29
|
+
- Advertised concrete campaign status enum values for campaign listing instead of a free-form status string.
|
|
30
|
+
- Hid billing, paid launch/readiness, campaign mutation, OAuth-start, media asset, and country-catalog tools from the ChatGPT app review profile.
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- Fixed legacy Smart Link include normalization under the repo-wide strict TypeScript settings.
|
|
35
|
+
- Added a package version fallback so unbundled runtime metadata reports the published package version instead of a placeholder build token.
|
|
36
|
+
|
|
10
37
|
## [0.6.2] - 2026-05-12
|
|
11
38
|
|
|
12
39
|
### Added
|
package/README.md
CHANGED
|
@@ -1,35 +1,80 @@
|
|
|
1
|
-
# Dynamoi MCP
|
|
1
|
+
# Dynamoi MCP 🎧
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> Let any MCP-capable AI agent help artists and labels get releases ready to promote.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
[](https://www.npmjs.com/package/@dynamoi/mcp)
|
|
6
|
+
[](./LICENSE)
|
|
7
|
+
[](https://dynamoi.com/mcp)
|
|
8
|
+
[](https://dynamoi.com)
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
Musicians, managers, and labels already have enough to chase down: Spotify
|
|
11
|
+
links, artist pages, campaign setup, ad account connections, billing checks,
|
|
12
|
+
analytics, and launch notes.
|
|
13
|
+
|
|
14
|
+
**Dynamoi MCP lets an AI agent help with that work directly.** A connected agent
|
|
15
|
+
can create a free Smart Link, pull artist and campaign context, check what is
|
|
16
|
+
blocking a launch, start YouTube or Meta connection flows, and keep the next
|
|
17
|
+
promotion step clear.
|
|
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.
|
|
10
22
|
|
|
11
23
|
```txt
|
|
12
24
|
https://dynamoi.com/mcp
|
|
13
25
|
```
|
|
14
26
|
|
|
15
|
-
|
|
16
|
-
|
|
27
|
+
## ✨ The Short Version
|
|
28
|
+
|
|
29
|
+
| When someone asks... | The agent can help with... |
|
|
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
|
+
|
|
37
|
+
## 🎤 Who It Is For
|
|
38
|
+
|
|
39
|
+
**Artists and managers** use Dynamoi MCP to make links, check campaign setup,
|
|
40
|
+
and see what needs attention before a release gets promoted.
|
|
41
|
+
|
|
42
|
+
**Record labels and teams** can wire Dynamoi into internal agent workflows for
|
|
43
|
+
campaign checks, artist lookup, reporting, and release operations.
|
|
44
|
+
|
|
45
|
+
**Developers** can install this package when they need the public MCP contract,
|
|
46
|
+
schemas, OAuth metadata, transport helpers, or TypeScript types behind the hosted
|
|
47
|
+
Dynamoi server.
|
|
48
|
+
|
|
49
|
+
## 🔗 Smart Links First
|
|
17
50
|
|
|
18
|
-
|
|
51
|
+
Free Smart Links are the easiest place for an agent to help:
|
|
19
52
|
|
|
20
|
-
|
|
53
|
+
- Turn a Spotify release into a public landing page.
|
|
54
|
+
- Import an artist catalog into an artist hub.
|
|
55
|
+
- Return the shareable URL immediately.
|
|
56
|
+
- Check link status, analytics, theme/settings, and publish state.
|
|
57
|
+
- Update or publish a link when the user clearly asks.
|
|
58
|
+
|
|
59
|
+
That gives artists something useful right away, and it gives promotion teams a
|
|
60
|
+
clean next step when the release is ready to push.
|
|
61
|
+
|
|
62
|
+
## 🚦 Promotion Readiness
|
|
63
|
+
|
|
64
|
+
Before a campaign can move, a lot of small things have to be true. Dynamoi MCP
|
|
65
|
+
helps agents answer the practical questions:
|
|
66
|
+
|
|
67
|
+
| Question | What Dynamoi can check |
|
|
21
68
|
| --- | --- |
|
|
22
|
-
|
|
|
23
|
-
|
|
|
24
|
-
|
|
|
25
|
-
|
|
|
26
|
-
| YouTube growth | Start YouTube channel linking and inspect campaign/account readiness for creator growth workflows. |
|
|
27
|
-
| OpenAI connectors | Expose `search` and `fetch` for ChatGPT Deep Research style retrieval. |
|
|
69
|
+
| "Is this artist ready?" | Account access, artist records, platform status, and missing setup. |
|
|
70
|
+
| "Can this campaign launch?" | Readiness, billing state, supported countries, media assets, and deployment status. |
|
|
71
|
+
| "What needs attention?" | Active campaigns, Smart Links, analytics, and next actions. |
|
|
72
|
+
| "Are we connected?" | YouTube and Meta connection state, plus connection-start flows where available. |
|
|
28
73
|
|
|
29
|
-
##
|
|
74
|
+
## 🧠 Built For Any MCP Agent
|
|
30
75
|
|
|
31
|
-
|
|
32
|
-
client that supports Streamable HTTP
|
|
76
|
+
This is a general MCP server, not a single-chat-product integration. Use the
|
|
77
|
+
hosted endpoint from any MCP-capable client that supports remote Streamable HTTP:
|
|
33
78
|
|
|
34
79
|
```json
|
|
35
80
|
{
|
|
@@ -41,47 +86,17 @@ client that supports Streamable HTTP remote servers.
|
|
|
41
86
|
}
|
|
42
87
|
```
|
|
43
88
|
|
|
44
|
-
Authentication
|
|
45
|
-
account, and the
|
|
46
|
-
|
|
47
|
-
## Why Artists Use It
|
|
48
|
-
|
|
49
|
-
Most music tools stop at a dashboard. Dynamoi is built for the moment after the
|
|
50
|
-
dashboard exists, when an artist asks:
|
|
51
|
-
|
|
52
|
-
- "Make me a link for this release."
|
|
53
|
-
- "What is blocking my campaign?"
|
|
54
|
-
- "Which countries can I launch in?"
|
|
55
|
-
- "Connect my YouTube channel."
|
|
56
|
-
- "Get my Smart Link ready, then help me promote it."
|
|
57
|
-
|
|
58
|
-
The assistant can move through those steps with the user instead of sending them
|
|
59
|
-
back and forth between tabs.
|
|
89
|
+
Authentication runs through Dynamoi OAuth. Users sign in with their Dynamoi
|
|
90
|
+
account, and the connected agent receives only the scopes needed for the tools it
|
|
91
|
+
calls.
|
|
60
92
|
|
|
61
|
-
##
|
|
93
|
+
## 🧰 Package Usage
|
|
62
94
|
|
|
63
|
-
|
|
95
|
+
Most artists and labels do **not** need to install anything. They should connect
|
|
96
|
+
the hosted MCP server.
|
|
64
97
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
- artist analytics
|
|
68
|
-
- campaign lists, details, readiness, deployment status, and updates
|
|
69
|
-
- billing and platform status checks
|
|
70
|
-
- Meta and YouTube connection starts
|
|
71
|
-
- media asset selection
|
|
72
|
-
- managed campaign launch workflows
|
|
73
|
-
- Smart Link creation, listing, details, analytics, settings, and publishing
|
|
74
|
-
- OpenAI `search` and `fetch`
|
|
75
|
-
|
|
76
|
-
The server also publishes prompts and resources that teach assistants how to answer
|
|
77
|
-
Dynamoi-specific questions without over-calling tools or creating paid workflows
|
|
78
|
-
when the user only asked for a free Smart Link.
|
|
79
|
-
|
|
80
|
-
## Package Usage
|
|
81
|
-
|
|
82
|
-
Most users do not need to install this package. Install it when you are working on
|
|
83
|
-
the Dynamoi MCP server implementation, testing the public contract, or consuming
|
|
84
|
-
the exported schemas and types.
|
|
98
|
+
Install `@dynamoi/mcp` when you are building against the public Dynamoi MCP
|
|
99
|
+
contract:
|
|
85
100
|
|
|
86
101
|
```bash
|
|
87
102
|
npm install @dynamoi/mcp
|
|
@@ -106,20 +121,52 @@ const server = createDynamoiMcpServer({
|
|
|
106
121
|
```
|
|
107
122
|
|
|
108
123
|
`handleMcpHttpRequest` provides Streamable HTTP request handling with session
|
|
109
|
-
binding so an MCP session cannot drift across authenticated users.
|
|
124
|
+
binding, so an MCP session cannot drift across authenticated users.
|
|
125
|
+
|
|
126
|
+
### What Ships In This Package
|
|
127
|
+
|
|
128
|
+
| Included | Purpose |
|
|
129
|
+
| --- | --- |
|
|
130
|
+
| Tool schemas | The public MCP contract exposed by Dynamoi. |
|
|
131
|
+
| Prompts and resources | Guidance for Dynamoi-specific agent workflows. |
|
|
132
|
+
| Protected-resource metadata | OAuth discovery metadata for compatible clients. |
|
|
133
|
+
| HTTP transport helpers | Streamable HTTP handling with session binding. |
|
|
134
|
+
| TypeScript types | Integration-safe contracts for hosted server code. |
|
|
135
|
+
|
|
136
|
+
## 🛡️ Safety Model
|
|
137
|
+
|
|
138
|
+
Dynamoi MCP is built for real artist and label workflows, so the server keeps
|
|
139
|
+
clear boundaries around what an agent can do.
|
|
110
140
|
|
|
111
|
-
|
|
141
|
+
| Safety layer | What it protects |
|
|
142
|
+
| --- | --- |
|
|
143
|
+
| 🔐 OAuth scopes | Agents only get the account access the user grants. |
|
|
144
|
+
| 👀 Read-only hints | Read tools are marked as read-only. |
|
|
145
|
+
| ✍️ Mutation descriptions | Write tools describe the external action they may take. |
|
|
146
|
+
| ✅ User intent gates | Launch and campaign-update workflows require clear user intent. |
|
|
147
|
+
| 💳 Paid-flow separation | Direct paid checkout is not exposed to connected agents. |
|
|
148
|
+
| 🔗 Smart Link boundary | Free Smart Link creation stays separate from managed advertising launch. |
|
|
149
|
+
|
|
150
|
+
## 💬 Good First Prompts
|
|
151
|
+
|
|
152
|
+
Try these from any connected MCP agent:
|
|
153
|
+
|
|
154
|
+
> 🎧 Create a Smart Link for this Spotify release.
|
|
112
155
|
|
|
113
|
-
|
|
114
|
-
- Mutating tools describe the external action they may take.
|
|
115
|
-
- Launch and campaign-update workflows require explicit user intent.
|
|
116
|
-
- Direct paid checkout is not exposed through the ChatGPT-visible tool surface.
|
|
117
|
-
- Smart Link creation is separate from managed advertising launch.
|
|
156
|
+
> 🚦 What is blocking this campaign from launching?
|
|
118
157
|
|
|
119
|
-
|
|
158
|
+
> 📈 Show me the active campaigns that need attention.
|
|
120
159
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
160
|
+
> 📺 Help me connect my YouTube channel.
|
|
161
|
+
|
|
162
|
+
> 🚀 Get this release ready to promote.
|
|
163
|
+
|
|
164
|
+
## 🔗 Links
|
|
165
|
+
|
|
166
|
+
| Resource | URL |
|
|
167
|
+
| --- | --- |
|
|
168
|
+
| Website | <https://dynamoi.com> |
|
|
169
|
+
| Hosted MCP endpoint | <https://dynamoi.com/mcp> |
|
|
170
|
+
| npm package | <https://www.npmjs.com/package/@dynamoi/mcp> |
|
|
171
|
+
| Repository | <https://github.com/getDynamoi/mcp> |
|
|
172
|
+
| Changelog | [CHANGELOG.md](./CHANGELOG.md) |
|
|
@@ -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"
|
|
8
|
+
declare const DYNAMOI_MCP_SCOPES: readonly ["email", "profile"];
|
|
9
9
|
declare function buildProtectedResourceMetadata(options: {
|
|
10
10
|
resource: string;
|
|
11
11
|
authorizationServers: string[];
|
|
@@ -14,6 +14,7 @@ declare function buildProtectedResourceMetadata(options: {
|
|
|
14
14
|
}): ProtectedResourceMetadata;
|
|
15
15
|
declare function buildWwwAuthenticateHeader(options: {
|
|
16
16
|
resourceMetadataUrl: string;
|
|
17
|
+
errorDescription?: string;
|
|
17
18
|
error?: "insufficient_scope" | "invalid_token";
|
|
18
19
|
scope?: string;
|
|
19
20
|
}): string;
|
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
// src/auth/protected-resource.ts
|
|
2
|
-
var DYNAMOI_MCP_SCOPES = [
|
|
3
|
-
"email",
|
|
4
|
-
"profile",
|
|
5
|
-
"dynamoi:read",
|
|
6
|
-
"dynamoi:billing.read",
|
|
7
|
-
"dynamoi:platform.read",
|
|
8
|
-
"dynamoi:platform.write",
|
|
9
|
-
"dynamoi:campaign.write",
|
|
10
|
-
"dynamoi:campaign.launch",
|
|
11
|
-
"dynamoi:smart_links.write"
|
|
12
|
-
];
|
|
2
|
+
var DYNAMOI_MCP_SCOPES = ["email", "profile"];
|
|
13
3
|
function buildProtectedResourceMetadata(options) {
|
|
14
4
|
return {
|
|
15
5
|
authorization_servers: options.authorizationServers,
|
|
@@ -23,8 +13,18 @@ function buildProtectedResourceMetadata(options) {
|
|
|
23
13
|
}
|
|
24
14
|
function buildWwwAuthenticateHeader(options) {
|
|
25
15
|
const scope = options.scope ?? "email profile";
|
|
26
|
-
const error = options.error
|
|
27
|
-
|
|
16
|
+
const error = options.error ?? "invalid_token";
|
|
17
|
+
const errorDescription = options.errorDescription ?? (error === "insufficient_scope" ? "Additional Dynamoi permissions are required." : "Sign in to Dynamoi to continue.");
|
|
18
|
+
const params = [
|
|
19
|
+
`resource_metadata="${escapeHeaderValue(options.resourceMetadataUrl)}"`,
|
|
20
|
+
`scope="${escapeHeaderValue(scope)}"`,
|
|
21
|
+
`error="${escapeHeaderValue(error)}"`,
|
|
22
|
+
`error_description="${escapeHeaderValue(errorDescription)}"`
|
|
23
|
+
];
|
|
24
|
+
return `Bearer ${params.join(", ")}`;
|
|
25
|
+
}
|
|
26
|
+
function escapeHeaderValue(value) {
|
|
27
|
+
return value.replaceAll("\\", "\\\\").replaceAll('"', '\\"');
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export {
|
|
@@ -32,4 +32,4 @@ export {
|
|
|
32
32
|
buildProtectedResourceMetadata,
|
|
33
33
|
buildWwwAuthenticateHeader
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=chunk-
|
|
35
|
+
//# sourceMappingURL=chunk-CHQUK72A.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\n// Supabase OAuth Server currently rejects custom resource scopes, so the public\n// MCP auth contract advertises only the standard identity scopes it can mint.\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\terrorDescription?: string;\n\terror?: \"insufficient_scope\" | \"invalid_token\";\n\tscope?: string;\n}): string {\n\tconst scope = options.scope ?? \"email profile\";\n\tconst error = options.error ?? \"invalid_token\";\n\tconst errorDescription =\n\t\toptions.errorDescription ??\n\t\t(error === \"insufficient_scope\"\n\t\t\t? \"Additional Dynamoi permissions are required.\"\n\t\t\t: \"Sign in to Dynamoi to continue.\");\n\tconst params = [\n\t\t`resource_metadata=\"${escapeHeaderValue(options.resourceMetadataUrl)}\"`,\n\t\t`scope=\"${escapeHeaderValue(scope)}\"`,\n\t\t`error=\"${escapeHeaderValue(error)}\"`,\n\t\t`error_description=\"${escapeHeaderValue(errorDescription)}\"`,\n\t];\n\t// RFC 6750 style with resource metadata extension.\n\treturn `Bearer ${params.join(\", \")}`;\n}\n\nfunction escapeHeaderValue(value: string): string {\n\treturn value.replaceAll(\"\\\\\", \"\\\\\\\\\").replaceAll('\"', '\\\\\"');\n}\n"],"mappings":";AAUO,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,SAKhC;AACV,QAAM,QAAQ,QAAQ,SAAS;AAC/B,QAAM,QAAQ,QAAQ,SAAS;AAC/B,QAAM,mBACL,QAAQ,qBACP,UAAU,uBACR,iDACA;AACJ,QAAM,SAAS;AAAA,IACd,sBAAsB,kBAAkB,QAAQ,mBAAmB,CAAC;AAAA,IACpE,UAAU,kBAAkB,KAAK,CAAC;AAAA,IAClC,UAAU,kBAAkB,KAAK,CAAC;AAAA,IAClC,sBAAsB,kBAAkB,gBAAgB,CAAC;AAAA,EAC1D;AAEA,SAAO,UAAU,OAAO,KAAK,IAAI,CAAC;AACnC;AAEA,SAAS,kBAAkB,OAAuB;AACjD,SAAO,MAAM,WAAW,MAAM,MAAM,EAAE,WAAW,KAAK,KAAK;AAC5D;","names":[]}
|