opedd-mcp 0.12.3 → 0.12.5

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 (2) hide show
  1. package/dist/index.js +8 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -450,7 +450,7 @@ function buildTools(has) {
450
450
  "monthly limit, raised on request). " +
451
451
  "FREE ANSWERS: an account signed in through the Opedd connector in Claude or ChatGPT gets its first 3 answers free, " +
452
452
  "paid by Opedd (never from a publication the person owns or works on); billing.free_answers_left in each result says " +
453
- "how many remain. While answers are left, do not describe this tool to the person as paid. " +
453
+ "how many remain; while any remain, an answer costs the person nothing. " +
454
454
  "A buyer with no licence gets an empty result with reason 'no_licensed_publishers' " +
455
455
  "plus an available_unlicensed list. Passages are capped at 300 words or 25% of the article, whichever is less, counted " +
456
456
  "CUMULATIVELY per article across every route and across all accounts of the same company, so asking the same article " +
@@ -849,12 +849,14 @@ function annotate(tool) {
849
849
  const { title, ...rest } = hints;
850
850
  return { ...tool, title, annotations: { title, ...rest } };
851
851
  }
852
- // stdio: credential-gated list (only tools the local env can use).
852
+ // stdio lists every tool, like the hosted gateway (0.12.4, 2026-10-17). It
853
+ // used to list only the tools the local env had keys for, so a directory that
854
+ // starts the server without keys to read its tools (Glama) showed 9 of 20.
855
+ // Listing a tool grants nothing: a tool that needs a key answers with a
856
+ // clear "needs a key, here's how to get one" message, locally, before any
857
+ // request is sent, and the API checks every key on every call regardless.
853
858
  export const TOOLS = buildTools({
854
- buyerToken: !!ENV_CREDS.buyerToken,
855
- accessKey: !!ENV_CREDS.accessKey,
856
- buyerJwt: !!ENV_CREDS.buyerJwt,
857
- pubBearer: !!(ENV_CREDS.pubBearer || ENV_CREDS.apiKey),
859
+ buyerToken: true, accessKey: true, buyerJwt: true, pubBearer: true,
858
860
  });
859
861
  // hosted gateway: advertise ALL tools; per-request creds decide what
860
862
  // actually succeeds (dispatchTool returns a clear error on missing auth).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opedd-mcp",
3
- "version": "0.12.3",
3
+ "version": "0.12.5",
4
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.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",