ethora-app-create
Create a new app on the Ethora MCP Server by specifying a display name, enabling app management and integration with the Ethora platform for user authentication and registration.
Instructions
Create a new app for the logged-in user.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| displayName | Yes | display name for app |
Implementation Reference
- src/tools.ts:89-111 (registration)Full registration block for the 'ethora-app-create' MCP tool, including description, input schema (displayName: string), and inline handler function that invokes appCreate API and formats response.function appCreateTool(server: McpServer) { server.registerTool( 'ethora-app-create', { description: 'Create a new app for the logged-in user.', inputSchema: { displayName: z.string().describe("display name for app") } }, async function ({ displayName }) { try { let result = await appCreate(displayName) let toolRes: CallToolResult = { content: [{ type: "text", text: JSON.stringify(result.data) }] } return toolRes } catch (error) { let toolRes: CallToolResult = { content: [{ type: "text", text: "error: network error" }] } return toolRes } } ) }
- src/apiClientDappros.ts:123-130 (helper)Helper function appCreate that performs the actual HTTP POST request to create an app with the given displayName using the configured axios client.export function appCreate(displayName: string) { return httpClientDappros.post( `/apps/`, { displayName } ) }
- src/tools.ts:343-343 (registration)Invocation of appCreateTool registration within the main registerTools function.appCreateTool(server);
- src/index.ts:13-13 (registration)Main server initialization calls registerTools to register all tools including ethora-app-create.registerTools(server);