Skip to main content
Glama
dappros
by dappros

ethora-user-register

Register users on Ethora MCP Server by providing email, first name, and last name. Facilitates user authentication and management within the Ethora platform.

Instructions

Ethora registration with email (required), firstName (required), lastName (required)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailYes
firstNameYes
lastNameYes

Implementation Reference

  • The complete tool handler and registration for 'ethora-user-register'. Includes inline input schema validation using Zod and the execution logic that calls the userRegistration API helper, handles errors, and returns appropriate responses.
    function userRegisterWithEmailTool(server: McpServer) { server.registerTool( 'ethora-user-register', { title: 'Ethora registration', description: 'Ethora registration with email (required), firstName (required), lastName (required)', inputSchema: { email: z.string().email(), firstName: z.string(), lastName: z.string() } }, async function ({ email, firstName, lastName }) { try { await userRegistration(email, firstName, lastName) } catch (error) { if (error && typeof error === 'object' && 'response' in error) { const axiosError = error as any; if (axiosError.response?.status === 422) { const errorData = axiosError.response.data; return { content: [{ type: "text", text: `Error: ${errorData.error}` }] } } } else { return { content: [{ type: "text", text: 'An error occurred during user registration.' }] } } } return { content: [{ type: "text", text: `Operation successful. Please follow the link in your email to complete the registration.` }] } } ) }
  • Input schema for the 'ethora-user-register' tool defining required email, firstName, and lastName with Zod validation.
    { title: 'Ethora registration', description: 'Ethora registration with email (required), firstName (required), lastName (required)', inputSchema: { email: z.string().email(), firstName: z.string(), lastName: z.string() } },
  • src/tools.ts:30-64 (registration)
    Registration of the 'ethora-user-register' tool via server.registerTool call within userRegisterWithEmailTool, which is invoked in registerTools.
    function userRegisterWithEmailTool(server: McpServer) { server.registerTool( 'ethora-user-register', { title: 'Ethora registration', description: 'Ethora registration with email (required), firstName (required), lastName (required)', inputSchema: { email: z.string().email(), firstName: z.string(), lastName: z.string() } }, async function ({ email, firstName, lastName }) { try { await userRegistration(email, firstName, lastName) } catch (error) { if (error && typeof error === 'object' && 'response' in error) { const axiosError = error as any; if (axiosError.response?.status === 422) { const errorData = axiosError.response.data; return { content: [{ type: "text", text: `Error: ${errorData.error}` }] } } } else { return { content: [{ type: "text", text: 'An error occurred during user registration.' }] } } } return { content: [{ type: "text", text: `Operation successful. Please follow the link in your email to complete the registration.` }] } } ) }
  • Supporting API client function userRegistration that performs the HTTP POST to the backend endpoint for user sign-up.
    export function userRegistration(email: string, firstName: string, lastName: string) { return httpClientDappros.post( `/users/sign-up-with-email/`, { email, firstName, lastName } ) }

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/dappros/ethora-mcp-server'

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