settings-profile
Retrieve current user profile details including email, name, plan, and credit balance for account management.
Instructions
Get the current user's profile. Returns email, name, plan, and credit balance.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/settings.ts:10-18 (handler)The handler function for the "settings-profile" tool, which calls client.settings.getProfile().
async () => { try { const result = await client.settings.getProfile(); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (err) { const message = err instanceof Error ? err.message : String(err); return { content: [{ type: "text", text: `Error: ${message}` }], isError: true }; } }, - src/tools/settings.ts:6-9 (registration)Registration of the "settings-profile" tool in the MCP server.
server.tool( "settings-profile", "Get the current user's profile. Returns email, name, plan, and credit balance.", {},