@dynamoi/mcp 0.6.4 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/CAPABILITY_PARITY.md +60 -0
  2. package/CHANGELOG.md +37 -1
  3. package/README.md +25 -7
  4. package/dist/auth/protected-resource.d.ts +34 -5
  5. package/dist/auth/protected-resource.d.ts.map +1 -0
  6. package/dist/auth/protected-resource.js +10 -4
  7. package/dist/auth/protected-resource.js.map +9 -1
  8. package/dist/auth/verify-token.d.ts +21 -0
  9. package/dist/auth/verify-token.d.ts.map +1 -0
  10. package/dist/chunk-2jm8hjsz.js +96 -0
  11. package/dist/chunk-2jm8hjsz.js.map +10 -0
  12. package/dist/chunk-kb3xpcrb.js +9 -0
  13. package/dist/chunk-kb3xpcrb.js.map +10 -0
  14. package/dist/consent.d.ts +4 -0
  15. package/dist/consent.d.ts.map +1 -0
  16. package/dist/consent.js +13 -0
  17. package/dist/consent.js.map +9 -0
  18. package/dist/flow-types.d.ts +160 -0
  19. package/dist/flow-types.d.ts.map +1 -0
  20. package/dist/index.d.ts +14 -2464
  21. package/dist/index.d.ts.map +1 -0
  22. package/dist/index.js +1592 -1408
  23. package/dist/index.js.map +26 -1
  24. package/dist/readiness-types.d.ts +88 -0
  25. package/dist/readiness-types.d.ts.map +1 -0
  26. package/dist/server/create-server.d.ts +84 -0
  27. package/dist/server/create-server.d.ts.map +1 -0
  28. package/dist/server/distribution-tools.d.ts +72 -0
  29. package/dist/server/distribution-tools.d.ts.map +1 -0
  30. package/dist/server/instructions.d.ts +3 -0
  31. package/dist/server/instructions.d.ts.map +1 -0
  32. package/dist/server/onboarding-tool-definitions.d.ts +56 -0
  33. package/dist/server/onboarding-tool-definitions.d.ts.map +1 -0
  34. package/dist/server/openai-tools.d.ts +88 -0
  35. package/dist/server/openai-tools.d.ts.map +1 -0
  36. package/dist/server/output-schemas.d.ts +122 -0
  37. package/dist/server/output-schemas.d.ts.map +1 -0
  38. package/dist/server/playbook-resources.d.ts +3 -0
  39. package/dist/server/playbook-resources.d.ts.map +1 -0
  40. package/dist/server/prompts.d.ts +3 -0
  41. package/dist/server/prompts.d.ts.map +1 -0
  42. package/dist/server/resources.d.ts +4 -0
  43. package/dist/server/resources.d.ts.map +1 -0
  44. package/dist/server/shared-schemas.d.ts +14 -0
  45. package/dist/server/shared-schemas.d.ts.map +1 -0
  46. package/dist/server/smart-link-theme-preview.d.ts +48 -0
  47. package/dist/server/smart-link-theme-preview.d.ts.map +1 -0
  48. package/dist/server/smart-link-tools.d.ts +346 -0
  49. package/dist/server/smart-link-tools.d.ts.map +1 -0
  50. package/dist/server/tools.d.ts +878 -0
  51. package/dist/server/tools.d.ts.map +1 -0
  52. package/dist/server/workflow-tools.d.ts +93 -0
  53. package/dist/server/workflow-tools.d.ts.map +1 -0
  54. package/dist/transport/http.d.ts +9 -0
  55. package/dist/transport/http.d.ts.map +1 -0
  56. package/dist/types.d.ts +469 -0
  57. package/dist/types.d.ts.map +1 -0
  58. package/dist/version.d.ts +2 -0
  59. package/dist/version.d.ts.map +1 -0
  60. package/package.json +19 -9
  61. package/server.json +3 -3
  62. package/dist/chunk-CHQUK72A.js +0 -35
  63. package/dist/chunk-CHQUK72A.js.map +0 -1
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "$schema": "https://www.schemastore.org/package",
3
3
  "name": "@dynamoi/mcp",
4
- "version": "0.6.4",
4
+ "version": "0.7.0",
5
+ "packageManager": "bun@1.3.14",
5
6
  "mcpName": "io.github.getDynamoi/dynamoi",
6
7
  "type": "module",
7
8
  "license": "MIT",
8
- "description": "Remote MCP server for music promotion agents. Create free Smart Links, check artist and campaign readiness, and help musicians and labels get releases ready to promote.",
9
+ "description": "Remote MCP server for music promotion agents. Create campaigns and Smart Links, review analytics, and handle music distribution applications for artists and labels.",
9
10
  "keywords": [
10
11
  "mcp",
11
12
  "model-context-protocol",
@@ -20,6 +21,7 @@
20
21
  "ad-automation",
21
22
  "youtube-ads",
22
23
  "music-advertising",
24
+ "music-distribution",
23
25
  "spotify-streams",
24
26
  "facebook-ads",
25
27
  "instagram-ads"
@@ -35,6 +37,7 @@
35
37
  "main": "./dist/index.js",
36
38
  "types": "./dist/index.d.ts",
37
39
  "files": [
40
+ "CAPABILITY_PARITY.md",
38
41
  "dist",
39
42
  "server.json",
40
43
  "README.md",
@@ -51,28 +54,35 @@
51
54
  "types": "./dist/auth/protected-resource.d.ts",
52
55
  "import": "./dist/auth/protected-resource.js",
53
56
  "default": "./dist/auth/protected-resource.js"
57
+ },
58
+ "./consent": {
59
+ "types": "./dist/consent.d.ts",
60
+ "import": "./dist/consent.js",
61
+ "default": "./dist/consent.js"
54
62
  }
55
63
  },
56
64
  "publishConfig": {
57
65
  "access": "public"
58
66
  },
59
67
  "scripts": {
60
- "build": "tsup",
61
- "dev": "tsup --watch",
62
- "typecheck": "tsgo --noEmit -p tsconfig.json",
68
+ "build": "bun scripts/build.cjs",
69
+ "dev": "bun scripts/build.cjs --watch",
70
+ "typecheck": "bun ../../scripts/validate/with-heavy-slot.ts --class typecheck --wait-timeout-minutes 60 -- tsc --noEmit -p tsconfig.json",
71
+ "registry:validate": "bun scripts/registry-contract.ts local",
72
+ "registry:wait:npm": "bun scripts/registry-contract.ts npm --attempts 24 --delay-ms 5000",
73
+ "registry:wait:official": "bun scripts/registry-contract.ts registry --attempts 24 --delay-ms 5000",
63
74
  "changeset": "changeset",
64
75
  "changeset:version": "changeset version",
65
76
  "changeset:publish": "changeset publish"
66
77
  },
67
78
  "dependencies": {
68
- "@modelcontextprotocol/sdk": "1.29.0",
79
+ "@modelcontextprotocol/sdk": "1.30.0",
69
80
  "jose": "6.2.3",
70
- "zod": "4.3.6"
81
+ "zod": "4.4.3"
71
82
  },
72
83
  "devDependencies": {
73
84
  "@types/node": "25.6.0",
74
85
  "@changesets/cli": "2.31.0",
75
- "typescript": "6.0.3",
76
- "tsup": "8.5.1"
86
+ "typescript": "7.0.2"
77
87
  }
78
88
  }
package/server.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
3
  "name": "io.github.getDynamoi/dynamoi",
4
4
  "title": "Dynamoi",
5
- "description": "Create free Smart Links from Spotify, check artist and campaign readiness, view analytics, and help music teams get releases ready to promote.",
6
- "version": "0.6.4",
5
+ "description": "Create music promotion campaigns, build Smart Links, review analytics, and handle music distribution applications for artists and labels.",
6
+ "version": "0.7.0",
7
7
  "websiteUrl": "https://dynamoi.com",
8
8
  "repository": {
9
9
  "url": "https://github.com/getDynamoi/mcp",
@@ -14,7 +14,7 @@
14
14
  {
15
15
  "registryType": "npm",
16
16
  "identifier": "@dynamoi/mcp",
17
- "version": "0.6.4",
17
+ "version": "0.7.0",
18
18
  "transport": {
19
19
  "type": "streamable-http",
20
20
  "url": "https://dynamoi.com/mcp"
@@ -1,35 +0,0 @@
1
- // src/auth/protected-resource.ts
2
- var DYNAMOI_MCP_SCOPES = ["email", "profile"];
3
- function buildProtectedResourceMetadata(options) {
4
- return {
5
- authorization_servers: options.authorizationServers,
6
- bearer_methods_supported: ["header"],
7
- resource: options.resource,
8
- ...options.resourceDocumentation ? { resource_documentation: options.resourceDocumentation } : {},
9
- // Supabase OAuth Server (beta) can fail token exchange when `openid` is requested
10
- // (it attempts to mint an ID token). Our MCP only needs an access token.
11
- scopes_supported: options.scopesSupported ?? [...DYNAMOI_MCP_SCOPES]
12
- };
13
- }
14
- function buildWwwAuthenticateHeader(options) {
15
- const scope = options.scope ?? "email profile";
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
- }
29
-
30
- export {
31
- DYNAMOI_MCP_SCOPES,
32
- buildProtectedResourceMetadata,
33
- buildWwwAuthenticateHeader
34
- };
35
- //# sourceMappingURL=chunk-CHQUK72A.js.map
@@ -1 +0,0 @@
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":[]}