@expensebot/mcp-server-auth 0.6.3 → 0.6.4

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.4",
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.4",
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
  },
@@ -1733,7 +1740,7 @@ function formatResult(result) {
1733
1740
 
1734
1741
  async function main() {
1735
1742
  const server = new Server(
1736
- { name: "expensebot-auth", version: "0.6.3" },
1743
+ { name: "expensebot-auth", version: "0.6.4" },
1737
1744
  { capabilities: { tools: {} } }
1738
1745
  );
1739
1746
 
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
@@ -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
- }