opedd-mcp 0.6.15 → 0.6.16

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/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export interface Credentials {
5
5
  apiBase: string;
6
6
  buyerEmail?: string;
7
7
  paymentMethodId?: string;
8
- /** canonical opedd_pub_<env>_<32-hex> key */
8
+ /** canonical opedd_sk_<32-hex> key (legacy opedd_pub_ accepted) */
9
9
  pubBearer?: string;
10
10
  /** LEGACY op_<32-hex> — retiring per backend Phase C */
11
11
  apiKey?: string;
package/dist/index.js CHANGED
@@ -149,7 +149,7 @@ function auditCred(creds) {
149
149
  }
150
150
  const HOW_ACCESS_KEY = "Enterprise access keys (ent_*) are delivered when an enterprise licence is issued — start at https://opedd.com/enterprise " +
151
151
  "or purchase programmatically with the purchase_enterprise_license tool.";
152
- const HOW_PUB_BEARER = "Publisher keys (opedd_pub_*) come from the publisher dashboard: sign up free at https://opedd.com, then Settings → API keys.";
152
+ const HOW_PUB_BEARER = "Publisher keys (opedd_sk_*, legacy opedd_pub_* still valid) come from the publisher dashboard: sign up free at https://opedd.com, then Settings → API keys.";
153
153
  // ─── Tool definitions ─────────────────────────────────────────────────────────
154
154
  function buildTools(has) {
155
155
  const TOOLS = [
@@ -653,7 +653,7 @@ function buildTools(has) {
653
653
  // the AI assistant — the native companion to the /publishers-content API.
654
654
  TOOLS.push({
655
655
  name: "push_content",
656
- description: "Push your published articles to Opedd so they can be licensed to AI buyers (requires OPEDD_PUB_BEARER — your opedd_pub_ publisher key). " +
656
+ description: "Push your published articles to Opedd so they can be licensed to AI buyers (requires OPEDD_PUB_BEARER — your opedd_sk_ publisher key). " +
657
657
  "Send 1–100 articles per call; batch larger back-catalogues into multiple calls. Each article needs title, url, and html_body — everything else is optional (published_at defaults to now). " +
658
658
  "This is the supply-side companion to list_publisher_content: use it to onboard your archive or push new content with no code, straight from your AI assistant.",
659
659
  inputSchema: {
@@ -1021,7 +1021,7 @@ export async function dispatchTool(name, args, creds = ENV_CREDS) {
1021
1021
  // ── list_publisher_content ─────────────────────────────────────────────
1022
1022
  case "list_publisher_content": {
1023
1023
  if (!creds.pubBearer && !creds.apiKey) {
1024
- return credErr("A publisher key (opedd_pub_*) is required for this tool", "OPEDD_PUB_BEARER", HOW_PUB_BEARER);
1024
+ return credErr("A publisher key (opedd_sk_*) is required for this tool", "OPEDD_PUB_BEARER", HOW_PUB_BEARER);
1025
1025
  }
1026
1026
  const { limit = 20, type, offset = 0 } = args;
1027
1027
  const params = new URLSearchParams({ action: "articles" });
@@ -1035,7 +1035,7 @@ export async function dispatchTool(name, args, creds = ENV_CREDS) {
1035
1035
  // ── push_content ───────────────────────────────────────────────────────
1036
1036
  case "push_content": {
1037
1037
  if (!creds.pubBearer && !creds.apiKey) {
1038
- return credErr("A publisher key (opedd_pub_*) is required for this tool", "OPEDD_PUB_BEARER", HOW_PUB_BEARER);
1038
+ return credErr("A publisher key (opedd_sk_*) is required for this tool", "OPEDD_PUB_BEARER", HOW_PUB_BEARER);
1039
1039
  }
1040
1040
  const { articles } = args;
1041
1041
  if (!Array.isArray(articles) || articles.length === 0) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "opedd-mcp",
3
- "version": "0.6.15",
4
- "description": "Licensed, rights-cleared content for AI agents — verifiable license keys, on-chain proof, and EU AI Act attestation. The MCP alternative to unlicensed scraping for RAG and AI search.",
3
+ "version": "0.6.16",
4
+ "description": "Licensed, rights-cleared content for AI agents \u2014 verifiable license keys, on-chain proof, and EU AI Act attestation. The MCP alternative to unlicensed scraping for RAG and AI search.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "mcpName": "com.opedd/opedd-mcp",
@@ -60,4 +60,4 @@
60
60
  "overrides": {
61
61
  "esbuild": "^0.28.1"
62
62
  }
63
- }
63
+ }