@expensebot/mcp-server-auth 0.6.16 → 0.6.17
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 +26 -8
- package/package.json +1 -1
- package/src/client.js +2 -2
- package/src/index.js +129 -7
- package/src/test.js +17 -1
package/README.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
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.
|
|
4
4
|
|
|
5
|
-
**
|
|
5
|
+
**50 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
12
|
- **Expense review** — `get_expense_splits`, `get_monthly_books_review`, `get_credits_refunds`
|
|
@@ -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
|
|
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",
|
|
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
|
|
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",
|
|
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,17 @@ Then in Cursor: Settings → Tools & Integrations → confirm the green dot next
|
|
|
75
83
|
|
|
76
84
|
### Continue, Cline, Windsurf, custom clients
|
|
77
85
|
|
|
78
|
-
|
|
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.
|
|
79
97
|
|
|
80
98
|
## Token model
|
|
81
99
|
|
|
@@ -121,7 +139,7 @@ Exposes the ExpenseBot knowledge base, FAQ, and feature docs as MCP resources. U
|
|
|
121
139
|
|
|
122
140
|
- Source: <https://github.com/TotesMagotes/expensebot/tree/master/mcp-server-auth>
|
|
123
141
|
- Issues: email `support@expensebot.ai`
|
|
124
|
-
-
|
|
142
|
+
- Complete setup chooser and remote/desktop instructions: <https://www.expensebot.ai/mcp#choose-connection>
|
|
125
143
|
|
|
126
144
|
## Maintainer: adding or changing a tool
|
|
127
145
|
|
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.17",
|
|
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.17",
|
|
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
|
|
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
|
-
*
|
|
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",
|
|
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
|
-
//
|
|
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.
|
|
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: {
|
|
@@ -1838,6 +1849,105 @@ const TOOLS = [
|
|
|
1838
1849
|
required: ["expenseId", "fields"],
|
|
1839
1850
|
},
|
|
1840
1851
|
},
|
|
1852
|
+
{
|
|
1853
|
+
name: "correct_expenses",
|
|
1854
|
+
description:
|
|
1855
|
+
"Safely correct the category, business purpose, or explicit attendees on an exact bounded set of recorded expenses. " +
|
|
1856
|
+
"Examples: 'categorize these as Travel', 'add Client kickoff dinner as the business purpose for these meals', or " +
|
|
1857
|
+
"'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. " +
|
|
1858
|
+
"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. " +
|
|
1859
|
+
"Only after explicit approval repeat the same operationId, selection, and change with confirm:true. A premature confirm:true is converted to preview. " +
|
|
1860
|
+
"Attendee names must come explicitly from the user; never infer them. attendeeMode add preserves existing attendees, while replace substitutes only the attendee segment. " +
|
|
1861
|
+
"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. " +
|
|
1862
|
+
"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. " +
|
|
1863
|
+
"For unsupported or more than 100-row cleanup, send the user to https://www.expensebot.ai/review-expenses?source=mcp.",
|
|
1864
|
+
inputSchema: {
|
|
1865
|
+
type: "object",
|
|
1866
|
+
additionalProperties: false,
|
|
1867
|
+
properties: {
|
|
1868
|
+
change: {
|
|
1869
|
+
type: "object",
|
|
1870
|
+
additionalProperties: false,
|
|
1871
|
+
description:
|
|
1872
|
+
"Exactly one correction. The selected type determines which matching value field is required.",
|
|
1873
|
+
properties: {
|
|
1874
|
+
type: {
|
|
1875
|
+
type: "string",
|
|
1876
|
+
enum: ["category", "businessPurpose", "attendees"],
|
|
1877
|
+
},
|
|
1878
|
+
category: { type: "string" },
|
|
1879
|
+
businessPurpose: { type: "string" },
|
|
1880
|
+
attendees: {
|
|
1881
|
+
type: "array",
|
|
1882
|
+
minItems: 1,
|
|
1883
|
+
maxItems: 25,
|
|
1884
|
+
items: { type: "string" },
|
|
1885
|
+
},
|
|
1886
|
+
attendeeMode: {
|
|
1887
|
+
type: "string",
|
|
1888
|
+
enum: ["add", "replace"],
|
|
1889
|
+
description:
|
|
1890
|
+
"Use add unless the user explicitly asks to replace existing attendees.",
|
|
1891
|
+
},
|
|
1892
|
+
},
|
|
1893
|
+
required: ["type"],
|
|
1894
|
+
},
|
|
1895
|
+
selection: {
|
|
1896
|
+
type: "object",
|
|
1897
|
+
additionalProperties: false,
|
|
1898
|
+
properties: {
|
|
1899
|
+
items: {
|
|
1900
|
+
type: "array",
|
|
1901
|
+
minItems: 1,
|
|
1902
|
+
maxItems: 100,
|
|
1903
|
+
items: {
|
|
1904
|
+
type: "object",
|
|
1905
|
+
additionalProperties: false,
|
|
1906
|
+
properties: {
|
|
1907
|
+
receiptId: {
|
|
1908
|
+
type: "string",
|
|
1909
|
+
description:
|
|
1910
|
+
"Exact full expenseId/Column-Q receipt identity from search_expenses.",
|
|
1911
|
+
},
|
|
1912
|
+
expected: {
|
|
1913
|
+
type: "object",
|
|
1914
|
+
additionalProperties: false,
|
|
1915
|
+
description:
|
|
1916
|
+
"Optional optimistic-concurrency values copied from the search result.",
|
|
1917
|
+
properties: {
|
|
1918
|
+
category: { type: "string" },
|
|
1919
|
+
notes: { type: "string" },
|
|
1920
|
+
},
|
|
1921
|
+
},
|
|
1922
|
+
},
|
|
1923
|
+
required: ["receiptId"],
|
|
1924
|
+
},
|
|
1925
|
+
},
|
|
1926
|
+
},
|
|
1927
|
+
required: ["items"],
|
|
1928
|
+
},
|
|
1929
|
+
operationId: {
|
|
1930
|
+
type: "string",
|
|
1931
|
+
pattern: "^expense-bulk:[a-zA-Z0-9_-]{8,100}$",
|
|
1932
|
+
description:
|
|
1933
|
+
"Stable idempotency key generated once for preview and reused unchanged.",
|
|
1934
|
+
},
|
|
1935
|
+
confirm: {
|
|
1936
|
+
type: "boolean",
|
|
1937
|
+
description: "Omit/false for preview; true only after explicit approval.",
|
|
1938
|
+
},
|
|
1939
|
+
status: {
|
|
1940
|
+
type: "boolean",
|
|
1941
|
+
description: "Read operation status using operationId.",
|
|
1942
|
+
},
|
|
1943
|
+
undo: {
|
|
1944
|
+
type: "boolean",
|
|
1945
|
+
description: "Undo a completed correction within its Undo window.",
|
|
1946
|
+
},
|
|
1947
|
+
},
|
|
1948
|
+
required: ["operationId"],
|
|
1949
|
+
},
|
|
1950
|
+
},
|
|
1841
1951
|
];
|
|
1842
1952
|
|
|
1843
1953
|
// Tools available without authentication (onboarding mode)
|
|
@@ -2294,6 +2404,18 @@ async function handleTool(name, args) {
|
|
|
2294
2404
|
})
|
|
2295
2405
|
);
|
|
2296
2406
|
|
|
2407
|
+
case "correct_expenses":
|
|
2408
|
+
return formatResult(
|
|
2409
|
+
await client.execute("correct_expenses", {
|
|
2410
|
+
change: args.change,
|
|
2411
|
+
selection: args.selection,
|
|
2412
|
+
operationId: args.operationId,
|
|
2413
|
+
confirm: args.confirm,
|
|
2414
|
+
status: args.status,
|
|
2415
|
+
undo: args.undo,
|
|
2416
|
+
})
|
|
2417
|
+
);
|
|
2418
|
+
|
|
2297
2419
|
case "update_expense":
|
|
2298
2420
|
return formatResult(
|
|
2299
2421
|
await client.execute("update_expense", {
|
|
@@ -2401,7 +2523,7 @@ function formatResult(result) {
|
|
|
2401
2523
|
|
|
2402
2524
|
async function main() {
|
|
2403
2525
|
const server = new Server(
|
|
2404
|
-
{ name: "expensebot-auth", version: "0.6.
|
|
2526
|
+
{ name: "expensebot-auth", version: "0.6.17" },
|
|
2405
2527
|
{ capabilities: { tools: {} }, instructions: SERVER_INSTRUCTIONS }
|
|
2406
2528
|
);
|
|
2407
2529
|
|
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 =
|
|
26
|
+
const EXPECTED_TOOL_COUNT = 50;
|
|
27
27
|
const REQUIRED_TOOLS = [
|
|
28
28
|
// v0.5.x
|
|
29
29
|
"search_expenses",
|
|
@@ -53,6 +53,7 @@ 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",
|
|
@@ -343,6 +344,21 @@ function check(label, ok, details = "") {
|
|
|
343
344
|
groupExpenses?.description || ""
|
|
344
345
|
)
|
|
345
346
|
);
|
|
347
|
+
const correctExpenses = tools.find(
|
|
348
|
+
(tool) => tool.name === "correct_expenses"
|
|
349
|
+
);
|
|
350
|
+
check(
|
|
351
|
+
"correct_expenses is exact, bounded, typed, and reversible",
|
|
352
|
+
correctExpenses?.inputSchema?.properties?.selection?.properties?.items
|
|
353
|
+
?.maxItems === 100 &&
|
|
354
|
+
correctExpenses?.inputSchema?.properties?.change?.properties?.attendees
|
|
355
|
+
?.maxItems === 25 &&
|
|
356
|
+
correctExpenses?.inputSchema?.properties?.change?.properties?.attendeeMode
|
|
357
|
+
?.enum?.includes("replace") &&
|
|
358
|
+
/preview is automatic/i.test(correctExpenses?.description || "") &&
|
|
359
|
+
/supports Undo/i.test(correctExpenses?.description || "") &&
|
|
360
|
+
/does not omit duplicates/i.test(correctExpenses?.description || "")
|
|
361
|
+
);
|
|
346
362
|
const searchKnowledge = tools.find((tool) => tool.name === "search_knowledge");
|
|
347
363
|
check(
|
|
348
364
|
"search_knowledge exposes bounded full-answer retrieval",
|