@expensebot/mcp-server-auth 0.6.23 → 0.6.25

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/README.md CHANGED
@@ -118,7 +118,7 @@ transport and authentication support.
118
118
  ## Discovery
119
119
 
120
120
  - **Official MCP Registry** — active as
121
- `io.github.TotesMagotes/mcp-server-auth`; version `0.6.23` is the current
121
+ `io.github.TotesMagotes/mcp-server-auth`; version `0.6.25` is the current
122
122
  listing with both npm stdio and remote Streamable HTTP transports
123
123
  - **awesome-mcp-servers** — Finance & Fintech section
124
124
  - **Glama** — <https://glama.ai/mcp/servers/TotesMagotes/expensebot>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expensebot/mcp-server-auth",
3
- "version": "0.6.23",
3
+ "version": "0.6.25",
4
4
  "mcpName": "io.github.TotesMagotes/mcp-server-auth",
5
5
  "description": "ExpenseBot MCP server for receipt and income capture, Gmail scans, spending analytics, and reviewed expense reports from AI assistants.",
6
6
  "homepage": "https://www.expensebot.ai/mcp",
package/server.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "https://github.com/TotesMagotes/expensebot-mcp",
8
8
  "source": "github"
9
9
  },
10
- "version": "0.6.23",
10
+ "version": "0.6.25",
11
11
  "websiteUrl": "https://www.expensebot.ai/mcp",
12
12
  "icons": [
13
13
  {
@@ -28,7 +28,7 @@
28
28
  {
29
29
  "registryType": "npm",
30
30
  "identifier": "@expensebot/mcp-server-auth",
31
- "version": "0.6.23",
31
+ "version": "0.6.25",
32
32
  "transport": {
33
33
  "type": "stdio"
34
34
  }
package/src/client.js CHANGED
@@ -46,7 +46,7 @@ export class ExpenseBotClient {
46
46
  headers: {
47
47
  Authorization: `Bearer ${this.token}`,
48
48
  "Content-Type": "application/json",
49
- "User-Agent": "expensebot-mcp-auth/0.6.23",
49
+ "User-Agent": "expensebot-mcp-auth/0.6.25",
50
50
  "X-ExpenseBot-MCP-Transport": "stdio",
51
51
  ...options.headers,
52
52
  },
package/src/index.js CHANGED
@@ -38,9 +38,9 @@ for (const arg of args) {
38
38
  if (arg.startsWith("--token=")) token = arg.split("=").slice(1).join("=");
39
39
  }
40
40
 
41
- // If no token: run in onboarding mode — only get_signup_link and
42
- // search_expensebot work. Lets new users discover ExpenseBot via the
43
- // MCP registry without an account.
41
+ // If no token: run in onboarding mode with public setup, pricing, product-help,
42
+ // and trial tools. Lets new users discover ExpenseBot via the MCP registry
43
+ // without an account.
44
44
  const onboardingMode = !token;
45
45
  const client = onboardingMode ? null : new ExpenseBotClient(token);
46
46
 
@@ -64,7 +64,7 @@ const SERVER_INSTRUCTIONS = [
64
64
  if (onboardingMode) {
65
65
  console.error(
66
66
  "[expensebot-auth] No token provided — running in ONBOARDING MODE.\n" +
67
- "Only get_signup_link and search_expensebot are available.\n" +
67
+ "Public setup, pricing, product-help, and trial tools are available.\n" +
68
68
  "Sign up at https://www.expensebot.ai for full access (60-day free trial)."
69
69
  );
70
70
  }
@@ -1527,7 +1527,10 @@ const TOOLS = [
1527
1527
  {
1528
1528
  name: "add_income",
1529
1529
  description:
1530
- "Log an income entry manually (cash, check, Stripe payout, etc.). " +
1530
+ "Log exactly one user-confirmed income payment manually (cash, check, Stripe payout, etc.). " +
1531
+ "Never loop this tool over a statement, export, table, or multi-row list. For two or more " +
1532
+ "payments, use add_income_from_csv for CSV/TSV/text or add_income_from_file for an image/PDF; " +
1533
+ "those tools stage a duplicate-checked preview and require confirmation before writing. " +
1531
1534
  "Writes to the Income tab of the user's expense spreadsheet. Useful " +
1532
1535
  "for income that isn't auto-detected from Gmail or Plaid. Call " +
1533
1536
  "list_income_categories first and use one of its fixed tax categories; " +
@@ -2873,6 +2876,9 @@ const TOOLS = [
2873
2876
  "Two-phase operation: calls with confirm omitted or false return a " +
2874
2877
  "preview of the current→proposed change and make no change. After user " +
2875
2878
  "confirmation, a call with confirm:true applies the proposed change. " +
2879
+ "If the expense is not found, search once for a current exact expenseId; never retry the " +
2880
+ "same stale ID. If a business-purpose update exceeds the Notes capacity, stop and send the " +
2881
+ "user to https://www.expensebot.ai/review-expenses?source=mcp instead of retrying. " +
2876
2882
  "Only category/tag/merchant/businessPurpose are " +
2877
2883
  "editable — amounts, dates, and notes are not editable via the " +
2878
2884
  "assistant. Does not create or delete rows.",
@@ -3402,7 +3408,7 @@ async function handleTool(name, args) {
3402
3408
  url.searchParams.set("query", args?.feature || "");
3403
3409
  url.searchParams.set("utm_source", "mcp-onboarding");
3404
3410
  const res = await fetch(url.toString(), {
3405
- headers: { "User-Agent": "expensebot-mcp-auth/0.6.0" },
3411
+ headers: { "User-Agent": "expensebot-mcp-auth/0.6.25" },
3406
3412
  });
3407
3413
  const data = await res.json();
3408
3414
  return formatResultWithSchema(name, data);
@@ -3712,7 +3718,7 @@ function formatResultWithSchema(toolName, result) {
3712
3718
 
3713
3719
  async function main() {
3714
3720
  const server = new Server(
3715
- { name: "expensebot-auth", version: "0.6.23" },
3721
+ { name: "expensebot-auth", version: "0.6.25" },
3716
3722
  { capabilities: { tools: {} }, instructions: SERVER_INSTRUCTIONS }
3717
3723
  );
3718
3724
 
package/src/test.js CHANGED
@@ -234,6 +234,7 @@ function runServer({ token = "", apiBase, requests = REQUESTS } = {}) {
234
234
  });
235
235
 
236
236
  const responses = [];
237
+ let stderrBuf = "";
237
238
  let stdoutBuf = "";
238
239
 
239
240
  child.stdout.on("data", (chunk) => {
@@ -252,6 +253,7 @@ function runServer({ token = "", apiBase, requests = REQUESTS } = {}) {
252
253
  });
253
254
 
254
255
  child.stderr.on("data", (d) => {
256
+ stderrBuf += d.toString();
255
257
  // Pass through banners only when running in verbose mode
256
258
  if (process.env.MCP_TEST_VERBOSE) {
257
259
  process.stderr.write(`[server] ${d}`);
@@ -264,6 +266,7 @@ function runServer({ token = "", apiBase, requests = REQUESTS } = {}) {
264
266
  reject(new Error(`Server exited with code ${code}`));
265
267
  return;
266
268
  }
269
+ responses.stderr = stderrBuf;
267
270
  resolve(responses);
268
271
  });
269
272
 
@@ -318,6 +321,12 @@ function check(label, ok, details = "") {
318
321
  const byId = new Map(
319
322
  responses.filter((r) => r.id != null).map((r) => [r.id, r])
320
323
  );
324
+ check(
325
+ "onboarding startup message describes the full public surface",
326
+ /Public setup, pricing, product-help, and trial tools are available\./.test(
327
+ responses.stderr || ""
328
+ ) && !/Only get_signup_link/.test(responses.stderr || "")
329
+ );
321
330
 
322
331
  const instructions = byId.get(1)?.result?.instructions || "";
323
332
  check(