Create Cloud endpoint
projects_cloud_endpoint_createCreate one HTTP endpoint: one method, one path, and one Hono route. Do not create login, signup, or /auth routes. Auth already exists at projectUrl/auth/v1. Call this once per route. Platform CORS allows browser fetch from any domain.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>"
},
"name": "projects_cloud_endpoint_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | String map. Do not put these values in public website source. | |
| name | No | Optional DNS label, lowercase, max 32 characters. | |
| path | No | HTTP path starting with /, for example /orders or /orders/:id. | |
| method | No | HTTP method. GET, POST, PUT, or DELETE. | |
| source | No | TypeScript source exporting a Hono app with exactly one app.get, app.post, app.put, or app.delete. | |
| starter | No | Starter used when source is omitted. Login and signup are not starters. Auth is projectUrl/auth/v1. | |
| project_id | Yes | UUID of a Bunstation project owned by the authenticated user. | |
| dependencies | No | npm packages, for example { "hono": "^4.0.0" }. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | Yes | ||
| name | Yes | ||
| path | Yes | ||
| method | Yes | ||
| source | Yes | ||
| status | Yes | ||
| truncated | Yes |