In this group
Build the hosted app itself: static files, server-side functions and shared modules, behavior routes, and test requests. Most tools take an operation argument that selects what the call does. Project-scoped tools also take a projectId, and app tools take an optional environment that defaults to prod.
Examples use dev so they don't touch production. The live tool schema from your MCP client is the authoritative parameter list.
At a glance
| Tool | Purpose |
|---|---|
| hedy_app_docs | Read the hosted-app documentation overview or a single topic. |
| hedy_app_file | Read, write, patch, list and upload app files served at their browser paths. |
| hedy_app_handoff | Hand off a large upload in steps and check its status. |
| hedy_app_functions | Manage server-side functions in JavaScript or Python v1. |
| hedy_app_modules | Manage shared code modules that functions import. |
| hedy_app_routes | Set, list and delete behavior routes: function routes and redirects, with auth, role, rate-limit and CAPTCHA gates. |
| hedy_app_test_request | Send a test request to the app and read the response, the winning route and shadowed routes. Requires Editor. |
hedy_app_docs
Read the hosted-app documentation overview or a single topic.
OperationsNo arguments for the overview and topic index; topic for one topic
Key parameters| Parameter | What it does | Example |
|---|---|---|
| topic | One documentation topic, such as files. Omit it for the overview and topic index. | "files" |
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "hedy_app_docs",
"arguments": {
"topic": "files"
}
}
}hedy_app_file
Read, write, patch, list and upload app files served at their browser paths.
Operations- read
- patch
- put-small
- put-url
- create-upload
- complete-upload
- list
- get-url
- delete
| Parameter | What it does | Example |
|---|---|---|
| operation | Selects what the call does. Use one of the operations listed above. | "put-small" |
| projectId | The project to act on, for example proj_…. List yours with hedy_project (operation: "list"). | "proj_..." |
| environment | The hosted-app environment. Defaults to prod, so pass dev or another environment when you don't mean production. | "dev" |
| path | The browser path the file is served at, for example /index.html. | "/index.html" |
| content | The file body for put-small. | "<!doctype html><h1>Hello</h1>" |
| contentType | The MIME type, for example text/html. | "text/html" |
| ifMatchSha256 | Write guard: the file's current SHA-256, or "none" for a new path. A mismatch returns a conflict instead of overwriting. | "none" |
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "hedy_app_file",
"arguments": {
"operation": "put-small",
"projectId": "proj_...",
"environment": "dev",
"path": "/index.html",
"contentType": "text/html",
"content": "<!doctype html><h1>Hello</h1>",
"ifMatchSha256": "none"
}
}
}hedy_app_handoff
Hand off a large upload in steps and check its status.
Operations- create-upload
- complete-upload
- status
| Parameter | What it does | Example |
|---|---|---|
| operation | Selects what the call does. Use one of the operations listed above. | "status" |
| projectId | The project to act on, for example proj_…. List yours with hedy_project (operation: "list"). | "proj_..." |
{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "hedy_app_handoff",
"arguments": {
"operation": "status",
"projectId": "proj_..."
}
}
}hedy_app_functions
Manage server-side functions in JavaScript or Python v1.
Operations- put
- put-url
- head
- patch
- get
- get-url
- list
- delete
Runtime: js or python.
Key parameters| Parameter | What it does | Example |
|---|---|---|
| operation | Selects what the call does. Use one of the operations listed above. | "put" |
| projectId | The project to act on, for example proj_…. List yours with hedy_project (operation: "list"). | "proj_..." |
| environment | The hosted-app environment. Defaults to prod, so pass dev or another environment when you don't mean production. | "dev" |
| name | The function name. Function routes refer to it as their target. | "list-todos" |
| code | The function source. | "async function handler(ctx){ co…" |
| runtime | js (the default) or python. | — |
{
"jsonrpc": "2.0",
"id": 4,
"method": "tools/call",
"params": {
"name": "hedy_app_functions",
"arguments": {
"operation": "put",
"projectId": "proj_...",
"environment": "dev",
"name": "list-todos",
"code": "async function handler(ctx){ const r = await ctx.data.list('todos',{limit:50}); return { status:200, body:r }; }"
}
}
}hedy_app_modules
Manage shared code modules that functions import.
Operations- put
- put-url
- head
- get
- get-url
- list
- patch
- delete
| Parameter | What it does | Example |
|---|---|---|
| operation | Selects what the call does. Use one of the operations listed above. | "list" |
| projectId | The project to act on, for example proj_…. List yours with hedy_project (operation: "list"). | "proj_..." |
| environment | The hosted-app environment. Defaults to prod, so pass dev or another environment when you don't mean production. | "dev" |
{
"jsonrpc": "2.0",
"id": 5,
"method": "tools/call",
"params": {
"name": "hedy_app_modules",
"arguments": {
"operation": "list",
"projectId": "proj_...",
"environment": "dev"
}
}
}hedy_app_routes
Set, list and delete behavior routes: function routes and redirects, with auth, role, rate-limit and CAPTCHA gates.
Operations- set
- list
- delete
Kind: function or redirect; timeoutSeconds 1-30; rateLimitPerMinute 1-6000; requireCaptcha.
Key parameters| Parameter | What it does | Example |
|---|---|---|
| operation | Selects what the call does. Use one of the operations listed above. | "set" |
| projectId | The project to act on, for example proj_…. List yours with hedy_project (operation: "list"). | "proj_..." |
| environment | The hosted-app environment. Defaults to prod, so pass dev or another environment when you don't mean production. | "dev" |
| method | The HTTP method, for example GET. | "GET" |
| path | The route path. Accepts :name or {name} segments and a trailing whole-segment *. | "/api/todos" |
| kind | function or redirect. | "function" |
| target | The function the route runs, or where a redirect points. | "list-todos" |
{
"jsonrpc": "2.0",
"id": 6,
"method": "tools/call",
"params": {
"name": "hedy_app_routes",
"arguments": {
"operation": "set",
"projectId": "proj_...",
"environment": "dev",
"method": "GET",
"path": "/api/todos",
"kind": "function",
"target": "list-todos"
}
}
}hedy_app_test_request
Send a test request to the app and read the response, the winning route and shadowed routes. Requires Editor.
OperationsSingle request (path, method, body, headers, asAppUserId or asAppKeyId, environment)
Key parameters| Parameter | What it does | Example |
|---|---|---|
| projectId | The project to act on, for example proj_…. List yours with hedy_project (operation: "list"). | "proj_..." |
| path | The path to request. | "/api/todos" |
| method | The HTTP method to use. | — |
| environment | The hosted-app environment. Defaults to prod, so pass dev or another environment when you don't mean production. | "dev" |
{
"jsonrpc": "2.0",
"id": 7,
"method": "tools/call",
"params": {
"name": "hedy_app_test_request",
"arguments": {
"projectId": "proj_...",
"environment": "dev",
"path": "/api/todos"
}
}
}