@ksystemnotifications/werkbank-mcp 0.0.0-stage → 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Werkbank
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,34 @@
1
- # Temporary Holding Version
1
+ # werkbank-mcp
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Free Werkbank tools for AI agents, over the Model Context Protocol (stdio). No account, no network calls, nothing stored.
4
+
5
+ Kostenlose Werkbank-Tools für KI-Agenten (MCP, stdio). Kein Konto, keine Netzwerkanfragen, nichts wird gespeichert.
6
+
7
+ npm package: `@ksystemnotifications/werkbank-mcp` (published from the free npm account; the `werkbank-tools` npm org does not exist yet). Registry name: `io.github.werkbank-tools/werkbank-mcp`.
8
+
9
+ | Tool | What it does | Web version for people |
10
+ |---|---|---|
11
+ | `inboxchef_reply` | Short German business email: cancel, postpone, politely decline, follow up, confirm (Sie or du) | https://werkbank-tools.github.io/startup-test-pages/de/inboxchef/antwort-vorlagen-generator.html |
12
+ | `eigenbeleg_build` | German Eigenbeleg (substitute receipt) with all fields, missing-field check and printable text | https://werkbank-tools.github.io/startup-test-pages/de/belegbote/eigenbeleg-generator.html |
13
+ | `missing_receipts_checklist` | Monthly check before sending the month to the tax advisor | same as above |
14
+
15
+ The logic is the same as the free web pages. BelegBote is a tool aid, not tax advice.
16
+
17
+ ## Use / Einrichtung
18
+
19
+ Claude Desktop or Cursor (`mcp.json` / Claude config):
20
+
21
+ ```json
22
+ {
23
+ "mcpServers": {
24
+ "werkbank": {
25
+ "command": "npx",
26
+ "args": ["-y", "@ksystemnotifications/werkbank-mcp"]
27
+ }
28
+ }
29
+ }
30
+ ```
31
+
32
+ Local test: `npm test`.
33
+
34
+ License: MIT. Made by Werkbank, a small startup studio.
package/bin/server.js ADDED
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env node
2
+ // Minimal MCP server over stdio (JSON-RPC 2.0, newline-delimited). Zero dependencies.
3
+ import { TOOLS } from "../tools.js";
4
+ import { createInterface } from "node:readline";
5
+ const INFO = { name: "werkbank-mcp", title: "Werkbank free tools", version: "0.1.0" };
6
+ const send = (m) => process.stdout.write(JSON.stringify(m) + "\n");
7
+ const rl = createInterface({ input: process.stdin });
8
+ rl.on("line", (line) => {
9
+ if (!line.trim()) return;
10
+ let m; try { m = JSON.parse(line); } catch { return send({ jsonrpc: "2.0", id: null, error: { code: -32700, message: "Parse error" } }); }
11
+ const { id, method, params } = m;
12
+ if (id === undefined) return; // notification
13
+ try {
14
+ if (method === "initialize") return send({ jsonrpc: "2.0", id, result: { protocolVersion: (params && params.protocolVersion) || "2025-06-18", capabilities: { tools: { listChanged: false } }, serverInfo: INFO,
15
+ instructions: "Free Werkbank tools for German small businesses. Each result includes a link to the free web version for the human." } });
16
+ if (method === "ping") return send({ jsonrpc: "2.0", id, result: {} });
17
+ if (method === "tools/list") return send({ jsonrpc: "2.0", id, result: { tools: TOOLS.map(({ run, ...t }) => t) } });
18
+ if (method === "tools/call") {
19
+ const t = TOOLS.find((x) => x.name === (params && params.name));
20
+ if (!t) return send({ jsonrpc: "2.0", id, error: { code: -32602, message: "Unknown tool" } });
21
+ try { const r = t.run((params && params.arguments) || {}); return send({ jsonrpc: "2.0", id, result: { content: [{ type: "text", text: JSON.stringify(r, null, 2) }], structuredContent: r, isError: false } }); }
22
+ catch (e) { return send({ jsonrpc: "2.0", id, result: { content: [{ type: "text", text: String(e.message || e) }], isError: true } }); }
23
+ }
24
+ send({ jsonrpc: "2.0", id, error: { code: -32601, message: "Method not found" } });
25
+ } catch (e) { send({ jsonrpc: "2.0", id, error: { code: -32603, message: String(e) } }); }
26
+ });
package/package.json CHANGED
@@ -1,6 +1,33 @@
1
1
  {
2
2
  "name": "@ksystemnotifications/werkbank-mcp",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Free Werkbank tools for AI agents (MCP): German email replies (InboxChef) and Eigenbeleg receipts (BelegBote). No account, no network, nothing stored.",
5
+ "mcpName": "io.github.werkbank-tools/werkbank-mcp",
6
+ "type": "module",
7
+ "bin": {
8
+ "werkbank-mcp": "bin/server.js"
9
+ },
10
+ "files": [
11
+ "bin",
12
+ "tools.js",
13
+ "README.md",
14
+ "LICENSE"
15
+ ],
16
+ "engines": {
17
+ "node": ">=18"
18
+ },
19
+ "keywords": [
20
+ "mcp",
21
+ "model-context-protocol",
22
+ "eigenbeleg",
23
+ "email",
24
+ "german",
25
+ "deutsch",
26
+ "werkbank"
27
+ ],
28
+ "license": "MIT",
29
+ "homepage": "https://werkbank-tools.github.io/",
30
+ "scripts": {
31
+ "test": "node test.js"
32
+ }
33
+ }
package/tools.js ADDED
@@ -0,0 +1,77 @@
1
+ // Same logic as the free web tools (ported 1:1 from the page scripts). Pure functions: no network, nothing stored.
2
+ const PAGE_IC = "https://werkbank-tools.github.io/startup-test-pages/de/inboxchef/antwort-vorlagen-generator.html";
3
+ const PAGE_EB = "https://werkbank-tools.github.io/startup-test-pages/de/belegbote/eigenbeleg-generator.html";
4
+ const q = (t) => "„" + t + "“";
5
+ const SC = {
6
+ cancel: { n: "Termin absagen", s: (v) => "Absage: " + (v.topic || "unser Termin"),
7
+ b: (v, f) => (f ? "Guten Tag " + (v.rn || "Frau/Herr …") + ",\n\nleider muss ich unseren Termin" + (v.topic ? " " + q(v.topic) : "") + " absagen" + (v.reason ? ", da " + v.reason + " dazwischengekommen ist" : "") + ". Das tut mir leid.\n\n" + (v.alt ? "Passt Ihnen alternativ " + v.alt + "?" : "Ich melde mich mit einem neuen Terminvorschlag, sobald ich klarer sehe.") + "\n\nMit freundlichen Grüßen\n"
8
+ : "Hallo " + (v.rn || "…") + ",\n\nich muss unseren Termin" + (v.topic ? " " + q(v.topic) : "") + " leider absagen" + (v.reason ? ", weil " + v.reason + " dazwischengekommen ist" : "") + ". Sorry!\n\n" + (v.alt ? "Ginge stattdessen " + v.alt + "?" : "Ich schicke dir bald einen neuen Vorschlag.") + "\n\nViele Grüße\n") + (v.me || "") },
9
+ move: { n: "Meeting verschieben", s: (v) => "Neuer Termin: " + (v.topic || "unser Meeting"),
10
+ b: (v, f) => (f ? "Guten Tag " + (v.rn || "Frau/Herr …") + ",\n\nkönnen wir " + (v.topic ? q(v.topic) : "unser Meeting") + " verschieben?" + (v.reason ? " Bei mir ist " + v.reason + " dazwischengekommen." : "") + "\n\nIch könnte " + (v.alt || "[zwei Alternativtermine]") + ". Wenn beides nicht passt, nennen Sie mir gern zwei Zeiten, die Ihnen besser liegen.\n\nDanke für Ihr Verständnis und freundliche Grüße\n"
11
+ : "Hallo " + (v.rn || "…") + ",\n\nkönnen wir " + (v.topic ? q(v.topic) : "unser Meeting") + " verschieben?" + (v.reason ? " Bei mir ist " + v.reason + " dazwischengekommen." : "") + "\n\nIch könnte " + (v.alt || "[zwei Alternativtermine]") + ". Sonst schick mir einfach zwei Zeiten, die dir passen.\n\nDanke dir und viele Grüße\n") + (v.me || "") },
12
+ decline: { n: "Höflich absagen (Anfrage/Angebot)", s: (v) => "Re: " + (v.topic || "Ihre Anfrage"),
13
+ b: (v, f) => (f ? "Guten Tag " + (v.rn || "Frau/Herr …") + ",\n\nvielen Dank für Ihre Nachricht" + (v.topic ? " zu " + q(v.topic) : "") + " und das Interesse. Nach reiflicher Überlegung muss ich absagen" + (v.reason ? ": " + v.reason + "." : ".") + "\n\nIch wünsche Ihnen viel Erfolg und melde mich gern, wenn sich die Lage ändert.\n\nMit freundlichen Grüßen\n"
14
+ : "Hallo " + (v.rn || "…") + ",\n\ndanke dir für die Nachricht" + (v.topic ? " zu " + q(v.topic) : "") + "! Ich muss diesmal leider absagen" + (v.reason ? ": " + v.reason + "." : ".") + "\n\nViel Erfolg damit, und gern ein andermal.\n\nViele Grüße\n") + (v.me || "") },
15
+ follow: { n: "Nachfassen ohne Antwort", s: (v) => "Kurze Nachfrage: " + (v.topic || "meine letzte E-Mail"),
16
+ b: (v, f) => (f ? "Guten Tag " + (v.rn || "Frau/Herr …") + ",\n\nich wollte kurz nachfragen" + (v.topic ? " zu " + q(v.topic) : "") + ". Haben Sie schon Gelegenheit gehabt, einen Blick darauf zu werfen?\n\nWenn es gerade nicht passt, ist das völlig in Ordnung. Eine kurze Rückmeldung hilft mir bei der Planung.\n\nMit freundlichen Grüßen\n"
17
+ : "Hallo " + (v.rn || "…") + ",\n\nkurze Nachfrage" + (v.topic ? " zu " + q(v.topic) : "") + ": Bist du schon dazu gekommen?\n\nKein Stress, eine kurze Rückmeldung hilft mir nur beim Planen.\n\nViele Grüße\n") + (v.me || "") },
18
+ confirm: { n: "Termin bestätigen", s: (v) => "Bestätigt: " + (v.topic || "unser Termin"),
19
+ b: (v, f) => (f ? "Guten Tag " + (v.rn || "Frau/Herr …") + ",\n\nhiermit bestätige ich " + (v.topic ? q(v.topic) : "unseren Termin") + (v.alt ? " am " + v.alt : "") + ". Ich freue mich auf das Gespräch.\n\nMit freundlichen Grüßen\n"
20
+ : "Hallo " + (v.rn || "…") + ",\n\npasst, " + (v.topic ? q(v.topic) : "unser Termin") + (v.alt ? " am " + v.alt : "") + " steht. Bis dann!\n\nViele Grüße\n") + (v.me || "") },
21
+ };
22
+ export function inboxchefReply(a = {}) {
23
+ const s = SC[a.intent];
24
+ if (!s) throw new Error("intent must be one of: " + Object.keys(SC).join(", "));
25
+ const v = { rn: (a.recipient_name || "").trim(), me: (a.sender_name || "").trim(), topic: (a.topic || "").trim(), alt: (a.alternative || "").trim(), reason: (a.reason || "").trim() };
26
+ const formal = (a.formality || "sie") !== "du";
27
+ return { situation: s.n, subject: s.s(v), body: s.b(v, formal), formality: formal ? "Sie" : "du",
28
+ note: "Hinweis: Die Vorlagen sind Vorschläge. Bitte vor dem Senden lesen und anpassen.",
29
+ human_tool: PAGE_IC + "?s=" + a.intent + "&utm_source=mcp&utm_medium=agent&utm_campaign=handlanger" };
30
+ }
31
+ const PAY = ["Bar", "Karte", "Überweisung", "PayPal", "Sonstige"];
32
+ const WHY = ["Originalbeleg verloren", "Kein Beleg erhältlich (z. B. Parkautomat, Trinkgeld)", "Beleg unleserlich"];
33
+ const EB_NOTE = "Hinweis: Hilfsmittel ohne Gewähr, keine Steuerberatung. Der erzeugte Eigenbeleg ersetzt keine steuerliche Prüfung und keinen Originalbeleg, soweit dieser noch beschafft werden kann. Eigenbelege sind eine Ausnahme und berechtigen in der Regel nicht zum Vorsteuerabzug. Klären Sie die Verwendung mit Ihrer Steuerberatung.";
34
+ const dfmt = (x) => { const p = String(x || "").split("-"); return p.length === 3 ? p[2] + "." + p[1] + "." + p[0] : ""; };
35
+ const num = (v) => { if (typeof v === "number") return v; v = String(v || "").replace(/\./g, "").replace(",", "."); const n = parseFloat(v); return isFinite(n) ? n : 0; };
36
+ export function eigenbelegBuild(a = {}) {
37
+ const amt = num(a.amount_gross);
38
+ const pay = PAY.includes(a.payment_method) ? a.payment_method : "Sonstige";
39
+ const why = WHY.includes(a.reason) ? a.reason : WHY[0];
40
+ const today = new Date().toISOString().slice(0, 10);
41
+ const fields = { "Aussteller": a.issuer || "—", "Datum der Ausgabe": dfmt(a.date) || "—",
42
+ "Betrag (brutto)": amt ? amt.toLocaleString("de-DE", { style: "currency", currency: "EUR" }) : "—",
43
+ "Zahlungsempfänger": a.payee || "—", "Zahlungsart": pay, "Gegenstand / Zweck": a.purpose || "—", "Grund für Eigenbeleg": why };
44
+ const missing = Object.entries(fields).filter(([, v]) => v === "—").map(([k]) => k);
45
+ const text = "Eigenbeleg (Ersatzbeleg)\n\n" + Object.entries(fields).map(([k, v]) => k + ": " + v).join("\n") +
46
+ "\n\nIch bestätige die Richtigkeit der Angaben.\n\nErstellt am " + dfmt(today) + " · Unterschrift: ____________________\n\nErstellt mit dem kostenlosen Eigenbeleg-Generator von BelegBote";
47
+ return { fields, missing_fields: missing, document_text: text,
48
+ warning: amt > 250 ? "Hinweis: Bei höheren Beträgen lieber beim Verkäufer eine Rechnungskopie anfordern. Eigenbelege sind eine Ausnahme und berechtigen in der Regel nicht zum Vorsteuerabzug." : "",
49
+ sign_reminder: "Unterschreiben nicht vergessen.", note: EB_NOTE,
50
+ human_tool: PAGE_EB + "?utm_source=mcp&utm_medium=agent&utm_campaign=handlanger" };
51
+ }
52
+ export function missingReceiptsChecklist() {
53
+ return { checklist: ["Kontoauszüge des Monats heruntergeladen", "Jede Abbuchung hat einen Beleg (Rechnung oder Quittung)", "Online-Rechnungen aus Portalen geladen (z. B. Telefon, Software, Shops)", "Bewirtungsbelege mit Anlass und Teilnehmern ergänzt", "Fehlende Rechnungen beim Verkäufer angefragt", "Nur wo nichts mehr geht: Eigenbeleg erstellt und unterschrieben", "Alles an das Steuerbüro übermittelt (z. B. per Upload)"],
54
+ note: EB_NOTE, human_tool: PAGE_EB + "?utm_source=mcp&utm_medium=agent&utm_campaign=handlanger" };
55
+ }
56
+ export const TOOLS = [
57
+ { name: "inboxchef_reply", title: "InboxChef: German email reply template",
58
+ description: "Write a short, polite German business email reply. Use when someone needs to cancel or confirm an appointment, postpone a meeting, politely decline a request or offer, or follow up after no answer, in German (Sie or du). Returns subject and body ready to paste. Free, deterministic, nothing stored.",
59
+ inputSchema: { type: "object", properties: {
60
+ intent: { type: "string", enum: Object.keys(SC), description: "cancel = Termin absagen, move = Meeting verschieben, decline = höflich absagen, follow = nachfassen, confirm = Termin bestätigen" },
61
+ formality: { type: "string", enum: ["sie", "du"], default: "sie" },
62
+ recipient_name: { type: "string", description: "e.g. 'Frau Müller' or 'Jonas'" }, sender_name: { type: "string" },
63
+ topic: { type: "string", description: "what the appointment or request is about" },
64
+ alternative: { type: "string", description: "alternative date(s), or the date for confirm" },
65
+ reason: { type: "string", description: "short reason, phrased to fit 'da … dazwischengekommen ist'" } }, required: ["intent"] },
66
+ run: inboxchefReply },
67
+ { name: "eigenbeleg_build", title: "BelegBote: Eigenbeleg (German substitute receipt)",
68
+ description: "Create a German Eigenbeleg (Ersatzbeleg) when a receipt was lost, is unreadable, or none was issued (e.g. parking meter, tip). Returns the required fields, which ones are still missing, and a plain-text document to print and sign. Tool aid only, no tax advice. Free, nothing stored.",
69
+ inputSchema: { type: "object", properties: {
70
+ date: { type: "string", description: "date of the expense, YYYY-MM-DD" }, amount_gross: { type: ["number", "string"], description: "gross amount in EUR" },
71
+ payee: { type: "string" }, payment_method: { type: "string", enum: PAY }, reason: { type: "string", enum: WHY },
72
+ purpose: { type: "string", description: "what was bought and the business purpose" }, issuer: { type: "string", description: "your name or company" } }, required: ["date", "amount_gross", "payee", "purpose"] },
73
+ run: eigenbelegBuild },
74
+ { name: "missing_receipts_checklist", title: "BelegBote: monthly missing-receipts check",
75
+ description: "German monthly checklist to make sure every bank debit has a receipt before sending the month to the tax advisor (Steuerbüro).",
76
+ inputSchema: { type: "object", properties: {} }, run: missingReceiptsChecklist },
77
+ ];