@coppica/persuasion-mcp 1.0.7 → 1.0.9

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/server.js CHANGED
@@ -2,7 +2,7 @@ import { readFileSync } from 'node:fs';
2
2
  import { z } from 'zod';
3
3
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
4
4
  import { ROLE_NAMES, ROLES } from './roles.js';
5
- import { TECHNIQUES, CATALOG_META } from './data.js';
5
+ import { CATALOG_META } from './data.js';
6
6
  import { cap } from './voice.js';
7
7
  import { tracked } from './format.js';
8
8
  import { registerPlanTool } from './tools/plan.js';
@@ -18,7 +18,7 @@ const QUESTIONS = ROLE_NAMES.map((r) => ROLES[r].question).join(' ');
18
18
  * written the way we want people to write: plain words, sentences that lead into each other.
19
19
  */
20
20
  export const INSTRUCTIONS = [
21
- `This is the Persuasion Taxonomy, from Coppica. It gives you a working model of the reader, a catalog of ${TECHNIQUES.length} persuasion techniques documented from real advertising, ` +
21
+ `This is the Persuasion Taxonomy, from Coppica. It gives you a working model of the reader, a catalog of persuasion techniques documented from real advertising, ` +
22
22
  'a way to check copy before anyone sees it, and the math behind A/B tests.',
23
23
  `The model of the reader is simple. Everyone who reads an ad, a page or an email is silently asking nine questions: ${QUESTIONS} ` +
24
24
  'Copy persuades when it answers the questions its goal needs, answers them truthfully, and the answers fit together. When one answer contradicts another, ' +
@@ -32,7 +32,7 @@ export function registerCatalogTools(server) {
32
32
  for (const t of hits)
33
33
  out.push(techniqueLine(t, { category: cat, after: role ? undefined : `It answers ${roleLabel(t.role)}.` }));
34
34
  out.push('');
35
- out.push('For the full entry, with how it works, when it backfires and more examples, call get_persuasion_technique with the ID.');
35
+ out.push('For the full entry, with how it works, when it backfires and more examples, ask for the full entry by its ID.');
36
36
  return text(out.join('\n'));
37
37
  });
38
38
  server.registerTool('get_persuasion_technique', {
@@ -49,7 +49,7 @@ export function registerCatalogTools(server) {
49
49
  if (!t) {
50
50
  const near = searchTechniques(id, { limit: 5 });
51
51
  return errorText(`There's no technique called "${id}".${near.length ? ` The closest matches are ${joinList(near.map((n) => `${n.name} (${n.pt_id})`))}.` : ''} ` +
52
- 'You can search the catalog with find_persuasion_techniques.');
52
+ 'You can search the catalog by name or by what the technique does.');
53
53
  }
54
54
  const cat = resolveCategory(category);
55
55
  const out = [];
@@ -66,12 +66,12 @@ export function registerCraftTools(server) {
66
66
  `${joinList(c.unverified.map((a) => `"${a.words}" for ${a.question}`))}.`);
67
67
  }
68
68
  out.push(parts.join(' '));
69
- out.push(c.fix.startsWith('Nothing') ? c.fix : `Here's the fix. ${c.fix}`);
69
+ out.push(c.fix);
70
70
  });
71
71
  out.push('');
72
72
  if (checks.some((c) => c.evidence.length))
73
73
  out.push(EVIDENCE_SOURCE);
74
- out.push('Nobody can pick the winner from the words alone, and that includes this check. To find out, test two lines that make different bets, and size the test with plan_ab_test.');
74
+ out.push('Nobody can pick the winner from the words alone, and that includes this check. To find out, test two lines that make different bets, and work out how much traffic the test needs before you start.');
75
75
  return text(out.join('\n'));
76
76
  });
77
77
  server.registerTool('check_marketing_claims', {
@@ -99,7 +99,7 @@ export function registerCraftTools(server) {
99
99
  const h = checkHook({ text: c.text, slot: 'landing_page_headline', answers: [] });
100
100
  const issues = [...h.hardFails, ...h.warnings, ...h.evidenceAgainst];
101
101
  out.push(`**"${c.text}"** (a headline). ${issues.length ? issues.join(' ') : 'The claim itself has no problems.'} ` +
102
- 'To find out whether it does its job, and whether a competitor could send it, run check_headlines with the brief.');
102
+ 'To find out whether it does its job, and whether a competitor could send it, check it as a headline, with the brief.');
103
103
  continue;
104
104
  }
105
105
  const r = scored[k++];
@@ -122,7 +122,7 @@ export function registerCraftTools(server) {
122
122
  out.push(`${lead}${bridge} ${notes.length ? notes.join(' ') : 'Nothing in it needs fixing.'}`);
123
123
  }
124
124
  out.push('');
125
- out.push("A claim persuades when it's specific, it's true and the proof sits right next to it. For ways to prove a claim, search find_persuasion_techniques with the question set to PROVE.");
125
+ out.push("A claim persuades when it's specific, it's true and the proof sits right next to it. For ways to prove a claim, search the catalog for techniques that answer \"Can I trust the claim?\"");
126
126
  return text(out.join('\n'));
127
127
  });
128
128
  }
@@ -252,7 +252,7 @@ export function registerDiagnoseTool(server) {
252
252
  out.push(describeCheck(hc, { evidence: false }));
253
253
  if (hc.evidence.length)
254
254
  out.push(`${hc.evidence.join(' ')} Those figures come from thousands of real headline tests on news stories, so treat them as a nudge.`);
255
- out.push(hc.fix.startsWith('Nothing') ? hc.fix : `Here's the fix. ${hc.fix}`);
255
+ out.push(hc.fix);
256
256
  }
257
257
  const steps = [`Start by ${mode === 'upgrade' ? 'deepening' : 'answering'} "${gi.question}" with one of the moves above.`];
258
258
  if (orderNotes.length)
@@ -263,7 +263,7 @@ export function registerDiagnoseTool(server) {
263
263
  out.push('');
264
264
  out.push('## What to do next');
265
265
  out.push(steps.join(' '));
266
- out.push('When you want to know what actually converts, test two different answers to the same question, and size the test with plan_ab_test.');
266
+ out.push('When you want to know what actually converts, test two different answers to the same question, and work out how much traffic the test needs before you start.');
267
267
  return text(out.join('\n'));
268
268
  });
269
269
  }
@@ -48,7 +48,7 @@ export function registerPlanTool(server) {
48
48
  'roughly in the order below, and the ones marked as a priority deserve the most words for this reader.');
49
49
  lines.push(`Under each question you'll find a few ways to answer it, ranked for this brief in ${mode} mode. Pick the one that fits this reader and this offer best, ` +
50
50
  "and make sure at least one of your picks is a less expected move, because that's where the copy stops sounding like everyone else in the category. " +
51
- 'To see real examples of a technique, and when it backfires, call get_persuasion_technique with its ID.');
51
+ 'To see real examples of a technique, and when it backfires, ask for its full entry by its ID.');
52
52
  const either = reqs.filter((req) => req.length > 1);
53
53
  for (const role of ROLE_NAMES) {
54
54
  if (!expected.has(role))
@@ -91,7 +91,7 @@ export function registerPlanTool(server) {
91
91
  lines.push('');
92
92
  lines.push('## Then write it');
93
93
  lines.push("Choose one move for each question. The less expected choices are where the copy stops sounding like everyone else, so don't play every one safe, " +
94
- 'and keep every claim true. When the draft is done, label each line with the question it answers and run diagnose_marketing_copy before you show it to anyone.');
94
+ 'and keep every claim true. When the draft is done, label each line with the question it answers and review it line by line before you show it to anyone.');
95
95
  return text(lines.join('\n'));
96
96
  });
97
97
  }
@@ -63,7 +63,7 @@ export function registerTestingTools(server) {
63
63
  out.push('Pick one reader question and test two different answers to it, like proof by demonstration against proof by testimonial, and keep everything else the same. ' +
64
64
  `"Version B won" teaches you nothing. "For these buyers, a demonstration answers '${ROLES.PROVE.question}' better than a testimonial" carries over to everything you write next.`);
65
65
  }
66
- out.push('When the test is done, read the result with read_ab_test_result.');
66
+ out.push('When the test is done, read the result from the visitors and conversions each version got.');
67
67
  return text(out.join('\n'));
68
68
  });
69
69
  server.registerTool('read_ab_test_result', {
@@ -122,7 +122,7 @@ export function registerTestingTools(server) {
122
122
  }
123
123
  if (anyWinner)
124
124
  warnings.push("Big lifts from small tests usually shrink once you roll them out. It's called the winner's curse, so expect less than the lift you measured.");
125
- warnings.push('And if you checked the results over and over and stopped when they looked good, the p-value overstates how sure you can be. Stop at the sample size you planned with plan_ab_test.');
125
+ warnings.push('And if you checked the results over and over and stopped when they looked good, the p-value overstates how sure you can be. Stop at the sample size you planned before the test started.');
126
126
  out.push('');
127
127
  out.push('## Before you act');
128
128
  out.push(warnings.join(' '));
@@ -138,7 +138,7 @@ export function registerTestingTools(server) {
138
138
  else {
139
139
  out.push('Name the reader question the versions answered differently, and the technique each one used. That turns this result into a rule you can reuse, instead of a one-off winner.');
140
140
  }
141
- out.push('To find your next challenger, use find_persuasion_techniques.');
141
+ out.push('To find your next challenger, search the catalog for another way to answer the same question.');
142
142
  return text(out.join('\n'));
143
143
  });
144
144
  }
package/dist/tools/why.js CHANGED
@@ -55,9 +55,9 @@ export function registerWhyTool(server) {
55
55
  out.push('## Confirm it with a test');
56
56
  out.push(top
57
57
  ? `Keep everything else the same and test two versions that answer "${ROLES[top.role].question}" in different ways, for example the established move above against the less expected one. ` +
58
- 'If this was the gap, the version that answers it better will move the number. Size the test with plan_ab_test.'
59
- : 'Fix the mismatch on one side only and test it against the current version. Size the test with plan_ab_test.');
60
- out.push('If you have the copy itself, label each line and run diagnose_marketing_copy for a line-by-line read.');
58
+ 'If this was the gap, the version that answers it better will move the number. Work out how much traffic the test needs before you start.'
59
+ : 'Fix the mismatch on one side only and test it against the current version. Work out how much traffic the test needs before you start.');
60
+ out.push('If you have the copy itself, label each line with the question it answers and review it line by line.');
61
61
  return text(out.join('\n'));
62
62
  });
63
63
  }
package/dist/voice.js CHANGED
@@ -132,7 +132,7 @@ export function claimGateSentence(name, claim, type) {
132
132
  case 'empty':
133
133
  return 'The claim is empty.';
134
134
  case 'too_long':
135
- return 'That is too long to check as a single claim. For a whole block of copy, use diagnose_marketing_copy.';
135
+ return 'That is too long to check as a single claim. For a whole block of copy, label each line with the question it answers and review the copy as a whole.';
136
136
  default:
137
137
  return null;
138
138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coppica/persuasion-mcp",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "A free MCP server that helps any AI write and check marketing copy: the nine questions every reader asks, 767 persuasion techniques from real ads, copy diagnostics and A/B test math. No API key, no AI calls.",
5
5
  "mcpName": "com.coppica/persuasion-taxonomy",
6
6
  "type": "module",