@expensebot/mcp-server-auth 0.6.7 → 0.6.8

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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@expensebot/mcp-server-auth",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "mcpName": "io.github.TotesMagotes/mcp-server-auth",
5
5
  "description": "Authenticated MCP server for ExpenseBot — lets Claude Desktop, Cursor, and other AI assistants search your expenses, create reports, and analyze spending using your actual ExpenseBot data.",
6
6
  "bin": {
7
- "expensebot-mcp-auth": "./src/index.js"
7
+ "expensebot-mcp-auth": "src/index.js"
8
8
  },
9
9
  "type": "module",
10
10
  "main": "./src/index.js",
package/src/client.js CHANGED
@@ -20,7 +20,7 @@ export class ExpenseBotClient {
20
20
  headers: {
21
21
  Authorization: `Bearer ${this.token}`,
22
22
  "Content-Type": "application/json",
23
- "User-Agent": "expensebot-mcp-auth/0.6.7",
23
+ "User-Agent": "expensebot-mcp-auth/0.6.8",
24
24
  "X-ExpenseBot-MCP-Transport": "stdio",
25
25
  ...options.headers,
26
26
  },
package/src/index.js CHANGED
@@ -43,7 +43,7 @@ const client = onboardingMode ? null : new ExpenseBotClient(token);
43
43
 
44
44
  const SERVER_INSTRUCTIONS = [
45
45
  "ExpenseBot tracks the user's business expenses and income in a Google Sheet they own.",
46
- "After submit_receipt returns a submissionId, call get_last_receipt_result with that exact ID after about 15 seconds; retry every 15 seconds for up to 2 minutes. Report the final added/duplicate/skipped/error counts, then show spreadsheetUrl and reviewExpensesUrl.",
46
+ "After submit_receipt returns a submissionId, call get_last_receipt_result with that exact ID using the polling interval and time allowance returned by submit_receipt. A small batch allows at least 5 minutes and larger batches allow longer. A pending result is normal; never resubmit the same file because that creates a duplicate. Report the final counts, then show spreadsheetUrl and reviewExpensesUrl.",
47
47
  "After another expense submission, show the returned spreadsheetUrl and reviewExpensesUrl.",
48
48
  "For income writes, show spreadsheetUrl and reviewIncomeUrl.",
49
49
  "For Gmail scan progress or completion, call get_scan_status. Report its authoritative status and live phase; on completion show spreadsheetUrl and reviewExpensesUrl, and when action is needed show gmailScanUrl.",
@@ -402,8 +402,9 @@ const TOOLS = [
402
402
  "simply shares a photo of a receipt or invoice. The receipt image " +
403
403
  "is validated, uploaded to cloud storage, and processed " +
404
404
  "by AI to extract vendor, amount, date, tax, and category. The expense " +
405
- "appears in the user's spreadsheet within 30 seconds. Handles images and " +
406
- "PDFs, mixed together in one batch.\n\n" +
405
+ "appears in the user's spreadsheet in about 1-3 minutes, and longer for " +
406
+ "PDFs or large batches. Handles images and PDFs, mixed together in one " +
407
+ "batch.\n\n" +
407
408
  "TO SEND FILES (preferred, and required for PDFs): call this tool with " +
408
409
  "filesToUpload listing every file the user gave you. It returns one " +
409
410
  "signed upload URL per file. Upload them ONE AT A TIME with an HTTP PUT, " +
@@ -511,9 +512,11 @@ const TOOLS = [
511
512
  name: "get_last_receipt_result",
512
513
  description:
513
514
  "Check the authoritative final outcome of a receipt image/PDF batch submitted " +
514
- "with submit_receipt. After submit_receipt returns submissionId, wait about " +
515
- "15 seconds and call this tool with that exact ID; if found is false, retry " +
516
- "every 15 seconds for up to 2 minutes. Returns added, duplicate, skipped, or " +
515
+ "with submit_receipt. After submit_receipt returns submissionId, call this " +
516
+ "tool with that exact ID using the polling interval and time allowance in " +
517
+ "the submit_receipt response. A small batch allows at least 5 minutes; larger " +
518
+ "batches allow longer. A pending result is normal and must not trigger a " +
519
+ "duplicate resubmission. Returns added, duplicate, skipped, or " +
517
520
  "errored verdicts with exact counts and up to 10 processed receipt summaries. " +
518
521
  "On completion, tell the user what happened and show spreadsheetUrl plus " +
519
522
  "reviewExpensesUrl. This is for uploaded receipts; use get_scan_status for " +
@@ -1904,7 +1907,7 @@ function formatResult(result) {
1904
1907
 
1905
1908
  async function main() {
1906
1909
  const server = new Server(
1907
- { name: "expensebot-auth", version: "0.6.7" },
1910
+ { name: "expensebot-auth", version: "0.6.8" },
1908
1911
  { capabilities: { tools: {} }, instructions: SERVER_INSTRUCTIONS }
1909
1912
  );
1910
1913
 
@@ -1,10 +0,0 @@
1
- {
2
- "_meta": {
3
- "generatedAt": "2026-05-07T05:13:24.014Z",
4
- "sourceKb": "../server/config/kb/entries/income-and-pnl-analytics.md",
5
- "note": "Auto-generated from KB. Do NOT edit by hand — re-run `npm run gen-descriptions` after the KB changes."
6
- },
7
- "get_income_summary": "Get income totals and breakdowns from the Income tab — Schedule C / T2125 basis. Excludes Schedule B (interest, dividends), tax refunds, and security deposits (mirrors year-end report routing). Examples: \"How much income YTD?\", \"Income by source\", \"by month\", \"by payment method\".",
8
- "get_pnl": "Compute Profit & Loss across the Income tab and expenses. Examples: \"Am I profitable this year?\", \"Net income last quarter\", \"What's my margin?\", \"P&L for Q1\".",
9
- "get_per_tag_pnl": "Per-tag P&L — revenue, cost, profit, and margin grouped by tag. Requires both income AND expense rows to be tagged consistently. Examples: ."
10
- }