Skip to content

Speed up MCP expense entry and parallelize database reads - #12

Merged
zaitsevpavel merged 1 commit into
mainfrom
codex/mcp-fast-entry
Nov 13, 2026
Merged

zaitsevpavel merged 1 commit into
mainfrom
codex/mcp-fast-entry

Conversation

@zaitsevpavel

Copy link
Copy Markdown
Collaborator

Routine expense entry now has an explicit one-tool-call path when the conversation already contains verified member IDs and established date/currency defaults. MCP instructions and tool descriptions tell clients to reuse that context, avoid history scans and redundant verification, and confirm a successful write briefly. Unresolved identities and shared participants still require clarification.

The service loads current trip/members and checks requestId concurrently, removing one sequential database wait while keeping membership validation and duplicate protection. Wallet membership is not cached.

Validation: all 156 tests, including a regression that holds membership loading open and verifies the duplicate lookup starts before it completes, plus the production build and diff checks. The uploaded tree matches the tested local tree. No real expenses were added during this change.

Deploy the updated standalone MCP server and refresh tool descriptions/initialization instructions in clients or static gateways. GitHub Pages deployment does not update MCP.

@zaitsevpavel
zaitsevpavel merged commit 2e7f8d0 into main Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant