@adviverse/mcp 0.1.4 → 0.1.6
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 +10 -4
- package/dist/index.js +10 -4
- package/package.json +2 -2
package/dist/http.js
CHANGED
|
@@ -15495,13 +15495,17 @@ var PropertiesResource = class extends Resource {
|
|
|
15495
15495
|
list(page2) {
|
|
15496
15496
|
return this.c.request("GET", "/v1/publisher/properties", { query: page2 });
|
|
15497
15497
|
}
|
|
15498
|
+
get(id) {
|
|
15499
|
+
return this.c.request("GET", `/v1/publisher/properties/${encodeURIComponent(id)}`);
|
|
15500
|
+
}
|
|
15498
15501
|
create(body, idempotencyKey) {
|
|
15499
15502
|
return this.c.request("POST", "/v1/publisher/properties", { body, idempotencyKey });
|
|
15500
15503
|
}
|
|
15501
15504
|
/** Update a property's editable fields: display name, domain, category, and
|
|
15502
15505
|
* verification method. Changing the domain resets verification. `category`
|
|
15503
15506
|
* (a site-niche id) is kept as the publisher's manual choice; 0 hands it back
|
|
15504
|
-
* to auto-detection.
|
|
15507
|
+
* to auto-detection. `contextualWithoutConsent` / `enhancedCapping` write this
|
|
15508
|
+
* property's consent config (same as consent.saveConfig with its propertyId). */
|
|
15505
15509
|
update(id, body) {
|
|
15506
15510
|
return this.c.request("PATCH", `/v1/publisher/properties/${encodeURIComponent(id)}`, { body });
|
|
15507
15511
|
}
|
|
@@ -24455,10 +24459,11 @@ function createServer(client) {
|
|
|
24455
24459
|
tool("rotate_terminal_token", "Rotate a terminal serve token by id (its old value stops working immediately). Returns the new token. The switch policy is preserved.", { id: external_exports.string() }, (a) => client.terminal.rotateToken(a.id));
|
|
24456
24460
|
tool("revoke_terminal_token", "Revoke (delete) a terminal serve token by id.", { id: external_exports.string() }, (a) => client.terminal.revokeToken(a.id));
|
|
24457
24461
|
tool("list_properties", "List publisher properties (sites, CLIs, apps).", page, (a) => client.properties.list(a));
|
|
24462
|
+
tool("get_property", "Get one property (incl. trust_progress and the resolved consent switches contextual_without_consent / enhanced_capping).", { id: external_exports.string() }, (a) => client.properties.get(a.id));
|
|
24458
24463
|
tool("create_property", "Register a property. fields: { kind: website|cli|mobile_app|ctv, domain, name?, verificationMethod? }.", { fields, idempotencyKey: idem }, (a) => client.properties.create(a.fields, a.idempotencyKey));
|
|
24459
|
-
tool("update_property", "Update a property. fields: { name?, domain?, category? (site-niche id from list_site_niches; manual, 0 = back to auto-detect), verificationMethod?, crossFill? }. Changing the domain resets verification and trust.", { id: external_exports.string(), fields }, (a) => client.properties.update(a.id, a.fields));
|
|
24464
|
+
tool("update_property", "Update a property. fields: { name?, domain?, category? (site-niche id from list_site_niches; manual, 0 = back to auto-detect), verificationMethod?, crossFill?, contextualWithoutConsent? (Ads before consent), enhancedCapping? (Enhanced frequency capping, outside EEA/UK only) }. Changing the domain resets verification and trust.", { id: external_exports.string(), fields }, (a) => client.properties.update(a.id, a.fields));
|
|
24460
24465
|
tool("get_property_ads_txt", "A property's ads.txt line(s), to publish at https://<domain>/ads.txt.", { id: external_exports.string() }, (a) => client.properties.adsTxt(a.id));
|
|
24461
|
-
tool("verify_property", "Trigger ownership verification for a property.", { id: external_exports.string() }, (a) => client.properties.verify(a.id));
|
|
24466
|
+
tool("verify_property", "Trigger ownership verification for a property. On failure returns error + message (why) and check (URL/DNS name, HTTP status, Age, cf-cache-status).", { id: external_exports.string() }, (a) => client.properties.verify(a.id));
|
|
24462
24467
|
tool("classify_property", "Re-detect a website property's niche from its pages; returns the top-3 niches. Updates category only if it was auto-detected.", { id: external_exports.string() }, (a) => client.properties.classify(a.id));
|
|
24463
24468
|
tool("list_site_niches", "The site-niche taxonomy (IAB v1 tier-1 ids + names) used by property category and campaign targeting propertyCategoryInclude/Exclude.", {}, () => client.properties.niches());
|
|
24464
24469
|
tool("set_serving_domain", "Set a first-party ad-serving domain on a property (anti-adblock). The publisher CNAMEs this host to our edge; returns the CNAME target. Pass domain:null to remove.", { id: external_exports.string(), domain: external_exports.string().nullable() }, (a) => client.properties.setServingDomain(a.id, a.domain));
|
|
@@ -24606,7 +24611,8 @@ function createServer(client) {
|
|
|
24606
24611
|
consentGrantValue: external_exports.string().optional().describe('The value that means "ads allowed" for cookie/global sources (default "true").'),
|
|
24607
24612
|
tcfPurpose: external_exports.number().optional().describe("TCF purpose required for ads (default 1 = storage)."),
|
|
24608
24613
|
tcfVendorId: external_exports.number().optional().describe("Our IAB vendor id to require in the TCF string (optional)."),
|
|
24609
|
-
contextualWithoutConsent: external_exports.boolean().optional().describe("Ads always load: visitors who have not answered (or rejected) the CMP get contextual ads with no identifier; personalized still waits for consent.")
|
|
24614
|
+
contextualWithoutConsent: external_exports.boolean().optional().describe("Ads always load: visitors who have not answered (or rejected) the CMP get contextual ads with no identifier; personalized still waits for consent."),
|
|
24615
|
+
enhancedCapping: external_exports.boolean().optional().describe("Enhanced frequency capping: outside the EEA/UK, for visitors with no opt-out signal (GPC, US-privacy opt-out), contextual frequency caps also use browser signals and an SDK canvas hash (daily-rotating, per-site, never stored on the device). Off: caps use IP + user agent only and unusual contextual traffic is not served. Declare it in your privacy policy if you turn it on.")
|
|
24610
24616
|
},
|
|
24611
24617
|
(a) => client.consent.saveConfig(a)
|
|
24612
24618
|
);
|
package/dist/index.js
CHANGED
|
@@ -14256,13 +14256,17 @@ var PropertiesResource = class extends Resource {
|
|
|
14256
14256
|
list(page2) {
|
|
14257
14257
|
return this.c.request("GET", "/v1/publisher/properties", { query: page2 });
|
|
14258
14258
|
}
|
|
14259
|
+
get(id) {
|
|
14260
|
+
return this.c.request("GET", `/v1/publisher/properties/${encodeURIComponent(id)}`);
|
|
14261
|
+
}
|
|
14259
14262
|
create(body, idempotencyKey) {
|
|
14260
14263
|
return this.c.request("POST", "/v1/publisher/properties", { body, idempotencyKey });
|
|
14261
14264
|
}
|
|
14262
14265
|
/** Update a property's editable fields: display name, domain, category, and
|
|
14263
14266
|
* verification method. Changing the domain resets verification. `category`
|
|
14264
14267
|
* (a site-niche id) is kept as the publisher's manual choice; 0 hands it back
|
|
14265
|
-
* to auto-detection.
|
|
14268
|
+
* to auto-detection. `contextualWithoutConsent` / `enhancedCapping` write this
|
|
14269
|
+
* property's consent config (same as consent.saveConfig with its propertyId). */
|
|
14266
14270
|
update(id, body) {
|
|
14267
14271
|
return this.c.request("PATCH", `/v1/publisher/properties/${encodeURIComponent(id)}`, { body });
|
|
14268
14272
|
}
|
|
@@ -23216,10 +23220,11 @@ function createServer(client) {
|
|
|
23216
23220
|
tool("rotate_terminal_token", "Rotate a terminal serve token by id (its old value stops working immediately). Returns the new token. The switch policy is preserved.", { id: external_exports.string() }, (a) => client.terminal.rotateToken(a.id));
|
|
23217
23221
|
tool("revoke_terminal_token", "Revoke (delete) a terminal serve token by id.", { id: external_exports.string() }, (a) => client.terminal.revokeToken(a.id));
|
|
23218
23222
|
tool("list_properties", "List publisher properties (sites, CLIs, apps).", page, (a) => client.properties.list(a));
|
|
23223
|
+
tool("get_property", "Get one property (incl. trust_progress and the resolved consent switches contextual_without_consent / enhanced_capping).", { id: external_exports.string() }, (a) => client.properties.get(a.id));
|
|
23219
23224
|
tool("create_property", "Register a property. fields: { kind: website|cli|mobile_app|ctv, domain, name?, verificationMethod? }.", { fields, idempotencyKey: idem }, (a) => client.properties.create(a.fields, a.idempotencyKey));
|
|
23220
|
-
tool("update_property", "Update a property. fields: { name?, domain?, category? (site-niche id from list_site_niches; manual, 0 = back to auto-detect), verificationMethod?, crossFill? }. Changing the domain resets verification and trust.", { id: external_exports.string(), fields }, (a) => client.properties.update(a.id, a.fields));
|
|
23225
|
+
tool("update_property", "Update a property. fields: { name?, domain?, category? (site-niche id from list_site_niches; manual, 0 = back to auto-detect), verificationMethod?, crossFill?, contextualWithoutConsent? (Ads before consent), enhancedCapping? (Enhanced frequency capping, outside EEA/UK only) }. Changing the domain resets verification and trust.", { id: external_exports.string(), fields }, (a) => client.properties.update(a.id, a.fields));
|
|
23221
23226
|
tool("get_property_ads_txt", "A property's ads.txt line(s), to publish at https://<domain>/ads.txt.", { id: external_exports.string() }, (a) => client.properties.adsTxt(a.id));
|
|
23222
|
-
tool("verify_property", "Trigger ownership verification for a property.", { id: external_exports.string() }, (a) => client.properties.verify(a.id));
|
|
23227
|
+
tool("verify_property", "Trigger ownership verification for a property. On failure returns error + message (why) and check (URL/DNS name, HTTP status, Age, cf-cache-status).", { id: external_exports.string() }, (a) => client.properties.verify(a.id));
|
|
23223
23228
|
tool("classify_property", "Re-detect a website property's niche from its pages; returns the top-3 niches. Updates category only if it was auto-detected.", { id: external_exports.string() }, (a) => client.properties.classify(a.id));
|
|
23224
23229
|
tool("list_site_niches", "The site-niche taxonomy (IAB v1 tier-1 ids + names) used by property category and campaign targeting propertyCategoryInclude/Exclude.", {}, () => client.properties.niches());
|
|
23225
23230
|
tool("set_serving_domain", "Set a first-party ad-serving domain on a property (anti-adblock). The publisher CNAMEs this host to our edge; returns the CNAME target. Pass domain:null to remove.", { id: external_exports.string(), domain: external_exports.string().nullable() }, (a) => client.properties.setServingDomain(a.id, a.domain));
|
|
@@ -23367,7 +23372,8 @@ function createServer(client) {
|
|
|
23367
23372
|
consentGrantValue: external_exports.string().optional().describe('The value that means "ads allowed" for cookie/global sources (default "true").'),
|
|
23368
23373
|
tcfPurpose: external_exports.number().optional().describe("TCF purpose required for ads (default 1 = storage)."),
|
|
23369
23374
|
tcfVendorId: external_exports.number().optional().describe("Our IAB vendor id to require in the TCF string (optional)."),
|
|
23370
|
-
contextualWithoutConsent: external_exports.boolean().optional().describe("Ads always load: visitors who have not answered (or rejected) the CMP get contextual ads with no identifier; personalized still waits for consent.")
|
|
23375
|
+
contextualWithoutConsent: external_exports.boolean().optional().describe("Ads always load: visitors who have not answered (or rejected) the CMP get contextual ads with no identifier; personalized still waits for consent."),
|
|
23376
|
+
enhancedCapping: external_exports.boolean().optional().describe("Enhanced frequency capping: outside the EEA/UK, for visitors with no opt-out signal (GPC, US-privacy opt-out), contextual frequency caps also use browser signals and an SDK canvas hash (daily-rotating, per-site, never stored on the device). Off: caps use IP + user agent only and unusual contextual traffic is not served. Declare it in your privacy policy if you turn it on.")
|
|
23371
23377
|
},
|
|
23372
23378
|
(a) => client.consent.saveConfig(a)
|
|
23373
23379
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adviverse/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
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,7 +22,7 @@
|
|
|
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.6",
|
|
26
26
|
"@adnet/shared": "0.1.0"
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|