@expensebot/mcp-server-auth 0.6.10 → 0.6.12

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@expensebot/mcp-server-auth",
3
- "version": "0.6.10",
3
+ "version": "0.6.12",
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": {
@@ -0,0 +1,10 @@
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
+ }
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.10",
49
+ "User-Agent": "expensebot-mcp-auth/0.6.12",
50
50
  "X-ExpenseBot-MCP-Transport": "stdio",
51
51
  ...options.headers,
52
52
  },
package/src/index.js CHANGED
@@ -1124,11 +1124,11 @@ const TOOLS = [
1124
1124
  {
1125
1125
  name: "export_report",
1126
1126
  description:
1127
- "Get download URLs for an expense report. Returns the Google Sheets " +
1128
- "view URL plus direct PDF / CSV / XLSX export URLs. The user needs to " +
1129
- "be signed into the Google account that owns the report to download " +
1130
- "(no separate auth from the AI client). Use list_reports first to find " +
1131
- "the reportId.",
1127
+ "Get a short-lived direct PDF download for one exact authorized expense " +
1128
+ "report, plus the exact highlighted in-app report link. Use the in-app " +
1129
+ "report for CSV, XLSX, receipt ZIP (when available), comments, invoicing, " +
1130
+ "and other visually reviewed actions. Use list_reports first to find the " +
1131
+ "reportId.",
1132
1132
  inputSchema: {
1133
1133
  type: "object",
1134
1134
  properties: {
@@ -1152,7 +1152,14 @@ const TOOLS = [
1152
1152
  "For a Gmail scan or connection request, use the Scan Gmail link, which " +
1153
1153
  "opens the existing Gmail scanning interface. Bank/card requests use the " +
1154
1154
  "Reconcile link; configuration requests use the returned Automation Hub " +
1155
- "or General Settings link. Complex or visually reviewed report requests " +
1155
+ "or General Settings link. Category, G/L, and account-code requests use " +
1156
+ "Category management; client, project, and trip groups use Group " +
1157
+ "management; questions about what counts as Personal use Personal rules. " +
1158
+ "Team setup requests use the returned role-aware Team setup handoff: " +
1159
+ "eligible solo business owners open Add teammates, while existing team " +
1160
+ "owners and co-admins open License Manager. If the handoff says owner " +
1161
+ "access is required, explain that instead of presenting a broken link. " +
1162
+ "Complex or visually reviewed report requests " +
1156
1163
  "use the returned Create report link. Read-only; this tool does " +
1157
1164
  "not create or modify spreadsheet rows.",
1158
1165
  inputSchema: { type: "object", properties: {} },
@@ -1312,7 +1319,8 @@ const TOOLS = [
1312
1319
  "Check the authoritative status of the user's Gmail receipt scans. " +
1313
1320
  "Returns the active scan lock, the same live phase and item progress " +
1314
1321
  "shown by ExpenseBot's in-app status pill, queued or attention-needed " +
1315
- "years, and recent outcomes. Call when the user asks whether a scan is " +
1322
+ "years, completed calendar years, current merchant/category exclusions, " +
1323
+ "and recent outcomes. Call when the user asks whether a scan is " +
1316
1324
  "running, finished, stuck, or what it is doing. When complete, show the " +
1317
1325
  "returned spreadsheetUrl or reviewExpensesUrl; when setup or reconnection " +
1318
1326
  "is needed, show gmailScanUrl. Read-only.",
@@ -2091,7 +2099,7 @@ function formatResult(result) {
2091
2099
 
2092
2100
  async function main() {
2093
2101
  const server = new Server(
2094
- { name: "expensebot-auth", version: "0.6.10" },
2102
+ { name: "expensebot-auth", version: "0.6.12" },
2095
2103
  { capabilities: { tools: {} }, instructions: SERVER_INSTRUCTIONS }
2096
2104
  );
2097
2105