@expensebot/mcp-server-auth 0.6.11 → 0.6.13

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.11",
3
+ "version": "0.6.13",
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": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "_meta": {
3
- "generatedAt": "2026-08-07T18:23:29.233Z",
3
+ "generatedAt": "2026-05-07T05:13:24.014Z",
4
4
  "sourceKb": "../server/config/kb/entries/income-and-pnl-analytics.md",
5
5
  "note": "Auto-generated from KB. Do NOT edit by hand — re-run `npm run gen-descriptions` after the KB changes."
6
6
  },
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.11",
49
+ "User-Agent": "expensebot-mcp-auth/0.6.13",
50
50
  "X-ExpenseBot-MCP-Transport": "stdio",
51
51
  ...options.headers,
52
52
  },
package/src/index.js CHANGED
@@ -169,8 +169,9 @@ const TOOLS = [
169
169
  "again with nextCursor and the same filters. Do not split a date " +
170
170
  "range into repeated overlapping searches.\n\n" +
171
171
  "Use the optional query parameter for deterministic natural-language " +
172
- "recall over merchant, city/location, Notes (including Business " +
173
- "purpose), Tag, and category. Each matching result includes " +
172
+ "recall over merchant, city/location, Notes (including receipt items, " +
173
+ "delivery source, payer, and Business purpose), Tag, and category. " +
174
+ "Each matching result includes " +
174
175
  "matchedFields and a short matchReason so you can explain why it " +
175
176
  "was selected. When several rows plausibly match, a disambiguation " +
176
177
  "list is returned; each option carries the exact expenseId. " +
@@ -186,7 +187,8 @@ const TOOLS = [
186
187
  type: "string",
187
188
  description:
188
189
  "Optional natural-language recall over the user's existing expense " +
189
- "fields (merchant, city/location, Notes including Business purpose, " +
190
+ "fields (merchant, city/location, Notes including receipt items, " +
191
+ "delivery source, payer, and Business purpose, " +
190
192
  "Tag, category). Deterministic case-insensitive matching — no " +
191
193
  "embeddings or model classifiers. Combine with structured filters " +
192
194
  "using AND semantics. Examples: 'Tribeca restaurant', 'Bodewell " +
@@ -206,6 +208,11 @@ const TOOLS = [
206
208
  minAmount: { type: "number", description: "Minimum expense amount" },
207
209
  maxAmount: { type: "number", description: "Maximum expense amount" },
208
210
  tags: { type: "array", items: { type: "string" }, description: "Filter by tags" },
211
+ hasReceipt: {
212
+ type: "boolean",
213
+ description:
214
+ "When true, return only expenses with a receipt link. When false, return only expenses without one.",
215
+ },
209
216
  limit: { type: "integer", minimum: 1, maximum: 50, description: "Results per page (default 20, maximum 50)", default: 20 },
210
217
  cursor: {
211
218
  type: "string",
@@ -1155,6 +1162,10 @@ const TOOLS = [
1155
1162
  "or General Settings link. Category, G/L, and account-code requests use " +
1156
1163
  "Category management; client, project, and trip groups use Group " +
1157
1164
  "management; questions about what counts as Personal use Personal rules. " +
1165
+ "Team setup requests use the returned role-aware Team setup handoff: " +
1166
+ "eligible solo business owners open Add teammates, while existing team " +
1167
+ "owners and co-admins open License Manager. If the handoff says owner " +
1168
+ "access is required, explain that instead of presenting a broken link. " +
1158
1169
  "Complex or visually reviewed report requests " +
1159
1170
  "use the returned Create report link. Read-only; this tool does " +
1160
1171
  "not create or modify spreadsheet rows.",
@@ -2095,7 +2106,7 @@ function formatResult(result) {
2095
2106
 
2096
2107
  async function main() {
2097
2108
  const server = new Server(
2098
- { name: "expensebot-auth", version: "0.6.11" },
2109
+ { name: "expensebot-auth", version: "0.6.13" },
2099
2110
  { capabilities: { tools: {} }, instructions: SERVER_INSTRUCTIONS }
2100
2111
  );
2101
2112
 
package/src/test.js CHANGED
@@ -245,6 +245,10 @@ function check(label, ok, details = "") {
245
245
  searchExpenses?.inputSchema?.properties?.limit?.maximum === 50 &&
246
246
  /nextCursor/.test(searchExpenses?.description || "")
247
247
  );
248
+ check(
249
+ "search_expenses exposes the shared receipt-state filter",
250
+ searchExpenses?.inputSchema?.properties?.hasReceipt?.type === "boolean"
251
+ );
248
252
  const createReport = tools.find((tool) => tool.name === "create_report");
249
253
  check(
250
254
  "create_report exposes Report Wizard-compatible exclusions",