Skip to main content
Glama
ferdhika31

Money Lover MCP Server

get_user_info

Retrieve your Money Lover user profile using your authentication token to access personal account information for financial management.

Instructions

Retrieve the Money Lover user profile associated with the provided token.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenNoJWT token returned by the login tool or derived from EMAIL/PASSWORD environment variables

Implementation Reference

  • Handler function that resolves the authentication token and executes client.getUserInfo() to retrieve user profile.
    async ({ token }) => { try { const data = await runWithClient(token, client => client.getUserInfo()); return formatSuccess(data ?? {}); } catch (error) { return formatError(error instanceof Error ? error : new Error(String(error))); } }
  • Input schema definition for the get_user_info tool, using the shared tokenArgument.
    { title: 'Get User Info', description: 'Retrieve the Money Lover user profile associated with the provided token.', inputSchema: tokenArgument },
  • src/server.js:323-339 (registration)
    Registration of the 'get_user_info' MCP tool with schema and inline handler function.
    server.registerTool( 'get_user_info', { title: 'Get User Info', description: 'Retrieve the Money Lover user profile associated with the provided token.', inputSchema: tokenArgument }, async ({ token }) => { try { const data = await runWithClient(token, client => client.getUserInfo()); return formatSuccess(data ?? {}); } catch (error) { return formatError(error instanceof Error ? error : new Error(String(error))); } } );
  • Core implementation in MoneyloverClient that performs the API POST request to /user/info endpoint.
    async getUserInfo() { return this.#post('/user/info'); }
  • Utility function used by the handler to create a client instance with resolved token and execute the provided function.
    const runWithClient = (token, fn) => runWithResolvedToken(token, resolvedToken => withClient(resolvedToken, fn));

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ferdhika31/moneylover-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server