@dynamoi/mcp 0.4.1 → 0.5.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/CHANGELOG.md +24 -0
- package/dist/auth/protected-resource.d.ts +21 -0
- package/dist/auth/protected-resource.js +11 -0
- package/dist/auth/protected-resource.js.map +1 -0
- package/dist/chunk-U5Y6RJS2.js +36 -0
- package/dist/chunk-U5Y6RJS2.js.map +1 -0
- package/dist/index.d.ts +1551 -96
- package/dist/index.js +1325 -405
- package/dist/index.js.map +1 -1
- package/package.json +13 -8
- package/server.json +3 -3
- package/README.md +0 -192
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,30 @@ and [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.5.1] - 2026-05-01
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Added the `@dynamoi/mcp/auth` sub-entrypoint so public/static discovery code can build OAuth protected-resource metadata without bundling Node-only MCP server transport code.
|
|
15
|
+
|
|
16
|
+
## [0.5.0] - 2026-04-30
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- New free Smart Link tools: `dynamoi_create_smart_link_from_spotify`, `dynamoi_list_smart_links`, `dynamoi_get_smart_link`, `dynamoi_get_smart_link_analytics`, `dynamoi_get_smart_link_artist_settings`, `dynamoi_update_smart_link`, `dynamoi_update_smart_link_artist_settings`, `dynamoi_publish_smart_link`, and `dynamoi_unpublish_smart_link`.
|
|
21
|
+
- Smart Link MCP resources documenting free-plan terms, capabilities, Spotify inputs, themes, pixel policy, and status meanings.
|
|
22
|
+
- OAuth protected-resource metadata now advertises the `dynamoi:smart_links.write` scope.
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- `dynamoi_search` now searches PlayLink-native Smart Links instead of legacy campaign SmartLink records.
|
|
27
|
+
- Runtime instructions, package metadata, and public discovery copy now distinguish free Smart Links from paid managed advertising campaigns.
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
|
|
31
|
+
- Smart Link analytics breakdowns now aggregate across the requested date range instead of showing only the last day.
|
|
32
|
+
- Creating a Smart Link from Spotify no longer returns a soft-deleted link as a successful existing result.
|
|
33
|
+
|
|
10
34
|
## [0.4.1] - 2026-02-13
|
|
11
35
|
|
|
12
36
|
### Added
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type ProtectedResourceMetadata = {
|
|
2
|
+
authorization_servers: string[];
|
|
3
|
+
bearer_methods_supported: ["header"];
|
|
4
|
+
resource: string;
|
|
5
|
+
resource_documentation?: string;
|
|
6
|
+
scopes_supported: string[];
|
|
7
|
+
};
|
|
8
|
+
declare const DYNAMOI_MCP_SCOPES: readonly ["email", "profile", "dynamoi:read", "dynamoi:campaign.write", "dynamoi:campaign.launch", "dynamoi:billing.read", "dynamoi:platform.read", "dynamoi:smart_links.write", "dynamoi:audit.read", "dynamoi:admin"];
|
|
9
|
+
declare function buildProtectedResourceMetadata(options: {
|
|
10
|
+
resource: string;
|
|
11
|
+
authorizationServers: string[];
|
|
12
|
+
resourceDocumentation?: string;
|
|
13
|
+
scopesSupported?: string[];
|
|
14
|
+
}): ProtectedResourceMetadata;
|
|
15
|
+
declare function buildWwwAuthenticateHeader(options: {
|
|
16
|
+
resourceMetadataUrl: string;
|
|
17
|
+
error?: "insufficient_scope" | "invalid_token";
|
|
18
|
+
scope?: string;
|
|
19
|
+
}): string;
|
|
20
|
+
|
|
21
|
+
export { DYNAMOI_MCP_SCOPES, buildProtectedResourceMetadata, buildWwwAuthenticateHeader };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DYNAMOI_MCP_SCOPES,
|
|
3
|
+
buildProtectedResourceMetadata,
|
|
4
|
+
buildWwwAuthenticateHeader
|
|
5
|
+
} from "../chunk-U5Y6RJS2.js";
|
|
6
|
+
export {
|
|
7
|
+
DYNAMOI_MCP_SCOPES,
|
|
8
|
+
buildProtectedResourceMetadata,
|
|
9
|
+
buildWwwAuthenticateHeader
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=protected-resource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// src/auth/protected-resource.ts
|
|
2
|
+
var DYNAMOI_MCP_SCOPES = [
|
|
3
|
+
"email",
|
|
4
|
+
"profile",
|
|
5
|
+
"dynamoi:read",
|
|
6
|
+
"dynamoi:campaign.write",
|
|
7
|
+
"dynamoi:campaign.launch",
|
|
8
|
+
"dynamoi:billing.read",
|
|
9
|
+
"dynamoi:platform.read",
|
|
10
|
+
"dynamoi:smart_links.write",
|
|
11
|
+
"dynamoi:audit.read",
|
|
12
|
+
"dynamoi:admin"
|
|
13
|
+
];
|
|
14
|
+
function buildProtectedResourceMetadata(options) {
|
|
15
|
+
return {
|
|
16
|
+
authorization_servers: options.authorizationServers,
|
|
17
|
+
bearer_methods_supported: ["header"],
|
|
18
|
+
resource: options.resource,
|
|
19
|
+
...options.resourceDocumentation ? { resource_documentation: options.resourceDocumentation } : {},
|
|
20
|
+
// Supabase OAuth Server (beta) can fail token exchange when `openid` is requested
|
|
21
|
+
// (it attempts to mint an ID token). Our MCP only needs an access token.
|
|
22
|
+
scopes_supported: options.scopesSupported ?? [...DYNAMOI_MCP_SCOPES]
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function buildWwwAuthenticateHeader(options) {
|
|
26
|
+
const scope = options.scope ?? "email profile dynamoi:read";
|
|
27
|
+
const error = options.error ? `, error="${options.error}"` : "";
|
|
28
|
+
return `Bearer resource_metadata="${options.resourceMetadataUrl}", scope="${scope}"${error}`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
DYNAMOI_MCP_SCOPES,
|
|
33
|
+
buildProtectedResourceMetadata,
|
|
34
|
+
buildWwwAuthenticateHeader
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=chunk-U5Y6RJS2.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:campaign.write\",\n\t\"dynamoi:campaign.launch\",\n\t\"dynamoi:billing.read\",\n\t\"dynamoi:platform.read\",\n\t\"dynamoi:smart_links.write\",\n\t\"dynamoi:audit.read\",\n\t\"dynamoi:admin\",\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 dynamoi:read\";\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;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":[]}
|