ce_get_project
Retrieve details of an IBM Cloud Code Engine project by providing its ID and region.
Instructions
Get Code Engine project details
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| region | No |
Implementation Reference
- src/tools/code-engine/index.ts:17-19 (handler)The handler for 'ce_get_project' - performs an HTTP GET request to the Code Engine API at /projects/{project_id} using the client, wrapped in safeTool for error handling.
server.tool("ce_get_project", "Get Code Engine project details", { project_id: z.string(), region: z.string().optional(), }, async (p) => safeTool(() => client.get(`${base(p.region||r)}/projects/${p.project_id}`))); - src/tools/code-engine/index.ts:17-18 (schema)Input schema for 'ce_get_project' - requires 'project_id' (string) and optional 'region' (string), validated by Zod.
server.tool("ce_get_project", "Get Code Engine project details", { project_id: z.string(), region: z.string().optional(), - src/tools/code-engine/index.ts:17-17 (registration)Registration of 'ce_get_project' tool via server.tool('ce_get_project', ...) in the registerCodeEngineTools function.
server.tool("ce_get_project", "Get Code Engine project details", { - src/server.ts:62-62 (registration)Call to registerCodeEngineTools(server, client, config) which registers all Code Engine tools including 'ce_get_project'.
registerCodeEngineTools(server, client, config); - src/config.ts:51-52 (helper)The CODE_ENGINE endpoint builder function used to construct the API URL for the 'ce_get_project' request.
CODE_ENGINE: (region: string) => `https://api.${region}.codeengine.cloud.ibm.com/v2`,