fix(mcp): allow null optional fields on transaction list tools (#484)

* fix(mcp): allow null optional fields on transaction list tools

Signed-off-by: antonisoaho <anton@isoaho.se>

* test(mcp): assert null optional fields on list_transactions_without_documents

* Update extensions/general/mcp-server/__tests__/list-uncategorized-transactions.test.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

---------

Signed-off-by: antonisoaho <anton@isoaho.se>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Anton
2026-06-08 09:41:43 +02:00
committed by GitHub
co-authored by greptile-apps[bot]
parent 3f422b9dc8
commit 5f79a74a2e
3 changed files with 102 additions and 8 deletions
+8 -8
View File
@@ -2231,10 +2231,10 @@ export const tools: McpTool[] = [
description: { type: 'string' },
amount: { type: 'number' },
currency: { type: 'string' },
merchant_name: { type: 'string' },
reference: { type: 'string' },
is_business: { type: 'boolean' },
category: { type: 'string' },
merchant_name: { type: ['string', 'null'] },
reference: { type: ['string', 'null'] },
is_business: { type: ['boolean', 'null'] },
category: { type: ['string', 'null'] },
},
}),
annotations: {
@@ -2303,10 +2303,10 @@ export const tools: McpTool[] = [
description: { type: 'string' },
amount: { type: 'number' },
currency: { type: 'string' },
merchant_name: { type: 'string' },
reference: { type: 'string' },
is_business: { type: 'boolean' },
category: { type: 'string' },
merchant_name: { type: ['string', 'null'] },
reference: { type: ['string', 'null'] },
is_business: { type: ['boolean', 'null'] },
category: { type: ['string', 'null'] },
journal_entry_id: { type: 'string' },
},
}),