@dynamoi/mcp 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,34 @@ and [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.6.2] - 2026-05-12
11
+
12
+ ### Added
13
+
14
+ - Added a public package README so npm users can see the hosted MCP endpoint, assistant capabilities, safety model, and package usage examples directly on npmjs.com.
15
+
16
+ ### Changed
17
+
18
+ - Included `README.md` in the published package file list so the npm package page renders the public overview with each release.
19
+
20
+ ## [0.6.1] - 2026-05-07
21
+
22
+ ### Added
23
+
24
+ - Added `dynamoi_create_smart_links_from_spotify_artist` so assistants can start a free Spotify artist catalog Smart Link import, return the artist hub, and keep users in the MCP flow instead of sending them to the dashboard.
25
+ - Added `dynamoi_start_youtube_channel_link` and `dynamoi_start_meta_connection` so assistants can start YouTube channel linking and Meta connection from chat.
26
+
27
+ ### Changed
28
+
29
+ - Smart Link tool metadata, instructions, resources, and docs now distinguish single-release creation from full artist catalog/hub creation.
30
+ - Consolidated the public tool surface: campaign analytics/deployment now live behind `dynamoi_get_campaign` include flags, campaign mutations use `dynamoi_update_campaign`, and Smart Link analytics/settings/publish controls are folded into `dynamoi_get_smart_link` and `dynamoi_update_smart_link`.
31
+ - `dynamoi_list_artists` now accepts `artistId` for one artist's full profile/readiness details, replacing the separate one-artist read tool in the advertised connector surface.
32
+ - Billing guidance now routes managed-advertising payment setup through the Dynamoi dashboard instead of direct ChatGPT checkout.
33
+
34
+ ### Removed
35
+
36
+ - Removed `dynamoi_start_subscription_checkout` from the public connector surface so the ChatGPT app does not expose direct paid checkout. Assistants should use `dynamoi_get_billing` for status and direct users to complete billing setup in Dynamoi.
37
+
10
38
  ## [0.6.0] - 2026-05-02
11
39
 
12
40
  ### Added
@@ -84,7 +112,6 @@ and [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
84
112
 
85
113
  - Removed wording in public docs that could be misinterpreted as describing internal spend calculations.
86
114
 
87
-
88
115
  ## [0.3.0] - 2026-02-12
89
116
 
90
117
  ### Added
package/README.md ADDED
@@ -0,0 +1,125 @@
1
+ # Dynamoi MCP
2
+
3
+ Music promotion tools for AI assistants.
4
+
5
+ Dynamoi lets ChatGPT, Claude, Gemini, and other MCP clients work with an artist's
6
+ real promotion workspace: Smart Links, artist hubs, campaign readiness, platform
7
+ connections, YouTube growth, Meta campaigns, billing status, and launch workflows.
8
+
9
+ The normal way to use it is the hosted remote MCP server:
10
+
11
+ ```txt
12
+ https://dynamoi.com/mcp
13
+ ```
14
+
15
+ This npm package is the public contract behind that server: tool schemas, resource
16
+ metadata, transport helpers, and TypeScript types for the hosted implementation.
17
+
18
+ ## What It Does
19
+
20
+ | Area | Assistant can help with |
21
+ | --- | --- |
22
+ | Free Smart Links | Create Spotify release links, import artist catalogs, return public URLs, inspect analytics, update themes, and publish or unpublish links. |
23
+ | Artist workspace | List artists, search records, summarize account state, and explain the best next action for a brand-new or returning user. |
24
+ | Campaign planning | Check launch readiness, country availability, billing state, platform connections, and media assets before anything is created. |
25
+ | Managed campaigns | Launch, pause, resume, and update Dynamoi campaign workflows after clear user confirmation. |
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. |
28
+
29
+ ## Connect
30
+
31
+ Use Dynamoi from the ChatGPT app directory, or add the remote server URL to any MCP
32
+ client that supports Streamable HTTP remote servers.
33
+
34
+ ```json
35
+ {
36
+ "mcpServers": {
37
+ "dynamoi": {
38
+ "url": "https://dynamoi.com/mcp"
39
+ }
40
+ }
41
+ }
42
+ ```
43
+
44
+ Authentication is handled through Dynamoi OAuth. Users sign in with their Dynamoi
45
+ account, and the assistant only receives the scopes needed for the tools it calls.
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.
60
+
61
+ ## Tool Surface
62
+
63
+ The public server includes tools for:
64
+
65
+ - account overview and routing
66
+ - artist and campaign search
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.
85
+
86
+ ```bash
87
+ npm install @dynamoi/mcp
88
+ ```
89
+
90
+ ```ts
91
+ import {
92
+ buildProtectedResourceMetadata,
93
+ createDynamoiMcpServer,
94
+ handleMcpHttpRequest,
95
+ } from "@dynamoi/mcp";
96
+ ```
97
+
98
+ The server factory expects an adapter that connects the public MCP contract to
99
+ Dynamoi's private application services:
100
+
101
+ ```ts
102
+ const server = createDynamoiMcpServer({
103
+ adapter,
104
+ websiteUrl: "https://dynamoi.com",
105
+ });
106
+ ```
107
+
108
+ `handleMcpHttpRequest` provides Streamable HTTP request handling with session
109
+ binding so an MCP session cannot drift across authenticated users.
110
+
111
+ ## Safety Model
112
+
113
+ - Read tools are annotated as read-only.
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.
118
+
119
+ ## Links
120
+
121
+ - Website: <https://dynamoi.com>
122
+ - Hosted MCP endpoint: <https://dynamoi.com/mcp>
123
+ - Package: <https://www.npmjs.com/package/@dynamoi/mcp>
124
+ - Repository: <https://github.com/getDynamoi/mcp>
125
+ - 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", "dynamoi:read", "dynamoi:billing.read", "dynamoi:platform.read", "dynamoi:platform.write", "dynamoi:campaign.write", "dynamoi:campaign.launch", "dynamoi:smart_links.write"];
9
9
  declare function buildProtectedResourceMetadata(options: {
10
10
  resource: string;
11
11
  authorizationServers: string[];
@@ -2,7 +2,7 @@ import {
2
2
  DYNAMOI_MCP_SCOPES,
3
3
  buildProtectedResourceMetadata,
4
4
  buildWwwAuthenticateHeader
5
- } from "../chunk-6SBJ7DZU.js";
5
+ } from "../chunk-53YNLVA3.js";
6
6
  export {
7
7
  DYNAMOI_MCP_SCOPES,
8
8
  buildProtectedResourceMetadata,
@@ -1,5 +1,15 @@
1
1
  // src/auth/protected-resource.ts
2
- var DYNAMOI_MCP_SCOPES = ["email", "profile"];
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
+ ];
3
13
  function buildProtectedResourceMetadata(options) {
4
14
  return {
5
15
  authorization_servers: options.authorizationServers,
@@ -22,4 +32,4 @@ export {
22
32
  buildProtectedResourceMetadata,
23
33
  buildWwwAuthenticateHeader
24
34
  };
25
- //# sourceMappingURL=chunk-6SBJ7DZU.js.map
35
+ //# sourceMappingURL=chunk-53YNLVA3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/auth/protected-resource.ts"],"sourcesContent":["type ProtectedResourceMetadata = {\n\tauthorization_servers: string[];\n\tbearer_methods_supported: [\"header\"];\n\tresource: string;\n\tresource_documentation?: string;\n\tscopes_supported: string[];\n};\n\nexport const DYNAMOI_MCP_SCOPES = [\n\t\"email\",\n\t\"profile\",\n\t\"dynamoi:read\",\n\t\"dynamoi:billing.read\",\n\t\"dynamoi:platform.read\",\n\t\"dynamoi:platform.write\",\n\t\"dynamoi:campaign.write\",\n\t\"dynamoi:campaign.launch\",\n\t\"dynamoi:smart_links.write\",\n] as const;\n\nexport function buildProtectedResourceMetadata(options: {\n\tresource: string;\n\tauthorizationServers: string[];\n\tresourceDocumentation?: string;\n\tscopesSupported?: string[];\n}): ProtectedResourceMetadata {\n\treturn {\n\t\tauthorization_servers: options.authorizationServers,\n\t\tbearer_methods_supported: [\"header\"],\n\t\tresource: options.resource,\n\t\t...(options.resourceDocumentation\n\t\t\t? { resource_documentation: options.resourceDocumentation }\n\t\t\t: {}),\n\t\t// Supabase OAuth Server (beta) can fail token exchange when `openid` is requested\n\t\t// (it attempts to mint an ID token). Our MCP only needs an access token.\n\t\tscopes_supported: options.scopesSupported ?? [...DYNAMOI_MCP_SCOPES],\n\t};\n}\n\nexport function buildWwwAuthenticateHeader(options: {\n\tresourceMetadataUrl: string;\n\terror?: \"insufficient_scope\" | \"invalid_token\";\n\tscope?: string;\n}): string {\n\tconst scope = options.scope ?? \"email profile\";\n\tconst error = options.error ? `, error=\"${options.error}\"` : \"\";\n\t// RFC 6750 style with resource metadata extension.\n\treturn `Bearer resource_metadata=\"${options.resourceMetadataUrl}\", scope=\"${scope}\"${error}`;\n}\n"],"mappings":";AAQO,IAAM,qBAAqB;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAEO,SAAS,+BAA+B,SAKjB;AAC7B,SAAO;AAAA,IACN,uBAAuB,QAAQ;AAAA,IAC/B,0BAA0B,CAAC,QAAQ;AAAA,IACnC,UAAU,QAAQ;AAAA,IAClB,GAAI,QAAQ,wBACT,EAAE,wBAAwB,QAAQ,sBAAsB,IACxD,CAAC;AAAA;AAAA;AAAA,IAGJ,kBAAkB,QAAQ,mBAAmB,CAAC,GAAG,kBAAkB;AAAA,EACpE;AACD;AAEO,SAAS,2BAA2B,SAIhC;AACV,QAAM,QAAQ,QAAQ,SAAS;AAC/B,QAAM,QAAQ,QAAQ,QAAQ,YAAY,QAAQ,KAAK,MAAM;AAE7D,SAAO,6BAA6B,QAAQ,mBAAmB,aAAa,KAAK,IAAI,KAAK;AAC3F;","names":[]}