@expensebot/mcp-server-auth 0.6.16 → 0.6.18

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/README.md CHANGED
@@ -1,15 +1,15 @@
1
1
  # @expensebot/mcp-server-auth
2
2
 
3
- Authenticated MCP (Model Context Protocol) server for [ExpenseBot](https://www.expensebot.ai). Lets Claude Desktop, Cursor, Claude Code, Continue, Cline, Windsurf, and any MCP-compatible AI assistant search receipts, submit photos, scan Gmail, create reports, and analyze spending using your real ExpenseBot account.
3
+ Authenticated MCP (Model Context Protocol) server for [ExpenseBot](https://www.expensebot.ai). Lets Copilot, Gemini, Replit, Cursor, Claude Desktop, Claude Code, Continue, Cline, Windsurf, and other MCP-compatible assistants search receipts, submit photos and PDFs, scan Gmail, create reports, and analyze spending using your real ExpenseBot account.
4
4
 
5
- **49 tools** across:
5
+ **51 tools** across:
6
6
  - **Search & analytics** — `search_expenses`, `get_spending_summary`, `get_deep_analytics`, `list_categories`, `list_tags`, `list_income_categories`, `search_knowledge`
7
7
  - **Income & P&L** *(v0.6.0)* — `get_income_summary`, `get_pnl`, `get_per_tag_pnl`
8
8
  - **Mileage & Subscriptions** *(v0.6.1)* — `get_mileage_summary`, `get_subscription_audit`
9
- - **Receipt and expense capture** — `submit_receipt` (photo/PDF), `get_last_receipt_result`, `add_cash_expense` (including confirmed client advances), `add_mileage_entry`, `add_income`, `add_income_from_file` (screenshot/PDF, parse-preview-confirm), `add_income_from_csv` (CSV/TSV/text, parse-preview-confirm), `parse_expense`, `get_expense_by_id`, `update_expense`, `group_expenses`, `get_spreadsheet_url`
9
+ - **Receipt and expense capture** — `submit_receipt` (photo/PDF), `get_last_receipt_result`, `add_cash_expense` (including confirmed client advances), `add_mileage_entry`, `add_income`, `add_income_from_file` (screenshot/PDF, parse-preview-confirm), `add_income_from_csv` (CSV/TSV/text, parse-preview-confirm), `parse_expense`, `get_expense_by_id`, `update_expense`, `group_expenses`, `correct_expenses`, `get_spreadsheet_url`
10
10
  - **Gmail** — `scan_gmail`, `process_gmail_receipts`, `scan_gmail_years`, `get_scan_status`
11
11
  - **Reports & invoicing** — `create_report`, `list_reports`, `get_report_details`, `share_report`, `export_report`, `list_client_invoices`
12
- - **Expense review** — `get_expense_splits`, `get_monthly_books_review`, `get_credits_refunds`
12
+ - **Expense review** — `get_expense_splits`, `get_monthly_books_review`, `get_credits_refunds`, `get_client_advance_balances`
13
13
  - **Compliance & tax** — `check_compliance`, `fix_compliance`, `check_tax_deductibility`
14
14
  - **Activity, tracing & onboarding** — `get_recent_activity`, `trace_document`, `get_signup_link`, `get_pricing`, `check_feature`, `start_trial_link`
15
15
  - **Business what-if** — `whatif_afford`, `whatif_client`, `whatif_tax_setaside`
@@ -33,7 +33,7 @@ prepended. `update_expense` refuses zero or multiple exact matches.
33
33
 
34
34
  ### Quick start (Claude Desktop)
35
35
 
36
- 1. Sign in at [expensebot.ai](https://www.expensebot.ai) → Settings → AI Assistant Tokens → Generate
36
+ 1. Sign in and open [AI Assistant Tokens](https://www.expensebot.ai/process-info?openMcpTokens=true&source=npm) → Generate
37
37
  2. Copy the token (shown once)
38
38
  3. Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (Mac) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
39
39
 
@@ -42,7 +42,10 @@ prepended. `update_expense` refuses zero or multiple exact matches.
42
42
  "mcpServers": {
43
43
  "expensebot": {
44
44
  "command": "npx",
45
- "args": ["-y", "@expensebot/mcp-server-auth", "--token=YOUR_TOKEN_HERE"]
45
+ "args": ["-y", "@expensebot/mcp-server-auth"],
46
+ "env": {
47
+ "EXPENSEBOT_TOKEN": "YOUR_TOKEN_HERE"
48
+ }
46
49
  }
47
50
  }
48
51
  }
@@ -53,9 +56,11 @@ prepended. `update_expense` refuses zero or multiple exact matches.
53
56
  ### Quick start (Claude Code CLI)
54
57
 
55
58
  ```bash
56
- claude mcp add expensebot -- npx -y @expensebot/mcp-server-auth --token=YOUR_TOKEN_HERE
59
+ claude mcp add expensebot -- npx -y @expensebot/mcp-server-auth
57
60
  ```
58
61
 
62
+ Store `EXPENSEBOT_TOKEN` in Claude Code's environment or secret settings first. Do not put the token in the command or paste it into chat.
63
+
59
64
  ### Quick start (Cursor)
60
65
 
61
66
  Edit `~/.cursor/mcp.json`:
@@ -65,7 +70,10 @@ Edit `~/.cursor/mcp.json`:
65
70
  "mcpServers": {
66
71
  "expensebot": {
67
72
  "command": "npx",
68
- "args": ["-y", "@expensebot/mcp-server-auth", "--token=YOUR_TOKEN_HERE"]
73
+ "args": ["-y", "@expensebot/mcp-server-auth"],
74
+ "env": {
75
+ "EXPENSEBOT_TOKEN": "YOUR_TOKEN_HERE"
76
+ }
69
77
  }
70
78
  }
71
79
  }
@@ -75,7 +83,22 @@ Then in Cursor: Settings → Tools & Integrations → confirm the green dot next
75
83
 
76
84
  ### Continue, Cline, Windsurf, custom clients
77
85
 
78
- Same `npx -y @expensebot/mcp-server-auth --token=...` command in your client's MCP config.
86
+ Use `npx -y @expensebot/mcp-server-auth` in your client's MCP config and provide the token through its `EXPENSEBOT_TOKEN` environment or secret setting.
87
+
88
+ ### Remote/custom agents (including Viktor)
89
+
90
+ If the client supports remote HTTP MCP with OAuth, add:
91
+
92
+ ```text
93
+ https://mcp.expensebot.ai/mcp
94
+ ```
95
+
96
+ Complete ExpenseBot sign-in and consent in the browser. No personal token or manual OAuth client secret is needed. If the client supports only local/stdio MCP, use the npm setup above. Never email a token or paste it into an AI conversation.
97
+
98
+ This repository publishes both connection methods in `server.json`: the remote
99
+ Streamable HTTP server for OAuth-capable clients and the npm stdio package for
100
+ local clients. Host directories may expose either or both depending on their
101
+ transport and authentication support.
79
102
 
80
103
  ## Token model
81
104
 
@@ -85,9 +108,11 @@ Same `npx -y @expensebot/mcp-server-auth --token=...` command in your client's M
85
108
  - All actions audit-logged server-side
86
109
  - Tokens stored as SHA-256 hashes; CASA Tier 2 certified
87
110
 
88
- ## Listed on
111
+ ## Discovery
89
112
 
90
- - **Official MCP Registry** — `io.github.TotesMagotes/mcp-server-auth`
113
+ - **Official MCP Registry** — active as
114
+ `io.github.TotesMagotes/mcp-server-auth`; version `0.6.18` is the current
115
+ listing with both npm stdio and remote Streamable HTTP transports
91
116
  - **awesome-mcp-servers** — Finance & Fintech section
92
117
  - **Glama** — <https://glama.ai/mcp/servers/TotesMagotes/expensebot>
93
118
 
@@ -121,7 +146,7 @@ Exposes the ExpenseBot knowledge base, FAQ, and feature docs as MCP resources. U
121
146
 
122
147
  - Source: <https://github.com/TotesMagotes/expensebot/tree/master/mcp-server-auth>
123
148
  - Issues: email `support@expensebot.ai`
124
- - Roadmap (remote HTTPS MCP for ChatGPT + Claude.ai web): <https://www.expensebot.ai/mcp>
149
+ - Complete setup chooser and remote/desktop instructions: <https://www.expensebot.ai/mcp#choose-connection>
125
150
 
126
151
  ## Maintainer: adding or changing a tool
127
152
 
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@expensebot/mcp-server-auth",
3
- "version": "0.6.16",
3
+ "version": "0.6.18",
4
4
  "mcpName": "io.github.TotesMagotes/mcp-server-auth",
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.",
5
+ "description": "ExpenseBot MCP server for receipt and income capture, Gmail scans, spending analytics, and reviewed expense reports from AI assistants.",
6
6
  "bin": {
7
7
  "expensebot-mcp-auth": "src/index.js"
8
8
  },
@@ -21,6 +21,10 @@
21
21
  "receipts",
22
22
  "ai",
23
23
  "claude",
24
+ "chatgpt",
25
+ "gemini",
26
+ "copilot",
27
+ "bookkeeping",
24
28
  "accounting"
25
29
  ],
26
30
  "engines": {
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.16",
49
+ "User-Agent": "expensebot-mcp-auth/0.6.18",
50
50
  "X-ExpenseBot-MCP-Transport": "stdio",
51
51
  ...options.headers,
52
52
  },
@@ -60,7 +60,7 @@ export class ExpenseBotClient {
60
60
  "1. Go to https://www.expensebot.ai (sign up for free 60-day trial if you don't have an account)\n" +
61
61
  "2. Click Settings → AI Assistant Tokens → Generate\n" +
62
62
  "3. Copy the token (shown only once)\n" +
63
- "4. Update your MCP config with --token=<new-token>\n" +
63
+ "4. Update EXPENSEBOT_TOKEN in your AI client's secret or environment configuration\n" +
64
64
  "5. Restart your AI client (Claude Desktop, Cursor, etc.)"
65
65
  );
66
66
  }
package/src/index.js CHANGED
@@ -6,15 +6,17 @@
6
6
  * create reports, get analytics, and more — using the user's actual
7
7
  * ExpenseBot data.
8
8
  *
9
- * Usage:
10
- * npx @expensebot/mcp-server-auth --token=<your-pat>
9
+ * Usage: provide EXPENSEBOT_TOKEN through the client's secret/environment
10
+ * configuration, then run:
11
+ * npx @expensebot/mcp-server-auth
11
12
  *
12
13
  * Claude Desktop config:
13
14
  * {
14
15
  * "mcpServers": {
15
16
  * "expensebot": {
16
17
  * "command": "npx",
17
- * "args": ["-y", "@expensebot/mcp-server-auth", "--token=<your-pat>"]
18
+ * "args": ["-y", "@expensebot/mcp-server-auth"],
19
+ * "env": { "EXPENSEBOT_TOKEN": "<stored securely by the client>" }
18
20
  * }
19
21
  * }
20
22
  * }
@@ -28,7 +30,8 @@ import {
28
30
  } from "@modelcontextprotocol/sdk/types.js";
29
31
  import { ExpenseBotClient } from "./client.js";
30
32
 
31
- // Parse --token from args
33
+ // Environment configuration is canonical. Keep the legacy argument parser so
34
+ // existing installations do not break, but do not advertise secrets in argv.
32
35
  const args = process.argv.slice(2);
33
36
  let token = process.env.EXPENSEBOT_TOKEN;
34
37
  for (const arg of args) {
@@ -44,6 +47,7 @@ const client = onboardingMode ? null : new ExpenseBotClient(token);
44
47
  const SERVER_INSTRUCTIONS = [
45
48
  "ExpenseBot tracks the user's business expenses and income in a Google Sheet they own.",
46
49
  "For a requested multi-step workflow, be concise: show the grounded preview, ask one clear yes/no confirmation when required, then complete every approved step. Prefer group_expenses for group-and-report requests even when the expenses already have that group. Do not add unsolicited tax, audit, substantiation, or client-AP advice, and do not second-guess an approved scope unless a tool reports an ambiguity, conflict, or failure. A request to create, share, or bill from a report is NOT a request for compliance, tax, deductibility, report-detail, business-purpose, attendee, or reimbursement analysis: never call those tools as a preflight or follow-up unless the user explicitly asks for that analysis. 'Without personal expenses' is only a report filter. isReimbursable is ExpenseBot workflow state, not a judgment about whether an expense may be billed to a client.",
50
+ "For exact corrections across several expenses, use correct_expenses only after search_expenses has returned the exact expenseId values. Show its automatic preview, ask one yes/no question, then return its verified terminal result without adding advice. Use only attendee names the user explicitly supplied. For broad, ambiguous, mixed, or more than 100-row cleanup, link to Review Expenses instead.",
47
51
  "Across every tool, treat returned counts, totals, currencies, statuses, and completion evidence as authoritative. Never recompute them from detail rows or reinterpret a successful result. After an approved write completes, report the outcome and relevant links without reopening the user's approved scope or adding unrequested advice. Ask another question only when the tool reports an ambiguity, conflict, failure, or required external side effect.",
48
52
  "Across every answer, answer the user's requested task first and stop when it is complete. Do not infer intent, risk, tax treatment, reimbursement eligibility, business purpose, attendees, client expectations, or currency preferences from merchants, locations, dates, or amounts. Offer analysis, warnings, or follow-up work only when the user asks for it or an authoritative tool result says action is required.",
49
53
  "A successful terminal write result supersedes intermediate search and preview observations. The final answer must follow the terminal result's responseGuidance and must not repeat exploratory candidates, excluded near-matches, or concerns that the terminal tool did not report. When a terminal result contains finalAnswer, return it verbatim and add nothing else. After a Bill Client handoff, do not offer report sharing or currency advice unless the user explicitly requested it.",
@@ -287,7 +291,11 @@ const TOOLS = [
287
291
  "existing client/project/trip group include matching expenses that are " +
288
292
  "not already assigned to another ordinary report. Can optionally share " +
289
293
  "with recipients. If no unreported matches remain, create no duplicate " +
290
- "report and explain that the expenses are already in Reports. Complete " +
294
+ "report and explain that the expenses are already in Reports. Terminal " +
295
+ "results also include accountingHandoffUrls for QuickBooks, Xero, and " +
296
+ "the existing file-export workflow. Use only the exact " +
297
+ "destination the user requested; the link opens the reviewed app flow " +
298
+ "and does not mean an export occurred. Complete " +
291
299
  "the requested report directly; do not call " +
292
300
  "check_compliance, get_report_details, or tax/deductibility tools before " +
293
301
  "or after it unless the user explicitly asks for that separate analysis.",
@@ -330,7 +338,10 @@ const TOOLS = [
330
338
  name: "list_reports",
331
339
  description:
332
340
  "List the user's expense reports with pagination. Filter by status " +
333
- "(All, Draft, Submitted, Shared).",
341
+ "(All, Draft, Submitted, Shared). Each exact report includes its app, " +
342
+ "Bill Client, and accounting handoff URLs. Use the matching accounting " +
343
+ "URL only when the user explicitly asks to send or export that report; " +
344
+ "the app keeps organization, mapping, preview, and final confirmation.",
334
345
  inputSchema: {
335
346
  type: "object",
336
347
  properties: {
@@ -1718,6 +1729,34 @@ const TOOLS = [
1718
1729
  },
1719
1730
  },
1720
1731
  },
1732
+ {
1733
+ name: "get_client_advance_balances",
1734
+ description:
1735
+ "Read the same per-client advance balances shown in ExpenseBot's Open " +
1736
+ "Balances section. Use for questions like 'how much of Acme's advance " +
1737
+ "remains?', 'which client floats are still open?', or 'do I owe a client " +
1738
+ "a refund?'. A negative ledger balance means money remains to refund; a " +
1739
+ "positive balance means the client owes the user. Returns the existing " +
1740
+ "app handoff for Refund leftover or Bill Client. Read-only: never records " +
1741
+ "a refund, creates an invoice, or recomputes the ledger in model prose.",
1742
+ inputSchema: {
1743
+ type: "object",
1744
+ properties: {
1745
+ clientEmail: CLIENT_EMAIL_SCHEMA,
1746
+ clientName: {
1747
+ type: "string",
1748
+ description:
1749
+ "Optional client name or canonical Client tag. Omit to list all open balances.",
1750
+ },
1751
+ days: {
1752
+ type: "integer",
1753
+ minimum: 30,
1754
+ maximum: 3650,
1755
+ description: "Lookback window in days (default 365).",
1756
+ },
1757
+ },
1758
+ },
1759
+ },
1721
1760
  {
1722
1761
  name: "group_expenses",
1723
1762
  description:
@@ -1838,6 +1877,105 @@ const TOOLS = [
1838
1877
  required: ["expenseId", "fields"],
1839
1878
  },
1840
1879
  },
1880
+ {
1881
+ name: "correct_expenses",
1882
+ description:
1883
+ "Safely correct the category, business purpose, or explicit attendees on an exact bounded set of recorded expenses. " +
1884
+ "Examples: 'categorize these as Travel', 'add Client kickoff dinner as the business purpose for these meals', or " +
1885
+ "'add Fred, Rob, and Lamar to last night's business meal'. First use search_expenses to identify the exact rows, then pass their full expenseId values. " +
1886
+ "A grounded preview is automatic: first call with confirm omitted/false, show the exact count and proposed before-to-after changes, and ask once for approval. " +
1887
+ "Only after explicit approval repeat the same operationId, selection, and change with confirm:true. A premature confirm:true is converted to preview. " +
1888
+ "Attendee names must come explicitly from the user; never infer them. attendeeMode add preserves existing attendees, while replace substitutes only the attendee segment. " +
1889
+ "Business purpose and attendees preserve the structured Notes field, including card, description, inbox, and other typed segments. Formula Notes and changes that exceed the Notes limit are skipped safely. " +
1890
+ "The confirmed result reports applied/conflicted/failed counts and supports Undo. This tool does not omit duplicates, change amounts or dates, infer business context, or run broad Calendar matching. " +
1891
+ "For unsupported or more than 100-row cleanup, send the user to https://www.expensebot.ai/review-expenses?source=mcp.",
1892
+ inputSchema: {
1893
+ type: "object",
1894
+ additionalProperties: false,
1895
+ properties: {
1896
+ change: {
1897
+ type: "object",
1898
+ additionalProperties: false,
1899
+ description:
1900
+ "Exactly one correction. The selected type determines which matching value field is required.",
1901
+ properties: {
1902
+ type: {
1903
+ type: "string",
1904
+ enum: ["category", "businessPurpose", "attendees"],
1905
+ },
1906
+ category: { type: "string" },
1907
+ businessPurpose: { type: "string" },
1908
+ attendees: {
1909
+ type: "array",
1910
+ minItems: 1,
1911
+ maxItems: 25,
1912
+ items: { type: "string" },
1913
+ },
1914
+ attendeeMode: {
1915
+ type: "string",
1916
+ enum: ["add", "replace"],
1917
+ description:
1918
+ "Use add unless the user explicitly asks to replace existing attendees.",
1919
+ },
1920
+ },
1921
+ required: ["type"],
1922
+ },
1923
+ selection: {
1924
+ type: "object",
1925
+ additionalProperties: false,
1926
+ properties: {
1927
+ items: {
1928
+ type: "array",
1929
+ minItems: 1,
1930
+ maxItems: 100,
1931
+ items: {
1932
+ type: "object",
1933
+ additionalProperties: false,
1934
+ properties: {
1935
+ receiptId: {
1936
+ type: "string",
1937
+ description:
1938
+ "Exact full expenseId/Column-Q receipt identity from search_expenses.",
1939
+ },
1940
+ expected: {
1941
+ type: "object",
1942
+ additionalProperties: false,
1943
+ description:
1944
+ "Optional optimistic-concurrency values copied from the search result.",
1945
+ properties: {
1946
+ category: { type: "string" },
1947
+ notes: { type: "string" },
1948
+ },
1949
+ },
1950
+ },
1951
+ required: ["receiptId"],
1952
+ },
1953
+ },
1954
+ },
1955
+ required: ["items"],
1956
+ },
1957
+ operationId: {
1958
+ type: "string",
1959
+ pattern: "^expense-bulk:[a-zA-Z0-9_-]{8,100}$",
1960
+ description:
1961
+ "Stable idempotency key generated once for preview and reused unchanged.",
1962
+ },
1963
+ confirm: {
1964
+ type: "boolean",
1965
+ description: "Omit/false for preview; true only after explicit approval.",
1966
+ },
1967
+ status: {
1968
+ type: "boolean",
1969
+ description: "Read operation status using operationId.",
1970
+ },
1971
+ undo: {
1972
+ type: "boolean",
1973
+ description: "Undo a completed correction within its Undo window.",
1974
+ },
1975
+ },
1976
+ required: ["operationId"],
1977
+ },
1978
+ },
1841
1979
  ];
1842
1980
 
1843
1981
  // Tools available without authentication (onboarding mode)
@@ -2276,6 +2414,15 @@ async function handleTool(name, args) {
2276
2414
  })
2277
2415
  );
2278
2416
 
2417
+ case "get_client_advance_balances":
2418
+ return formatResult(
2419
+ await client.execute("get_client_advance_balances", {
2420
+ clientEmail: args.clientEmail,
2421
+ clientName: args.clientName,
2422
+ days: args.days,
2423
+ })
2424
+ );
2425
+
2279
2426
  case "group_expenses":
2280
2427
  return formatResult(
2281
2428
  await client.execute("group_expenses", {
@@ -2294,6 +2441,18 @@ async function handleTool(name, args) {
2294
2441
  })
2295
2442
  );
2296
2443
 
2444
+ case "correct_expenses":
2445
+ return formatResult(
2446
+ await client.execute("correct_expenses", {
2447
+ change: args.change,
2448
+ selection: args.selection,
2449
+ operationId: args.operationId,
2450
+ confirm: args.confirm,
2451
+ status: args.status,
2452
+ undo: args.undo,
2453
+ })
2454
+ );
2455
+
2297
2456
  case "update_expense":
2298
2457
  return formatResult(
2299
2458
  await client.execute("update_expense", {
@@ -2401,7 +2560,7 @@ function formatResult(result) {
2401
2560
 
2402
2561
  async function main() {
2403
2562
  const server = new Server(
2404
- { name: "expensebot-auth", version: "0.6.16" },
2563
+ { name: "expensebot-auth", version: "0.6.18" },
2405
2564
  { capabilities: { tools: {} }, instructions: SERVER_INSTRUCTIONS }
2406
2565
  );
2407
2566
 
package/src/test.js CHANGED
@@ -23,7 +23,7 @@ import { readStructuredHttpError } from "./client.js";
23
23
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
24
24
  const SERVER_PATH = path.join(__dirname, "index.js");
25
25
 
26
- const EXPECTED_TOOL_COUNT = 49; // + two-phase income file/CSV import tools
26
+ const EXPECTED_TOOL_COUNT = 51;
27
27
  const REQUIRED_TOOLS = [
28
28
  // v0.5.x
29
29
  "search_expenses",
@@ -53,11 +53,13 @@ const REQUIRED_TOOLS = [
53
53
  "get_scan_status",
54
54
  "update_expense",
55
55
  "group_expenses",
56
+ "correct_expenses",
56
57
  // Phase 4B — read-only surfaces for shipped product data
57
58
  "list_client_invoices",
58
59
  "get_expense_splits",
59
60
  "get_monthly_books_review",
60
61
  "get_credits_refunds",
62
+ "get_client_advance_balances",
61
63
  ];
62
64
 
63
65
  const REQUESTS = [
@@ -343,6 +345,21 @@ function check(label, ok, details = "") {
343
345
  groupExpenses?.description || ""
344
346
  )
345
347
  );
348
+ const correctExpenses = tools.find(
349
+ (tool) => tool.name === "correct_expenses"
350
+ );
351
+ check(
352
+ "correct_expenses is exact, bounded, typed, and reversible",
353
+ correctExpenses?.inputSchema?.properties?.selection?.properties?.items
354
+ ?.maxItems === 100 &&
355
+ correctExpenses?.inputSchema?.properties?.change?.properties?.attendees
356
+ ?.maxItems === 25 &&
357
+ correctExpenses?.inputSchema?.properties?.change?.properties?.attendeeMode
358
+ ?.enum?.includes("replace") &&
359
+ /preview is automatic/i.test(correctExpenses?.description || "") &&
360
+ /supports Undo/i.test(correctExpenses?.description || "") &&
361
+ /does not omit duplicates/i.test(correctExpenses?.description || "")
362
+ );
346
363
  const searchKnowledge = tools.find((tool) => tool.name === "search_knowledge");
347
364
  check(
348
365
  "search_knowledge exposes bounded full-answer retrieval",