@adviverse/mcp 0.1.0 → 0.1.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/dist/http.js +9 -3
- package/dist/index.js +9 -3
- package/package.json +10 -2
package/dist/http.js
CHANGED
|
@@ -14965,11 +14965,16 @@ var SegmentsResource = class extends Resource {
|
|
|
14965
14965
|
catalog() {
|
|
14966
14966
|
return this.c.request("GET", "/v1/advertiser/segments/catalog");
|
|
14967
14967
|
}
|
|
14968
|
-
/** Contribute one of the account's audiences to the co-op
|
|
14969
|
-
*
|
|
14968
|
+
/** Contribute one of the account's audiences to the co-op. The niche is
|
|
14969
|
+
* auto-detected from the audience's members (taxonomyId is optional). Returns
|
|
14970
|
+
* the segment id, rev-share, and the resolved niche. */
|
|
14970
14971
|
contribute(body) {
|
|
14971
14972
|
return this.c.request("POST", "/v1/advertiser/segments/contribute", { body });
|
|
14972
14973
|
}
|
|
14974
|
+
/** The auto-detected interest/niche for an audience (from its members' keywords). */
|
|
14975
|
+
detectNiche(audienceId) {
|
|
14976
|
+
return this.c.request("GET", "/v1/advertiser/segments/detect-niche", { query: { audienceId } });
|
|
14977
|
+
}
|
|
14973
14978
|
/** Segments the account has contributed to the co-op (size, rev-share, licensees). */
|
|
14974
14979
|
contributions() {
|
|
14975
14980
|
return this.c.request("GET", "/v1/advertiser/segments/contributions");
|
|
@@ -24095,7 +24100,8 @@ function createServer(client) {
|
|
|
24095
24100
|
tool("delete_audience", "Delete an audience.", { id: external_exports.string() }, (a) => client.audiences.delete(a.id));
|
|
24096
24101
|
tool("segment_taxonomy", "Get the shared interest taxonomy (IAB-style nodes: id, parent, name, contextual keywords, sensitive flag).", {}, () => client.segments.taxonomy());
|
|
24097
24102
|
tool("segment_catalog", "Browse the segment catalog: for each interest, the CONTEXTUAL keywords (always usable \u2014 add to a campaign's targeting.contextual_include) and the BEHAVIORAL network preset when present ({ segmentId, size, dataCpm } \u2014 add segmentId to targeting.audience_include) or its build progress ({ size, needed }).", {}, () => client.segments.catalog());
|
|
24098
|
-
tool("contribute_segment", "Contribute one of the account's audiences to the privacy-safe co-op
|
|
24103
|
+
tool("contribute_segment", "Contribute one of the account's audiences to the privacy-safe co-op. The niche is AUTO-DETECTED from the audience's members' keywords \u2014 taxonomyId is optional (usually omit it). fields: { audienceId, revShare?, taxonomyId? }. Returns segmentId, revShare, and the resolved niche.", { fields }, (a) => client.segments.contribute(a.fields));
|
|
24104
|
+
tool("detect_niche", "Preview the auto-detected interest/niche for an audience (from its members' harvested keywords), before contributing it to the co-op.", { audienceId: external_exports.string() }, (a) => client.segments.detectNiche(a.audienceId));
|
|
24099
24105
|
tool("my_contributions", "List segments the account has contributed to the co-op (id, name, taxonomy_id, size, rev_share, licensees).", {}, () => client.segments.contributions());
|
|
24100
24106
|
tool("revoke_contribution", "Withdraw a contributed segment from the co-op.", { id: external_exports.string() }, (a) => client.segments.revoke(a.id));
|
|
24101
24107
|
tool("license_segment", "License a network behavioral segment for targeting. Returns { segmentId, dataCpm, note } \u2014 add segmentId to a campaign's targeting.audience_include.", { id: external_exports.string() }, (a) => client.segments.license(a.id));
|
package/dist/index.js
CHANGED
|
@@ -13726,11 +13726,16 @@ var SegmentsResource = class extends Resource {
|
|
|
13726
13726
|
catalog() {
|
|
13727
13727
|
return this.c.request("GET", "/v1/advertiser/segments/catalog");
|
|
13728
13728
|
}
|
|
13729
|
-
/** Contribute one of the account's audiences to the co-op
|
|
13730
|
-
*
|
|
13729
|
+
/** Contribute one of the account's audiences to the co-op. The niche is
|
|
13730
|
+
* auto-detected from the audience's members (taxonomyId is optional). Returns
|
|
13731
|
+
* the segment id, rev-share, and the resolved niche. */
|
|
13731
13732
|
contribute(body) {
|
|
13732
13733
|
return this.c.request("POST", "/v1/advertiser/segments/contribute", { body });
|
|
13733
13734
|
}
|
|
13735
|
+
/** The auto-detected interest/niche for an audience (from its members' keywords). */
|
|
13736
|
+
detectNiche(audienceId) {
|
|
13737
|
+
return this.c.request("GET", "/v1/advertiser/segments/detect-niche", { query: { audienceId } });
|
|
13738
|
+
}
|
|
13734
13739
|
/** Segments the account has contributed to the co-op (size, rev-share, licensees). */
|
|
13735
13740
|
contributions() {
|
|
13736
13741
|
return this.c.request("GET", "/v1/advertiser/segments/contributions");
|
|
@@ -22856,7 +22861,8 @@ function createServer(client) {
|
|
|
22856
22861
|
tool("delete_audience", "Delete an audience.", { id: external_exports.string() }, (a) => client.audiences.delete(a.id));
|
|
22857
22862
|
tool("segment_taxonomy", "Get the shared interest taxonomy (IAB-style nodes: id, parent, name, contextual keywords, sensitive flag).", {}, () => client.segments.taxonomy());
|
|
22858
22863
|
tool("segment_catalog", "Browse the segment catalog: for each interest, the CONTEXTUAL keywords (always usable \u2014 add to a campaign's targeting.contextual_include) and the BEHAVIORAL network preset when present ({ segmentId, size, dataCpm } \u2014 add segmentId to targeting.audience_include) or its build progress ({ size, needed }).", {}, () => client.segments.catalog());
|
|
22859
|
-
tool("contribute_segment", "Contribute one of the account's audiences to the privacy-safe co-op
|
|
22864
|
+
tool("contribute_segment", "Contribute one of the account's audiences to the privacy-safe co-op. The niche is AUTO-DETECTED from the audience's members' keywords \u2014 taxonomyId is optional (usually omit it). fields: { audienceId, revShare?, taxonomyId? }. Returns segmentId, revShare, and the resolved niche.", { fields }, (a) => client.segments.contribute(a.fields));
|
|
22865
|
+
tool("detect_niche", "Preview the auto-detected interest/niche for an audience (from its members' harvested keywords), before contributing it to the co-op.", { audienceId: external_exports.string() }, (a) => client.segments.detectNiche(a.audienceId));
|
|
22860
22866
|
tool("my_contributions", "List segments the account has contributed to the co-op (id, name, taxonomy_id, size, rev_share, licensees).", {}, () => client.segments.contributions());
|
|
22861
22867
|
tool("revoke_contribution", "Withdraw a contributed segment from the co-op.", { id: external_exports.string() }, (a) => client.segments.revoke(a.id));
|
|
22862
22868
|
tool("license_segment", "License a network behavioral segment for targeting. Returns { segmentId, dataCpm, note } \u2014 add segmentId to a campaign's targeting.audience_include.", { id: external_exports.string() }, (a) => client.segments.license(a.id));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adviverse/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "MCP server exposing the Adviverse ad network API as tools for AI agents.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|
|
@@ -22,9 +22,17 @@
|
|
|
22
22
|
"tsup": "^8.3.0",
|
|
23
23
|
"typescript": "^5.6.2",
|
|
24
24
|
"@types/node": "^22.0.0",
|
|
25
|
-
"@adviverse/sdk": "0.1.
|
|
25
|
+
"@adviverse/sdk": "0.1.1",
|
|
26
26
|
"@adnet/shared": "0.1.0"
|
|
27
27
|
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/Adviverse/mcp.git"
|
|
31
|
+
},
|
|
32
|
+
"homepage": "https://github.com/Adviverse/mcp#readme",
|
|
33
|
+
"bugs": {
|
|
34
|
+
"url": "https://github.com/Adviverse/mcp/issues"
|
|
35
|
+
},
|
|
28
36
|
"scripts": {
|
|
29
37
|
"build": "tsup",
|
|
30
38
|
"typecheck": "tsc --noEmit",
|