liara_get_app
Retrieve detailed information about a specific application deployed on the Liara cloud platform, including configuration, status, and deployment details.
Instructions
Get detailed information about a specific app
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the app |
Implementation Reference
- src/services/apps.ts:27-51 (handler)Handler function that retrieves details of a specific Liara app/project by name. Calls the Liara API endpoint `/v1/projects/${name}`, handles 404 errors specifically for app not found, and uses validation.export async function getApp( client: LiaraClient, name: string ): Promise<ProjectDetails> { validateAppName(name); try { return await client.get<ProjectDetails>(`/v1/projects/${name}`); } catch (error: unknown) { const err = error as { statusCode?: number; message?: string }; if (err.statusCode === 404) { const { LiaraMcpError } = await import('../utils/errors.js'); throw new LiaraMcpError( `App "${name}" not found`, 'APP_NOT_FOUND', { name }, [ 'Check if the app name is correct', 'Use liara_list_apps to see all available apps', 'Verify you have access to this app' ] ); } throw error; } }