@expensebot/mcp-server-auth 0.6.3 → 0.6.5

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.3",
3
+ "version": "0.6.5",
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": {
package/src/client.js CHANGED
@@ -20,7 +20,8 @@ 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.3",
23
+ "User-Agent": "expensebot-mcp-auth/0.6.5",
24
+ "X-ExpenseBot-MCP-Transport": "stdio",
24
25
  ...options.headers,
25
26
  },
26
27
  body: options.body ? JSON.stringify(options.body) : undefined,
package/src/index.js CHANGED
@@ -157,7 +157,9 @@ const TOOLS = [
157
157
  "Search and filter the user's expenses. Returns matching expense rows " +
158
158
  "from their spreadsheet. Filter by category, merchant, date range, " +
159
159
  "amount, or tags. Each result includes expenseId, the exact durable " +
160
- "Receipt ID required by update_expense.",
160
+ "Receipt ID required by update_expense. Results are paginated: when " +
161
+ "hasMore is true, call again with nextCursor and the same filters. Do " +
162
+ "not split a date range into repeated overlapping searches.",
161
163
  inputSchema: {
162
164
  type: "object",
163
165
  properties: {
@@ -176,7 +178,12 @@ const TOOLS = [
176
178
  minAmount: { type: "number", description: "Minimum expense amount" },
177
179
  maxAmount: { type: "number", description: "Maximum expense amount" },
178
180
  tags: { type: "array", items: { type: "string" }, description: "Filter by tags" },
179
- limit: { type: "integer", description: "Max results (default 20)", default: 20 },
181
+ limit: { type: "integer", minimum: 1, maximum: 50, description: "Results per page (default 20, maximum 50)", default: 20 },
182
+ cursor: {
183
+ type: "string",
184
+ description:
185
+ "Opaque nextCursor returned by the previous search_expenses page. Reuse the same filters; never construct or edit this value.",
186
+ },
180
187
  },
181
188
  },
182
189
  },
@@ -365,7 +372,10 @@ const TOOLS = [
365
372
  {
366
373
  name: "submit_receipt",
367
374
  description:
368
- "Submit a photo or PDF of a receipt for processing. The receipt image " +
375
+ "Submit a photo or PDF of a receipt for processing. Covers requests " +
376
+ "phrased as 'log this', 'log this receipt', 'save this receipt', " +
377
+ "'expense this', or 'add this to my expenses', including when the user " +
378
+ "simply shares a photo of a receipt or invoice. The receipt image " +
369
379
  "is sent as base64, validated, uploaded to cloud storage, and processed " +
370
380
  "by AI to extract vendor, amount, date, tax, and category. The expense " +
371
381
  "appears in the user's spreadsheet within 30 seconds.",
@@ -1733,7 +1743,7 @@ function formatResult(result) {
1733
1743
 
1734
1744
  async function main() {
1735
1745
  const server = new Server(
1736
- { name: "expensebot-auth", version: "0.6.3" },
1746
+ { name: "expensebot-auth", version: "0.6.5" },
1737
1747
  { capabilities: { tools: {} } }
1738
1748
  );
1739
1749
 
package/src/test.js CHANGED
@@ -206,6 +206,13 @@ function check(label, ok, details = "") {
206
206
  updateExpense?.inputSchema?.properties?.expenseId?.description || ""
207
207
  )
208
208
  );
209
+ const searchExpenses = tools.find((tool) => tool.name === "search_expenses");
210
+ check(
211
+ "search_expenses exposes opaque cursor pagination",
212
+ searchExpenses?.inputSchema?.properties?.cursor?.type === "string" &&
213
+ searchExpenses?.inputSchema?.properties?.limit?.maximum === 50 &&
214
+ /nextCursor/.test(searchExpenses?.description || "")
215
+ );
209
216
  }
210
217
 
211
218
  // 2. get_pricing (id=3) — should succeed in onboarding mode