get_current_user
Retrieve the currently authenticated Splitwise user to obtain your user ID for creating expense splits.
Instructions
Get the currently authenticated Splitwise user — useful to find your own user ID when creating expense splits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/client.ts:117-120 (handler)The actual API call handler implementation for fetching the current user.
async getCurrentUser(): Promise<SplitwiseUser> { const data = await this.get<{ user: SplitwiseUser }>('/get_current_user'); return data.user; } - src/tools/balances.ts:46-54 (registration)The MCP tool registration and wrapper that calls the client handler.
{ name: 'get_current_user', description: 'Get the currently authenticated Splitwise user — useful to find your own user ID when creating expense splits.', inputSchema: z.object({}), handler: async () => { return client.getCurrentUser(); }, },