@bragduck/mcp 1.4.0 → 1.4.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/index.js CHANGED
@@ -18,18 +18,36 @@ const server = new Server({
18
18
  instructions: 'BragDuck tracks career achievements ("brags") that feed into periodic performance reports. ' +
19
19
  'A strong brag needs: a concrete accomplishment, measurable or observable impact, and ideally a reference link. ' +
20
20
  '\n\n' +
21
+ 'RESOLVING "THIS" IN "BRAG WITH THIS"\n' +
22
+ 'When the user says "brag with this" (or "brag about this", "log this", etc.) without elaborating, ' +
23
+ '"this" refers to the most recent work visible in the current session: ' +
24
+ 'the latest git diff, the last commit message, the most recently discussed code change, or a PR just mentioned. ' +
25
+ 'Look for that context first before asking anything. ' +
26
+ 'Only start the interview (see below) if no such context exists in the session.\n' +
27
+ '\n' +
21
28
  'STEP 1 — ASSESS BRAGABILITY\n' +
22
- 'Before doing anything else, judge whether the thing the user describes is worth logging:\n' +
23
- '- NOT bragable: vague status updates ("I was in a meeting"), trivial tasks ("updated a variable name"), ' +
24
- ' or things with no discernible impact. Respond honestly — tell the user it is not bragable and briefly explain why. ' +
25
- ' Mention that brags feed report generation, so low-quality entries dilute the signal.\n' +
26
- '- POTENTIALLY bragable but details are thin: ask 1-3 focused clarifying questions ' +
27
- ' (e.g. "What was the outcome?", "Who was affected?", "Do you have a PR or ticket link?"). ' +
28
- ' Do NOT call any tool until you have enough to write a strong brag.\n' +
29
- '- Clearly bragable with enough context: proceed to step 2.\n' +
29
+ 'Before doing anything else, judge whether the subject is worth logging:\n' +
30
+ '- NOT bragable: vague status updates, trivial tasks with no impact, ' +
31
+ ' or things a reasonable person would not list on a performance review. ' +
32
+ ' Tell the user directly that it is not bragable and explain why in one sentence. ' +
33
+ ' Note that brags feed the AI report generator — weak entries dilute the signal.\n' +
34
+ '- POTENTIALLY bragable but thin: start the interview (see below).\n' +
35
+ '- Clearly bragable with full context: skip the interview, go straight to STEP 2.\n' +
36
+ '\n' +
37
+ 'THE INTERVIEW\n' +
38
+ 'Conduct a short conversational interview to gather what you need. ' +
39
+ 'Ask ONE question at a time — do not list multiple questions at once. ' +
40
+ 'Each question should follow naturally from the previous answer, like a real conversation. ' +
41
+ 'Suggested question order (adapt based on what you already know):\n' +
42
+ ' 1. "What did you work on?" (skip if already known)\n' +
43
+ ' 2. "What was the outcome or result?"\n' +
44
+ ' 3. "Who was affected — just you, the team, or wider?"\n' +
45
+ ' 4. "Do you have a link — PR, ticket, commit, or doc?" (skip if already have one)\n' +
46
+ 'Stop the interview as soon as you have enough to write a strong brag. ' +
47
+ 'Never ask more than 4 questions total.\n' +
30
48
  '\n' +
31
49
  'STEP 2 — PREVIEW\n' +
32
- 'Compose the brag from all available context (conversation, git diff, latest commit, PR description). ' +
50
+ 'Compose the brag from all gathered context. ' +
33
51
  'Call preview_brag to show the user a formatted draft. Wait for their confirmation.\n' +
34
52
  '\n' +
35
53
  'STEP 3 — LOG\n' +
@@ -37,7 +55,7 @@ const server = new Server({
37
55
  '\n' +
38
56
  'GENERAL RULES\n' +
39
57
  '- Never fabricate details, metrics, or links. If unsure, ask.\n' +
40
- '- "Is this bragable?" questions deserve a direct, honest answer — not a tool call.\n' +
58
+ '- "Is this bragable?" deserves a direct honest answer — not a tool call.\n' +
41
59
  '- Call login first if any tool returns an authentication error.',
42
60
  });
43
61
  server.setRequestHandler(ListToolsRequestSchema, async () => {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EACL,qBAAqB,EACrB,SAAS,EACT,sBAAsB,EACtB,QAAQ,GACT,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;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AAO,WAAW,CAAC,IAAW,CAAC,CAAC;QAClC,KAAK,cAAc;YACjB,OAAO,iBAAiB,CAAC,IAAW,CAAC,CAAC;QACxC,KAAK,UAAU;YACb,OAAO,aAAa,CAAC,IAAW,CAAC,CAAC;QACpC,KAAK,YAAY;YACf,OAAO,eAAe,CAAC,IAAW,CAAC,CAAC;QACtC,KAAK,iBAAiB;YACpB,OAAO,oBAAoB,EAAE,CAAC;QAChC,KAAK,mBAAmB;YACtB,OAAO,oBAAoB,CAAC,IAAW,CAAC,CAAC;QAC3C;YACE,MAAM,IAAI,QAAQ,CAAC,SAAS,CAAC,cAAc,EAAE,iBAAiB,IAAI,EAAE,CAAC,CAAC;IAC1E,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;AAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bragduck/mcp",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "BragDuck MCP server for logging career achievements from AI agents",
5
5
  "type": "module",
6
6
  "bin": {