@expensebot/mcp-server-auth 0.6.12 → 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 +1 -1
- package/src/client.js +1 -1
- package/src/index.js +11 -4
- package/src/test.js +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expensebot/mcp-server-auth",
|
|
3
|
-
"version": "0.6.
|
|
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": {
|
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.
|
|
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
|
|
173
|
-
"purpose), Tag, and category.
|
|
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
|
|
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",
|
|
@@ -2099,7 +2106,7 @@ function formatResult(result) {
|
|
|
2099
2106
|
|
|
2100
2107
|
async function main() {
|
|
2101
2108
|
const server = new Server(
|
|
2102
|
-
{ name: "expensebot-auth", version: "0.6.
|
|
2109
|
+
{ name: "expensebot-auth", version: "0.6.13" },
|
|
2103
2110
|
{ capabilities: { tools: {} }, instructions: SERVER_INSTRUCTIONS }
|
|
2104
2111
|
);
|
|
2105
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",
|