ethora-app-delete
Remove an application from the Ethora MCP Server using the appId, enabling users to manage and delete their apps within the Ethora platform.
Instructions
Delete an app by appId for the logged-in user
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | Yes | appId for app |
Implementation Reference
- src/tools.ts:120-132 (handler)The inline handler function for the 'ethora-app-delete' tool. It takes appId, calls appDelete(appId), and returns the result as text content or a network error message.async function ({ appId }) { try { let result = await appDelete(appId) 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/tools.ts:113-135 (registration)The appDeleteTool function that registers the 'ethora-app-delete' MCP tool with its description, input schema, and handler.function appDeleteTool(server: McpServer) { server.registerTool( 'ethora-app-delete', { description: 'Delete an app by appId for the logged-in user', inputSchema: { appId: z.string().describe("appId for app") } }, async function ({ appId }) { try { let result = await appDelete(appId) 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/tools.ts:117-118 (schema)Zod input schema for the tool, validating appId as a string.description: 'Delete an app by appId for the logged-in user', inputSchema: { appId: z.string().describe("appId for app") }
- src/apiClientDappros.ts:132-136 (helper)Helper function appDelete that performs the HTTP DELETE request to the API endpoint `/apps/${appId}` using the axios instance.export function appDelete(appId: string) { return httpClientDappros.delete( `/apps/${appId}` ) }