{ "version": "2.0.0-beta.79", "source": "08af729f635837d252ff26400fa965422ce12ee1", "exportCommit": "b240a3ef0444c4fe46be3fa9b8616308b9c00d30", "publishedAt": "2026-11-25T23:03:21Z", "framework": "0.0.1-beta.148", "minimumNodeVersion": "14.18.0", "cli": { "": "DESCRIPTION\n Start or join the background Executor and open its dashboard\n\nUSAGE\n executor [flags]\n\nFLAGS\n --standalone Run a private server for this command instead of the background service\n --server string Connect to the Executor server at this URL instead of the background service\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n\nSUBCOMMANDS\n apps Create, edit, deploy, share, and install apps. Output is JSON on stdout. A failure exits 1 and prints the error's message, code, HTTP status and recovery on stderr; when stdout is not a terminal it also prints them as {\"error\": {\"code\", \"status\", \"message\", \"recovery\", \"details\", \"update\"}} on stdout; \"update\" says when a newer CLI release exists. Commands use --host, then EXECUTOR_HOST, then the host you signed in to last, then the local background Executor; --organization defaults to the one you signed in to\n login Sign in to a host for the tool commands and executor mcp, with a code approved in any browser. Choose which apps the sign-in reaches and how approvals are answered on the approval page. Later commands use this host by default\n logout Remove this CLI's sign-ins for a host, for tools and for app commands, and stop using it by default\n whoami Print the host, its organization, what the tools sign-in reaches and how its approvals are answered, and whether app commands are signed in, as JSON\n search Find app tools and their exact paths and input types. Prints the result as JSON\n describe Print the whole description and TypeScript signature of tools at exact paths. Prints the result as JSON\n call Call app tools directly. Use executor execute when one result feeds another, or to keep only part of a large result. Prints the result as JSON, with the path of each image, audio or file it holds, written to a new temporary directory unless --files names one. A paused call prints its pending request, with an approvalUrl when the host gives one; continue it with executor resume\n execute Run a JavaScript program over your apps, where app tools are async functions such as tools.github.issues.list(input); return only what you need. Prints the result as JSON, with the path of each image, audio or file it holds, written to a new temporary directory unless --files names one. A paused call prints its pending request, with an approvalUrl when the host gives one; continue it with executor resume\n resume Continue a paused call or program with the person's answer; never run it again instead. Prints the result as JSON, with the path of each image, audio or file it holds, written to a new temporary directory unless --files names one. A paused call prints its pending request, with an approvalUrl when the host gives one; continue it with executor resume\n skills List or read the skills apps ship. Start with --app executor --name executor. Prints the result as JSON\n mcp Serve the resolved host's MCP endpoint over stdio, with this CLI's sign-in, for MCP clients such as `claude mcp add executor -- executor mcp`\n serve Start without opening a browser\n service Manage the background Executor server that local clients share\n upgrade Install the newest Executor release on this installation's channel, or the given version. A standalone install keeps the previous version for --rollback\n", "apps": "DESCRIPTION\n Create, edit, deploy, share, and install apps. Output is JSON on stdout. A failure exits 1 and prints the error's message, code, HTTP status and recovery on stderr; when stdout is not a terminal it also prints them as {\"error\": {\"code\", \"status\", \"message\", \"recovery\", \"details\", \"update\"}} on stdout; \"update\" says when a newer CLI release exists. Commands use --host, then EXECUTOR_HOST, then the host you signed in to last, then the local background Executor; --organization defaults to the one you signed in to\n\nUSAGE\n executor apps [flags]\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n\nSUBCOMMANDS\n login Sign in to a hosted Executor for app commands with a code approved in any browser. Later commands use this host by default\n list List apps\n create Create an app from source files: a root index.ts and a package.json whose dependencies.apps is the version executor apps framework prints. Saving source does not run the app. Prints the app, including its id\n framework Print the exact apps framework version this host runs. Declare it as dependencies.apps in each app's package.json\n source Print an app's working source files and current commit. A ui/public/ file that is not text, or does not fit, is listed as {path, object, size}; pass --out to write every file\n history List recent commits in an app's private Git history\n git Print the app's Git remote URL. Configure executor apps credential as the Git credential helper\n commit Save a complete new source snapshot as a commit without deploying it. Files missing from it are deleted. Prints the new revision, the count of removed files and at most 100 of their paths; deploy its commit with executor apps deploy\n deploy Build a saved commit, or save a source directory and build it, and make it the app's active version. A failed build leaves the active version unchanged and reports the failing stage, file and line\n copy Copy an app into a new app with fresh Git history. Accounts and app data are not copied\n publish Publish a commit to the app registry. Its package.json name identifies the listing\n catalog List published apps available to install\n published List apps this account has published\n install Install a published app as a new, independently owned app\n unpublish Remove a published listing. Installed copies keep working\n credential Git credential helper; set credential.useHttpPath=true, after an empty credential.helper so other helpers do not keep its short-lived tokens\nEXAMPLES\n # Sign in to hosted Executor once\n executor apps login\n\n # List apps on the host you signed in to\n executor apps list\n\n # Read how to write and deploy an app\n executor skills --app executor --name app-authoring --file deploy.md\n", "apps login": "DESCRIPTION\n Sign in to a hosted Executor for app commands with a code approved in any browser. Later commands use this host by default\n\nUSAGE\n executor apps login [flags]\n\nFLAGS\n --host string Executor origin to sign in to. Defaults to EXECUTOR_HOST, then hosted Executor, https://api.executor.sh\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n\nEXAMPLES\n # Print a link and a code, and wait until it is approved in a browser\n executor apps login\n", "apps list": "DESCRIPTION\n List apps\n\nUSAGE\n executor apps list [flags]\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n --organization string Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "apps create": "DESCRIPTION\n Create an app from source files: a root index.ts and a package.json whose dependencies.apps is the version executor apps framework prints. Saving source does not run the app. Prints the app, including its id\n\nUSAGE\n executor apps create [flags]\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n --organization string Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization\n --name string Name for the new app\n --files path Complete app source: a directory read recursively (skipping .git, node_modules, .DS_Store), or a JSON file containing [{\"path\": \"index.ts\", \"content\": \"...\"}]. It must include a root index.ts. Code outside ui/public/ is UTF-8 text, at most 4,096 files and 16 MiB; files under ui/public/ may be binary: at most 10,000 files, each at most 32,000,000 bytes. A source larger than 16 MiB in total is pushed with Git. The CLI checks these limits before uploading. The host's build also refuses any of the app's own JavaScript or TypeScript files over 2,000,000 bytes; that limit is checked by the host, not before uploading, and does not cover files inside imported packages\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n\nEXAMPLES\n # Create an app from the directory ./hello\n executor apps create --name \"Hello\" --files ./hello\n\n # Create an app from a JSON array of {\"path\", \"content\"} files\n executor apps create --name \"Hello\" --files ./files.json\n", "apps framework": "DESCRIPTION\n Print the exact apps framework version this host runs. Declare it as dependencies.apps in each app's package.json\n\nUSAGE\n executor apps framework [flags]\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n --organization string Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "apps source": "DESCRIPTION\n Print an app's working source files and current commit. A ui/public/ file that is not text, or does not fit, is listed as {path, object, size}; pass --out to write every file\n\nUSAGE\n executor apps source [flags]\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n --organization string Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization\n --app string App ID, such as app_…; executor apps list prints each app's id\n --out directory Write the working source into this directory instead of printing it, binary ui/public/ files included. The directory must be empty or absent\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "apps history": "DESCRIPTION\n List recent commits in an app's private Git history\n\nUSAGE\n executor apps history [flags]\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n --organization string Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization\n --app string App ID, such as app_…; executor apps list prints each app's id\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "apps git": "DESCRIPTION\n Print the app's Git remote URL. Configure executor apps credential as the Git credential helper\n\nUSAGE\n executor apps git [flags]\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n --organization string Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization\n --app string App ID, such as app_…; executor apps list prints each app's id\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n\nEXAMPLES\n # Clone the app's source; pushes save source but do not deploy it\n git clone -c credential.helper= -c credential.helper='!executor apps credential' -c credential.useHttpPath=true \"$(executor apps git --app )\"\n", "apps commit": "DESCRIPTION\n Save a complete new source snapshot as a commit without deploying it. Files missing from it are deleted. Prints the new revision, the count of removed files and at most 100 of their paths; deploy its commit with executor apps deploy\n\nUSAGE\n executor apps commit [flags]\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n --organization string Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization\n --app string App ID, such as app_…; executor apps list prints each app's id\n --files path Complete app source: a directory read recursively (skipping .git, node_modules, .DS_Store), or a JSON file containing [{\"path\": \"index.ts\", \"content\": \"...\"}]. It must include a root index.ts. Code outside ui/public/ is UTF-8 text, at most 4,096 files and 16 MiB; files under ui/public/ may be binary: at most 10,000 files, each at most 32,000,000 bytes. A source larger than 16 MiB in total is pushed with Git. The CLI checks these limits before uploading. The host's build also refuses any of the app's own JavaScript or TypeScript files over 2,000,000 bytes; that limit is checked by the host, not before uploading, and does not cover files inside imported packages\n --expected string Commit the edit is based on, from executor apps source; a newer commit rejects the save\n --message string Commit message\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n\nEXAMPLES\n # Save ./hello as the next commit after \n executor apps commit --app --files ./hello --expected --message \"Add search\"\n", "apps deploy": "DESCRIPTION\n Build a saved commit, or save a source directory and build it, and make it the app's active version. A failed build leaves the active version unchanged and reports the failing stage, file and line\n\nUSAGE\n executor apps deploy [flags]\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n --organization string Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization\n --app string App ID, such as app_…; executor apps list prints each app's id\n --commit string Full 40-character Git commit to build and activate\n --files path A source directory to save on top of the working source and deploy, instead of --commit. Large and binary ui/public/ files are pushed with Git\n --message string Commit message when deploying --files\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n\nEXAMPLES\n # Deploy the commit executor apps commit printed\n executor apps deploy --app --commit \n\n # Save ./hello as the next commit and deploy it\n executor apps deploy --app --files ./hello\n", "apps copy": "DESCRIPTION\n Copy an app into a new app with fresh Git history. Accounts and app data are not copied\n\nUSAGE\n executor apps copy [flags]\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n --organization string Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization\n --app string App ID, such as app_…; executor apps list prints each app's id\n --name string Name for the new app\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "apps publish": "DESCRIPTION\n Publish a commit to the app registry. Its package.json name identifies the listing\n\nUSAGE\n executor apps publish [flags]\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n --organization string Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization\n --app string App ID, such as app_…; executor apps list prints each app's id\n --commit string Full 40-character Git commit to publish\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "apps catalog": "DESCRIPTION\n List published apps available to install\n\nUSAGE\n executor apps catalog [flags]\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n --organization string Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "apps published": "DESCRIPTION\n List apps this account has published\n\nUSAGE\n executor apps published [flags]\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n --organization string Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "apps install": "DESCRIPTION\n Install a published app as a new, independently owned app\n\nUSAGE\n executor apps install [flags]\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n --organization string Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization\n --package string Published package name, for example @owner.executor.community/app\n --commit string Full 40-character Git commit of the published version to install\n --name string Name for the new app\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "apps unpublish": "DESCRIPTION\n Remove a published listing. Installed copies keep working\n\nUSAGE\n executor apps unpublish [flags]\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n --organization string Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization\n --package string Published package name, for example @owner.executor.community/app\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "apps credential": "DESCRIPTION\n Git credential helper; set credential.useHttpPath=true, after an empty credential.helper so other helpers do not keep its short-lived tokens\n\nUSAGE\n executor apps credential [flags] \n\nARGUMENTS\n action choice Operation Git passes to the helper. get supplies the signed-in session for the remote's Git paths, including remotes on another origin than the host you signed in to; store and erase are ignored\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "login": "DESCRIPTION\n Sign in to a host for the tool commands and executor mcp, with a code approved in any browser. Choose which apps the sign-in reaches and how approvals are answered on the approval page. Later commands use this host by default\n\nUSAGE\n executor login [flags]\n\nFLAGS\n --host string Executor origin to sign in to. Defaults to EXECUTOR_HOST, then hosted Executor, https://api.executor.sh\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n\nEXAMPLES\n # Sign in to hosted Executor\n executor login\n\n # Sign in to a self-hosted Executor\n executor login --host https://executor.example.com\n", "logout": "DESCRIPTION\n Remove this CLI's sign-ins for a host, for tools and for app commands, and stop using it by default\n\nUSAGE\n executor logout [flags]\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "whoami": "DESCRIPTION\n Print the host, its organization, what the tools sign-in reaches and how its approvals are answered, and whether app commands are signed in, as JSON\n\nUSAGE\n executor whoami [flags]\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "search": "DESCRIPTION\n Find app tools and their exact paths and input types. Prints the result as JSON\n\nUSAGE\n executor search [flags] []\n\nARGUMENTS\n query string Words matched against tool paths, descriptions, input names, and app, account and router labels. Omit it to list a namespace (optional)\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n --namespace string App slug, such as axiom, or a namespace inside it, such as acme.issues\n --limit integer Most items to return; a page ends sooner at its size budget\n --offset integer Matches to skip, from a previous page's next.offset\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n\nEXAMPLES\n # Find tools by words\n executor search \"github issues\"\n\n # List one app's tools\n executor search --namespace github\n", "describe": "DESCRIPTION\n Print the whole description and TypeScript signature of tools at exact paths. Prints the result as JSON\n\nUSAGE\n executor describe [flags] \n\nARGUMENTS\n path... string Exact tool paths from executor search, at most 20\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "call": "DESCRIPTION\n Call app tools directly. Use executor execute when one result feeds another, or to keep only part of a large result. Prints the result as JSON, with the path of each image, audio or file it holds, written to a new temporary directory unless --files names one. A paused call prints its pending request, with an approvalUrl when the host gives one; continue it with executor resume\n\nUSAGE\n executor call [flags] []\n\nARGUMENTS\n path string Exact tool path from executor search. Omit it to pass a JSON array of {path, input} calls as the input, which run concurrently (optional)\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n --input string The tool's input as JSON. Default: {}\n --input-file string Read the input JSON from this file, or from standard input with -\n --files string Write images, audio and files the result holds into this directory instead of a new temporary one\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n\nEXAMPLES\n # Call one tool and keep its result in a file\n executor call tools.github.issues.list --input '{\"repo\":\"acme/web\"}' > issues.json\n\n # Run a JSON array of {path, input} calls concurrently\n executor call --input-file calls.json\n\n # Read the input from standard input\n jq -n '{repo:\"acme/web\"}' | executor call tools.github.issues.list --input-file -\n", "execute": "DESCRIPTION\n Run a JavaScript program over your apps, where app tools are async functions such as tools.github.issues.list(input); return only what you need. Prints the result as JSON, with the path of each image, audio or file it holds, written to a new temporary directory unless --files names one. A paused call prints its pending request, with an approvalUrl when the host gives one; continue it with executor resume\n\nUSAGE\n executor execute [flags]\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n --code string The JavaScript program to run\n --file string Read the program from this file, or from standard input with -\n --files string Write images, audio and files the result holds into this directory instead of a new temporary one\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n\nEXAMPLES\n # Search for tools inside a program\n executor execute --code 'return await tools.search({ query: \"github\" })'\n\n # Run a program from a file and keep its result in a file\n executor execute --file program.js > result.json\n", "resume": "DESCRIPTION\n Continue a paused call or program with the person's answer; never run it again instead. Prints the result as JSON, with the path of each image, audio or file it holds, written to a new temporary directory unless --files names one. A paused call prints its pending request, with an approvalUrl when the host gives one; continue it with executor resume\n\nUSAGE\n executor resume [flags] \n\nARGUMENTS\n request-id string The requestId of the paused call or program\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n --action choice The person's answer. Required unless approvals are answered in the browser, where it is collected from the approvalUrl page (choices: accept, decline, cancel)\n --content string Form fields for accept, as a JSON object\n --content-file string Read the form fields JSON from this file, or from standard input with -\n --files string Write images, audio and files the result holds into this directory instead of a new temporary one\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n\nEXAMPLES\n # Approve a paused call\n executor resume apr_… --action accept\n\n # Collect an answer given on the approvalUrl page\n executor resume apr_…\n", "skills": "DESCRIPTION\n List or read the skills apps ship. Start with --app executor --name executor. Prints the result as JSON\n\nUSAGE\n executor skills [flags]\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n --app string App slug. Omit it to list every visible skill\n --name string Skill to read, such as executor. Requires --app\n --file string File within the skill to read instead of SKILL.md. Requires --name\n --version string App version to read the skill from, instead of the active one\n --revision string Skill revision a previous read returned, to read that exact copy\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "mcp": "DESCRIPTION\n Serve the resolved host's MCP endpoint over stdio, with this CLI's sign-in, for MCP clients such as `claude mcp add executor -- executor mcp`\n\nUSAGE\n executor mcp [flags]\n\nFLAGS\n --host string Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "serve": "DESCRIPTION\n Start without opening a browser\n\nUSAGE\n executor serve [flags]\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "service": "DESCRIPTION\n Manage the background Executor server that local clients share\n\nUSAGE\n executor service [flags]\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n\nSUBCOMMANDS\n start Start the background server, or confirm that it runs, and print its URL\n stop Stop the background server\n restart Stop the background server and start it again\n status Print the background server's URL, version and process, `starting` or `stopping` before them while it starts or stops, or `stopped`\n get Print the background server's settings, or one setting\n set Change a setting. Stops the background server so it restarts with it\n unset Remove a setting. Stops the background server so it restarts without it\n pair Print a new connection link for the running server\n rotate-key Replace the saved local API key. Run `executor service restart` to use it, then update clients that used the old key\n", "service start": "DESCRIPTION\n Start the background server, or confirm that it runs, and print its URL\n\nUSAGE\n executor service start [flags]\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "service stop": "DESCRIPTION\n Stop the background server\n\nUSAGE\n executor service stop [flags]\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "service restart": "DESCRIPTION\n Stop the background server and start it again\n\nUSAGE\n executor service restart [flags]\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "service status": "DESCRIPTION\n Print the background server's URL, version and process, `starting` or `stopping` before them while it starts or stops, or `stopped`\n\nUSAGE\n executor service status [flags]\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "service get": "DESCRIPTION\n Print the background server's settings, or one setting\n\nUSAGE\n executor service get [flags] [] []\n\nARGUMENTS\n key choice Setting name: port, env or disabled (optional)\n name string Variable name, for env (optional)\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "service set": "DESCRIPTION\n Change a setting. Stops the background server so it restarts with it\n\nUSAGE\n executor service set [flags] []\n\nARGUMENTS\n key choice Setting name: port, env or disabled\n value string New value; for env, the variable name\n env-value string Variable value, for env (optional)\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "service unset": "DESCRIPTION\n Remove a setting. Stops the background server so it restarts without it\n\nUSAGE\n executor service unset [flags] []\n\nARGUMENTS\n key choice Setting name: port, env or disabled\n name string Variable name, for env (optional)\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "service pair": "DESCRIPTION\n Print a new connection link for the running server\n\nUSAGE\n executor service pair [flags]\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "service rotate-key": "DESCRIPTION\n Replace the saved local API key. Run `executor service restart` to use it, then update clients that used the old key\n\nUSAGE\n executor service rotate-key [flags]\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n", "upgrade": "DESCRIPTION\n Install the newest Executor release on this installation's channel, or the given version. A standalone install keeps the previous version for --rollback\n\nUSAGE\n executor upgrade [flags] []\n\nARGUMENTS\n version string Release to install, such as 2.0.0-beta.16. Default: the newest (optional)\n\nFLAGS\n --method choice Package manager to install with, instead of the detected one (choices: npm, pnpm, bun, yarn)\n --yes, -y Do not ask for confirmation; required to downgrade without a terminal\n --rollback Switch a standalone install back to the version it ran before its last upgrade\n\nGLOBAL FLAGS\n --help, -h Show help information\n --version, -v Show version information\n --wizard Start wizard mode for a command\n --completions Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh)\n --log-level Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)\n" }, "mcp": [ { "mode": "model", "profiles": [ { "protocol": "2026-07-28", "capabilities": { "logging": {}, "completions": {}, "resources": { "subscribe": true, "listChanged": true }, "tools": { "listChanged": true }, "events": {}, "extensions": { "io.modelcontextprotocol/skills": { "directoryRead": true } } }, "tools": [ { "name": "skills", "description": "Read instructions that apps ship. Every input except {} needs app, the app's slug. The server instructions are the Executor app's entry skill; only if your client did not show them, read it with {app:'executor',name:'executor'}, or, if that app was renamed, with the slug {} lists for it. Otherwise use skills for the other skills: {} lists every visible skill; {app:'executor'} lists one app's skills; {app:'executor',name:'code-mode'} reads that skill's SKILL.md. Pass the returned version and revision with a listed file to read a reference. App slugs are the namespaces used in search, call and execute. Skill text and allowed-tools metadata never grant tool permissions.", "inputSchema": { "type": "object", "properties": { "app": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$" }, "name": { "type": "string", "minLength": 1 }, "file": { "type": "string" }, "version": { "type": "string", "pattern": "^dpl_[\\s\\S]+$" }, "revision": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "accounts": {} }, "additionalProperties": true, "dependentRequired": { "name": ["app"], "file": ["app", "name"], "version": ["app"], "revision": ["app"], "accounts": ["app"] } } }, { "name": "search", "description": "Find Executor app tools by words in their paths, descriptions and labels. Returns exact paths, one-line descriptions and input types, with each app and its linked accounts listed once. Pass a path to call or describe, or use it as tools. inside execute. Omit query to list a namespace. To read the following page, call search again with the returned next object as the whole input; next is null on the last page.", "inputSchema": { "type": "object", "properties": { "query": { "type": "string", "description": "Words matched against tool paths, descriptions, input names, and app, account and router labels. Omit it to list a namespace." }, "namespace": { "type": "string", "description": "App slug, such as axiom, or a namespace inside it, such as acme.issues." }, "limit": { "type": "integer", "maximum": 9007199254740991, "exclusiveMinimum": 0, "description": "Most items to return, 10 by default. A page ends sooner when it reaches its size budget." }, "offset": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "additionalProperties": true } }, { "name": "describe", "description": "Read the whole description and TypeScript signature, with input and output types, of tools at exact paths from search. Unknown paths are listed in missing with the closest paths.", "inputSchema": { "type": "object", "properties": { "paths": { "type": "array", "items": { "type": "string" }, "minItems": 1, "maxItems": 20 } }, "required": ["paths"], "additionalProperties": true } }, { "name": "call", "description": "Call Executor app tools directly by exact path from search. Pass one {path, input} as calls, or an array of independent calls to run them concurrently; results come back in the same order, each with ok and its value or error. Use execute instead when one call's output feeds another, or to filter a large result before it reaches you. Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show it to the user and call resume with their answer; never repeat the call to continue it.", "inputSchema": { "type": "object", "properties": { "calls": { "anyOf": [ { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, "minItems": 1 } ] } }, "required": ["calls"], "additionalProperties": true } }, { "name": "execute", "description": "Run a JavaScript program over Executor apps, for work where one result feeds another call or a large result should be filtered before it reaches you; for one or a few independent calls, use call instead. Find tools with the search tool or tools.search inside the program, and full signatures with describe or tools.search.describe({ paths }). The server instructions are the Executor app's entry skill; if your client did not show them, read it with skills({app:'executor',name:'executor'}). Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show it to the user and call resume with their answer; never run the program's source again. External effects are not rolled back on error or cancellation. Send feedback with the Executor app's feedback.submit tool when Executor gets in your way or something works especially well.", "inputSchema": { "type": "object", "properties": { "code": { "type": "string", "maxLength": 65536 } }, "required": ["code"], "additionalProperties": true } }, { "name": "resume", "description": "Continue a paused execute program using its pending requestId and the user's MCP elicitation response: {action: 'accept', content: {...}}, {action: 'decline'}, or {action: 'cancel'}. Ask the user before approving. Return the user's form fields in content on accept. Returns the next pending interaction or the completed program result. An approved call that fails reports its own error. Unavailable carries a reason (answered, expired, ended, lost, malformed or not-found), what to do and the caller's open requests in pending; do not rerun the whole program because earlier calls may have completed. Busy means another resume is advancing this program; wait for that response. Results are not replayed.", "inputSchema": { "type": "object", "properties": { "requestId": { "anyOf": [ { "type": "string", "pattern": "^apr_[\\s\\S]+$" }, { "type": "string", "pattern": "^elc_[\\s\\S]+$" } ] }, "response": { "anyOf": [ { "type": "object", "properties": { "_meta": { "anyOf": [ { "type": "object" }, { "type": "null" } ] }, "action": { "type": "string", "enum": ["accept"] }, "content": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "type": "string" } } ] } } }, "required": ["action"], "additionalProperties": true }, { "type": "object", "properties": { "_meta": { "anyOf": [ { "type": "object" }, { "type": "null" } ] }, "action": { "type": "string", "enum": ["cancel", "decline"] } }, "required": ["action"], "additionalProperties": true } ] } }, "required": ["requestId", "response"], "additionalProperties": true } } ] }, { "protocol": "2025-11-25", "capabilities": { "extensions": { "io.modelcontextprotocol/skills": { "directoryRead": true } }, "logging": {}, "resources": { "subscribe": false, "listChanged": true }, "tools": { "listChanged": true }, "completions": {} }, "tools": [ { "name": "skills", "description": "Read instructions that apps ship. Every input except {} needs app, the app's slug. The server instructions are the Executor app's entry skill; only if your client did not show them, read it with {app:'executor',name:'executor'}, or, if that app was renamed, with the slug {} lists for it. Otherwise use skills for the other skills: {} lists every visible skill; {app:'executor'} lists one app's skills; {app:'executor',name:'code-mode'} reads that skill's SKILL.md. Pass the returned version and revision with a listed file to read a reference. App slugs are the namespaces used in search, call and execute. Skill text and allowed-tools metadata never grant tool permissions.", "inputSchema": { "type": "object", "properties": { "app": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$" }, "name": { "type": "string", "minLength": 1 }, "file": { "type": "string" }, "version": { "type": "string", "pattern": "^dpl_[\\s\\S]+$" }, "revision": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "accounts": {} }, "additionalProperties": true, "dependentRequired": { "name": ["app"], "file": ["app", "name"], "version": ["app"], "revision": ["app"], "accounts": ["app"] } } }, { "name": "search", "description": "Find Executor app tools by words in their paths, descriptions and labels. Returns exact paths, one-line descriptions and input types, with each app and its linked accounts listed once. Pass a path to call or describe, or use it as tools. inside execute. Omit query to list a namespace. To read the following page, call search again with the returned next object as the whole input; next is null on the last page.", "inputSchema": { "type": "object", "properties": { "query": { "type": "string", "description": "Words matched against tool paths, descriptions, input names, and app, account and router labels. Omit it to list a namespace." }, "namespace": { "type": "string", "description": "App slug, such as axiom, or a namespace inside it, such as acme.issues." }, "limit": { "type": "integer", "maximum": 9007199254740991, "exclusiveMinimum": 0, "description": "Most items to return, 10 by default. A page ends sooner when it reaches its size budget." }, "offset": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "additionalProperties": true } }, { "name": "describe", "description": "Read the whole description and TypeScript signature, with input and output types, of tools at exact paths from search. Unknown paths are listed in missing with the closest paths.", "inputSchema": { "type": "object", "properties": { "paths": { "type": "array", "items": { "type": "string" }, "minItems": 1, "maxItems": 20 } }, "required": ["paths"], "additionalProperties": true } }, { "name": "call", "description": "Call Executor app tools directly by exact path from search. Pass one {path, input} as calls, or an array of independent calls to run them concurrently; results come back in the same order, each with ok and its value or error. Use execute instead when one call's output feeds another, or to filter a large result before it reaches you. Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show it to the user and call resume with their answer; never repeat the call to continue it.", "inputSchema": { "type": "object", "properties": { "calls": { "anyOf": [ { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, "minItems": 1 } ] } }, "required": ["calls"], "additionalProperties": true } }, { "name": "execute", "description": "Run a JavaScript program over Executor apps, for work where one result feeds another call or a large result should be filtered before it reaches you; for one or a few independent calls, use call instead. Find tools with the search tool or tools.search inside the program, and full signatures with describe or tools.search.describe({ paths }). The server instructions are the Executor app's entry skill; if your client did not show them, read it with skills({app:'executor',name:'executor'}). Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show it to the user and call resume with their answer; never run the program's source again. External effects are not rolled back on error or cancellation. Send feedback with the Executor app's feedback.submit tool when Executor gets in your way or something works especially well.", "inputSchema": { "type": "object", "properties": { "code": { "type": "string", "maxLength": 65536 } }, "required": ["code"], "additionalProperties": true } }, { "name": "resume", "description": "Continue a paused execute program using its pending requestId and the user's MCP elicitation response: {action: 'accept', content: {...}}, {action: 'decline'}, or {action: 'cancel'}. Ask the user before approving. Return the user's form fields in content on accept. Returns the next pending interaction or the completed program result. An approved call that fails reports its own error. Unavailable carries a reason (answered, expired, ended, lost, malformed or not-found), what to do and the caller's open requests in pending; do not rerun the whole program because earlier calls may have completed. Busy means another resume is advancing this program; wait for that response. Results are not replayed.", "inputSchema": { "type": "object", "properties": { "requestId": { "anyOf": [ { "type": "string", "pattern": "^apr_[\\s\\S]+$" }, { "type": "string", "pattern": "^elc_[\\s\\S]+$" } ] }, "response": { "anyOf": [ { "type": "object", "properties": { "_meta": { "anyOf": [ { "type": "object" }, { "type": "null" } ] }, "action": { "type": "string", "enum": ["accept"] }, "content": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "type": "string" } } ] } } }, "required": ["action"], "additionalProperties": true }, { "type": "object", "properties": { "_meta": { "anyOf": [ { "type": "object" }, { "type": "null" } ] }, "action": { "type": "string", "enum": ["cancel", "decline"] } }, "required": ["action"], "additionalProperties": true } ] } }, "required": ["requestId", "response"], "additionalProperties": true } } ] }, { "protocol": "2025-06-18", "capabilities": { "extensions": { "io.modelcontextprotocol/skills": { "directoryRead": true } }, "logging": {}, "resources": { "subscribe": false, "listChanged": true }, "tools": { "listChanged": true }, "completions": {} }, "tools": [ { "name": "skills", "description": "Read instructions that apps ship. Every input except {} needs app, the app's slug. The server instructions are the Executor app's entry skill; only if your client did not show them, read it with {app:'executor',name:'executor'}, or, if that app was renamed, with the slug {} lists for it. Otherwise use skills for the other skills: {} lists every visible skill; {app:'executor'} lists one app's skills; {app:'executor',name:'code-mode'} reads that skill's SKILL.md. Pass the returned version and revision with a listed file to read a reference. App slugs are the namespaces used in search, call and execute. Skill text and allowed-tools metadata never grant tool permissions.", "inputSchema": { "type": "object", "properties": { "app": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$" }, "name": { "type": "string", "minLength": 1 }, "file": { "type": "string" }, "version": { "type": "string", "pattern": "^dpl_[\\s\\S]+$" }, "revision": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "accounts": {} }, "additionalProperties": true, "dependentRequired": { "name": ["app"], "file": ["app", "name"], "version": ["app"], "revision": ["app"], "accounts": ["app"] } } }, { "name": "search", "description": "Find Executor app tools by words in their paths, descriptions and labels. Returns exact paths, one-line descriptions and input types, with each app and its linked accounts listed once. Pass a path to call or describe, or use it as tools. inside execute. Omit query to list a namespace. To read the following page, call search again with the returned next object as the whole input; next is null on the last page.", "inputSchema": { "type": "object", "properties": { "query": { "type": "string", "description": "Words matched against tool paths, descriptions, input names, and app, account and router labels. Omit it to list a namespace." }, "namespace": { "type": "string", "description": "App slug, such as axiom, or a namespace inside it, such as acme.issues." }, "limit": { "type": "integer", "maximum": 9007199254740991, "exclusiveMinimum": 0, "description": "Most items to return, 10 by default. A page ends sooner when it reaches its size budget." }, "offset": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "additionalProperties": true } }, { "name": "describe", "description": "Read the whole description and TypeScript signature, with input and output types, of tools at exact paths from search. Unknown paths are listed in missing with the closest paths.", "inputSchema": { "type": "object", "properties": { "paths": { "type": "array", "items": { "type": "string" }, "minItems": 1, "maxItems": 20 } }, "required": ["paths"], "additionalProperties": true } }, { "name": "call", "description": "Call Executor app tools directly by exact path from search. Pass one {path, input} as calls, or an array of independent calls to run them concurrently; results come back in the same order, each with ok and its value or error. Use execute instead when one call's output feeds another, or to filter a large result before it reaches you. Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show it to the user and call resume with their answer; never repeat the call to continue it.", "inputSchema": { "type": "object", "properties": { "calls": { "anyOf": [ { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, "minItems": 1 } ] } }, "required": ["calls"], "additionalProperties": true } }, { "name": "execute", "description": "Run a JavaScript program over Executor apps, for work where one result feeds another call or a large result should be filtered before it reaches you; for one or a few independent calls, use call instead. Find tools with the search tool or tools.search inside the program, and full signatures with describe or tools.search.describe({ paths }). The server instructions are the Executor app's entry skill; if your client did not show them, read it with skills({app:'executor',name:'executor'}). Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show it to the user and call resume with their answer; never run the program's source again. External effects are not rolled back on error or cancellation. Send feedback with the Executor app's feedback.submit tool when Executor gets in your way or something works especially well.", "inputSchema": { "type": "object", "properties": { "code": { "type": "string", "maxLength": 65536 } }, "required": ["code"], "additionalProperties": true } }, { "name": "resume", "description": "Continue a paused execute program using its pending requestId and the user's MCP elicitation response: {action: 'accept', content: {...}}, {action: 'decline'}, or {action: 'cancel'}. Ask the user before approving. Return the user's form fields in content on accept. Returns the next pending interaction or the completed program result. An approved call that fails reports its own error. Unavailable carries a reason (answered, expired, ended, lost, malformed or not-found), what to do and the caller's open requests in pending; do not rerun the whole program because earlier calls may have completed. Busy means another resume is advancing this program; wait for that response. Results are not replayed.", "inputSchema": { "type": "object", "properties": { "requestId": { "anyOf": [ { "type": "string", "pattern": "^apr_[\\s\\S]+$" }, { "type": "string", "pattern": "^elc_[\\s\\S]+$" } ] }, "response": { "anyOf": [ { "type": "object", "properties": { "_meta": { "anyOf": [ { "type": "object" }, { "type": "null" } ] }, "action": { "type": "string", "enum": ["accept"] }, "content": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "type": "string" } } ] } } }, "required": ["action"], "additionalProperties": true }, { "type": "object", "properties": { "_meta": { "anyOf": [ { "type": "object" }, { "type": "null" } ] }, "action": { "type": "string", "enum": ["cancel", "decline"] } }, "required": ["action"], "additionalProperties": true } ] } }, "required": ["requestId", "response"], "additionalProperties": true } } ] }, { "protocol": "2025-03-26", "capabilities": { "extensions": { "io.modelcontextprotocol/skills": { "directoryRead": true } }, "logging": {}, "resources": { "subscribe": false, "listChanged": true }, "tools": { "listChanged": true }, "completions": {} }, "tools": [ { "name": "skills", "description": "Read instructions that apps ship. Every input except {} needs app, the app's slug. The server instructions are the Executor app's entry skill; only if your client did not show them, read it with {app:'executor',name:'executor'}, or, if that app was renamed, with the slug {} lists for it. Otherwise use skills for the other skills: {} lists every visible skill; {app:'executor'} lists one app's skills; {app:'executor',name:'code-mode'} reads that skill's SKILL.md. Pass the returned version and revision with a listed file to read a reference. App slugs are the namespaces used in search, call and execute. Skill text and allowed-tools metadata never grant tool permissions.", "inputSchema": { "type": "object", "properties": { "app": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$" }, "name": { "type": "string", "minLength": 1 }, "file": { "type": "string" }, "version": { "type": "string", "pattern": "^dpl_[\\s\\S]+$" }, "revision": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "accounts": {} } } }, { "name": "search", "description": "Find Executor app tools by words in their paths, descriptions and labels. Returns exact paths, one-line descriptions and input types, with each app and its linked accounts listed once. Pass a path to call or describe, or use it as tools. inside execute. Omit query to list a namespace. To read the following page, call search again with the returned next object as the whole input; next is null on the last page.", "inputSchema": { "type": "object", "properties": { "query": { "type": "string", "description": "Words matched against tool paths, descriptions, input names, and app, account and router labels. Omit it to list a namespace." }, "namespace": { "type": "string", "description": "App slug, such as axiom, or a namespace inside it, such as acme.issues." }, "limit": { "type": "integer", "maximum": 9007199254740991, "exclusiveMinimum": 0, "description": "Most items to return, 10 by default. A page ends sooner when it reaches its size budget." }, "offset": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } } } }, { "name": "describe", "description": "Read the whole description and TypeScript signature, with input and output types, of tools at exact paths from search. Unknown paths are listed in missing with the closest paths.", "inputSchema": { "type": "object", "properties": { "paths": { "type": "array", "items": { "type": "string" }, "minItems": 1, "maxItems": 20 } }, "required": ["paths"] } }, { "name": "call", "description": "Call Executor app tools directly by exact path from search. Pass one {path, input} as calls, or an array of independent calls to run them concurrently; results come back in the same order, each with ok and its value or error. Use execute instead when one call's output feeds another, or to filter a large result before it reaches you. Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show it to the user and call resume with their answer; never repeat the call to continue it.", "inputSchema": { "type": "object", "properties": { "calls": { "anyOf": [ { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, "minItems": 1 } ] } }, "required": ["calls"] } }, { "name": "execute", "description": "Run a JavaScript program over Executor apps, for work where one result feeds another call or a large result should be filtered before it reaches you; for one or a few independent calls, use call instead. Find tools with the search tool or tools.search inside the program, and full signatures with describe or tools.search.describe({ paths }). The server instructions are the Executor app's entry skill; if your client did not show them, read it with skills({app:'executor',name:'executor'}). Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show it to the user and call resume with their answer; never run the program's source again. External effects are not rolled back on error or cancellation. Send feedback with the Executor app's feedback.submit tool when Executor gets in your way or something works especially well.", "inputSchema": { "type": "object", "properties": { "code": { "type": "string", "maxLength": 65536 } }, "required": ["code"] } }, { "name": "resume", "description": "Continue a paused execute program using its pending requestId and the user's MCP elicitation response: {action: 'accept', content: {...}}, {action: 'decline'}, or {action: 'cancel'}. Ask the user before approving. Return the user's form fields in content on accept. Returns the next pending interaction or the completed program result. An approved call that fails reports its own error. Unavailable carries a reason (answered, expired, ended, lost, malformed or not-found), what to do and the caller's open requests in pending; do not rerun the whole program because earlier calls may have completed. Busy means another resume is advancing this program; wait for that response. Results are not replayed.", "inputSchema": { "type": "object", "properties": { "requestId": { "anyOf": [ { "type": "string", "pattern": "^apr_[\\s\\S]+$" }, { "type": "string", "pattern": "^elc_[\\s\\S]+$" } ] }, "response": { "anyOf": [ { "type": "object", "properties": { "_meta": { "anyOf": [ { "type": "object" }, { "type": "null" } ] }, "action": { "type": "string", "enum": ["accept"] }, "content": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "type": "string" } } ] } } }, "required": ["action"], "additionalProperties": true }, { "type": "object", "properties": { "_meta": { "anyOf": [ { "type": "object" }, { "type": "null" } ] }, "action": { "type": "string", "enum": ["cancel", "decline"] } }, "required": ["action"], "additionalProperties": true } ] } }, "required": ["requestId", "response"] } } ] } ] }, { "mode": "native", "profiles": [ { "protocol": "2025-11-25", "capabilities": { "extensions": { "io.modelcontextprotocol/skills": { "directoryRead": true } }, "logging": {}, "resources": { "subscribe": false, "listChanged": true }, "tools": { "listChanged": true }, "completions": {} }, "tools": [ { "name": "skills", "description": "Read instructions that apps ship. Every input except {} needs app, the app's slug. The server instructions are the Executor app's entry skill; only if your client did not show them, read it with {app:'executor',name:'executor'}, or, if that app was renamed, with the slug {} lists for it. Otherwise use skills for the other skills: {} lists every visible skill; {app:'executor'} lists one app's skills; {app:'executor',name:'code-mode'} reads that skill's SKILL.md. Pass the returned version and revision with a listed file to read a reference. App slugs are the namespaces used in search, call and execute. Skill text and allowed-tools metadata never grant tool permissions.", "inputSchema": { "type": "object", "properties": { "app": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$" }, "name": { "type": "string", "minLength": 1 }, "file": { "type": "string" }, "version": { "type": "string", "pattern": "^dpl_[\\s\\S]+$" }, "revision": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "accounts": {} }, "additionalProperties": true, "dependentRequired": { "name": ["app"], "file": ["app", "name"], "version": ["app"], "revision": ["app"], "accounts": ["app"] } } }, { "name": "search", "description": "Find Executor app tools by words in their paths, descriptions and labels. Returns exact paths, one-line descriptions and input types, with each app and its linked accounts listed once. Pass a path to call or describe, or use it as tools. inside execute. Omit query to list a namespace. To read the following page, call search again with the returned next object as the whole input; next is null on the last page.", "inputSchema": { "type": "object", "properties": { "query": { "type": "string", "description": "Words matched against tool paths, descriptions, input names, and app, account and router labels. Omit it to list a namespace." }, "namespace": { "type": "string", "description": "App slug, such as axiom, or a namespace inside it, such as acme.issues." }, "limit": { "type": "integer", "maximum": 9007199254740991, "exclusiveMinimum": 0, "description": "Most items to return, 10 by default. A page ends sooner when it reaches its size budget." }, "offset": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "additionalProperties": true } }, { "name": "describe", "description": "Read the whole description and TypeScript signature, with input and output types, of tools at exact paths from search. Unknown paths are listed in missing with the closest paths.", "inputSchema": { "type": "object", "properties": { "paths": { "type": "array", "items": { "type": "string" }, "minItems": 1, "maxItems": 20 } }, "required": ["paths"], "additionalProperties": true } }, { "name": "call", "description": "Call Executor app tools directly by exact path from search. Pass one {path, input} as calls, or an array of independent calls to run them concurrently; results come back in the same order, each with ok and its value or error. Use execute instead when one call's output feeds another, or to filter a large result before it reaches you. Never ask the user for secrets in chat; accounts connect through Executor's secure links. Your MCP client confirms each call before it runs, so approvals do not ask again. Tool input opens the client's own prompt, and the call continues.", "inputSchema": { "type": "object", "properties": { "calls": { "anyOf": [ { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, "minItems": 1 } ] } }, "required": ["calls"], "additionalProperties": true } }, { "name": "execute", "description": "Run a JavaScript program over Executor apps, for work where one result feeds another call or a large result should be filtered before it reaches you; for one or a few independent calls, use call instead. Find tools with the search tool or tools.search inside the program, and full signatures with describe or tools.search.describe({ paths }). The server instructions are the Executor app's entry skill; if your client did not show them, read it with skills({app:'executor',name:'executor'}). Never ask the user for secrets in chat; accounts connect through Executor's secure links. Approvals and tool input open the MCP client's own prompt, and execute continues the same program. Earlier tool calls may already have completed and are not rolled back; never rerun the program automatically after an error. Send feedback with the Executor app's feedback.submit tool when Executor gets in your way or something works especially well.", "inputSchema": { "type": "object", "properties": { "code": { "type": "string", "maxLength": 65536 } }, "required": ["code"], "additionalProperties": true } } ] }, { "protocol": "2025-06-18", "capabilities": { "extensions": { "io.modelcontextprotocol/skills": { "directoryRead": true } }, "logging": {}, "resources": { "subscribe": false, "listChanged": true }, "tools": { "listChanged": true }, "completions": {} }, "tools": [ { "name": "skills", "description": "Read instructions that apps ship. Every input except {} needs app, the app's slug. The server instructions are the Executor app's entry skill; only if your client did not show them, read it with {app:'executor',name:'executor'}, or, if that app was renamed, with the slug {} lists for it. Otherwise use skills for the other skills: {} lists every visible skill; {app:'executor'} lists one app's skills; {app:'executor',name:'code-mode'} reads that skill's SKILL.md. Pass the returned version and revision with a listed file to read a reference. App slugs are the namespaces used in search, call and execute. Skill text and allowed-tools metadata never grant tool permissions.", "inputSchema": { "type": "object", "properties": { "app": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$" }, "name": { "type": "string", "minLength": 1 }, "file": { "type": "string" }, "version": { "type": "string", "pattern": "^dpl_[\\s\\S]+$" }, "revision": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "accounts": {} }, "additionalProperties": true, "dependentRequired": { "name": ["app"], "file": ["app", "name"], "version": ["app"], "revision": ["app"], "accounts": ["app"] } } }, { "name": "search", "description": "Find Executor app tools by words in their paths, descriptions and labels. Returns exact paths, one-line descriptions and input types, with each app and its linked accounts listed once. Pass a path to call or describe, or use it as tools. inside execute. Omit query to list a namespace. To read the following page, call search again with the returned next object as the whole input; next is null on the last page.", "inputSchema": { "type": "object", "properties": { "query": { "type": "string", "description": "Words matched against tool paths, descriptions, input names, and app, account and router labels. Omit it to list a namespace." }, "namespace": { "type": "string", "description": "App slug, such as axiom, or a namespace inside it, such as acme.issues." }, "limit": { "type": "integer", "maximum": 9007199254740991, "exclusiveMinimum": 0, "description": "Most items to return, 10 by default. A page ends sooner when it reaches its size budget." }, "offset": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "additionalProperties": true } }, { "name": "describe", "description": "Read the whole description and TypeScript signature, with input and output types, of tools at exact paths from search. Unknown paths are listed in missing with the closest paths.", "inputSchema": { "type": "object", "properties": { "paths": { "type": "array", "items": { "type": "string" }, "minItems": 1, "maxItems": 20 } }, "required": ["paths"], "additionalProperties": true } }, { "name": "call", "description": "Call Executor app tools directly by exact path from search. Pass one {path, input} as calls, or an array of independent calls to run them concurrently; results come back in the same order, each with ok and its value or error. Use execute instead when one call's output feeds another, or to filter a large result before it reaches you. Never ask the user for secrets in chat; accounts connect through Executor's secure links. Your MCP client confirms each call before it runs, so approvals do not ask again. Tool input opens the client's own prompt, and the call continues.", "inputSchema": { "type": "object", "properties": { "calls": { "anyOf": [ { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, "minItems": 1 } ] } }, "required": ["calls"], "additionalProperties": true } }, { "name": "execute", "description": "Run a JavaScript program over Executor apps, for work where one result feeds another call or a large result should be filtered before it reaches you; for one or a few independent calls, use call instead. Find tools with the search tool or tools.search inside the program, and full signatures with describe or tools.search.describe({ paths }). The server instructions are the Executor app's entry skill; if your client did not show them, read it with skills({app:'executor',name:'executor'}). Never ask the user for secrets in chat; accounts connect through Executor's secure links. Approvals and tool input open the MCP client's own prompt, and execute continues the same program. Earlier tool calls may already have completed and are not rolled back; never rerun the program automatically after an error. Send feedback with the Executor app's feedback.submit tool when Executor gets in your way or something works especially well.", "inputSchema": { "type": "object", "properties": { "code": { "type": "string", "maxLength": 65536 } }, "required": ["code"], "additionalProperties": true } } ] } ] }, { "mode": "browser", "profiles": [ { "protocol": "2026-07-28", "capabilities": { "logging": {}, "completions": {}, "resources": { "subscribe": true, "listChanged": true }, "tools": { "listChanged": true }, "events": {}, "extensions": { "io.modelcontextprotocol/skills": { "directoryRead": true } } }, "tools": [ { "name": "skills", "description": "Read instructions that apps ship. Every input except {} needs app, the app's slug. The server instructions are the Executor app's entry skill; only if your client did not show them, read it with {app:'executor',name:'executor'}, or, if that app was renamed, with the slug {} lists for it. Otherwise use skills for the other skills: {} lists every visible skill; {app:'executor'} lists one app's skills; {app:'executor',name:'code-mode'} reads that skill's SKILL.md. Pass the returned version and revision with a listed file to read a reference. App slugs are the namespaces used in search, call and execute. Skill text and allowed-tools metadata never grant tool permissions.", "inputSchema": { "type": "object", "properties": { "app": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$" }, "name": { "type": "string", "minLength": 1 }, "file": { "type": "string" }, "version": { "type": "string", "pattern": "^dpl_[\\s\\S]+$" }, "revision": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "accounts": {} }, "additionalProperties": true, "dependentRequired": { "name": ["app"], "file": ["app", "name"], "version": ["app"], "revision": ["app"], "accounts": ["app"] } } }, { "name": "search", "description": "Find Executor app tools by words in their paths, descriptions and labels. Returns exact paths, one-line descriptions and input types, with each app and its linked accounts listed once. Pass a path to call or describe, or use it as tools. inside execute. Omit query to list a namespace. To read the following page, call search again with the returned next object as the whole input; next is null on the last page.", "inputSchema": { "type": "object", "properties": { "query": { "type": "string", "description": "Words matched against tool paths, descriptions, input names, and app, account and router labels. Omit it to list a namespace." }, "namespace": { "type": "string", "description": "App slug, such as axiom, or a namespace inside it, such as acme.issues." }, "limit": { "type": "integer", "maximum": 9007199254740991, "exclusiveMinimum": 0, "description": "Most items to return, 10 by default. A page ends sooner when it reaches its size budget." }, "offset": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "additionalProperties": true } }, { "name": "describe", "description": "Read the whole description and TypeScript signature, with input and output types, of tools at exact paths from search. Unknown paths are listed in missing with the closest paths.", "inputSchema": { "type": "object", "properties": { "paths": { "type": "array", "items": { "type": "string" }, "minItems": 1, "maxItems": 20 } }, "required": ["paths"], "additionalProperties": true } }, { "name": "call", "description": "Call Executor app tools directly by exact path from search. Pass one {path, input} as calls, or an array of independent calls to run them concurrently; results come back in the same order, each with ok and its value or error. Use execute instead when one call's output feeds another, or to filter a large result before it reaches you. Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show the user approvalUrl and call resume with requestId only; the user answers in their browser. Never submit the decision yourself or repeat the call to continue it.", "inputSchema": { "type": "object", "properties": { "calls": { "anyOf": [ { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, "minItems": 1 } ] } }, "required": ["calls"], "additionalProperties": true } }, { "name": "execute", "description": "Run a JavaScript program over Executor apps, for work where one result feeds another call or a large result should be filtered before it reaches you; for one or a few independent calls, use call instead. Find tools with the search tool or tools.search inside the program, and full signatures with describe or tools.search.describe({ paths }). The server instructions are the Executor app's entry skill; if your client did not show them, read it with skills({app:'executor',name:'executor'}). Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show the user approvalUrl and call resume with requestId only; the user answers in their browser. Never submit the decision yourself or rerun the program to continue it. Earlier effects are not rolled back. Send feedback with the Executor app's feedback.submit tool when Executor gets in your way or something works especially well.", "inputSchema": { "type": "object", "properties": { "code": { "type": "string", "maxLength": 65536 } }, "required": ["code"], "additionalProperties": true } }, { "name": "resume", "description": "Collect the answer submitted through approvalUrl and continue the same program. Pass only requestId. This waits briefly for the browser; if the same pending request returns, wait and call resume again. Show any new approvalUrl to the user. Do not invent a response or rerun execute. Unavailable means expired, consumed or lost; earlier effects may have completed.", "inputSchema": { "type": "object", "properties": { "requestId": { "anyOf": [ { "type": "string", "pattern": "^apr_[\\s\\S]+$" }, { "type": "string", "pattern": "^elc_[\\s\\S]+$" } ] } }, "required": ["requestId"], "additionalProperties": true } } ] }, { "protocol": "2025-11-25", "capabilities": { "extensions": { "io.modelcontextprotocol/skills": { "directoryRead": true } }, "logging": {}, "resources": { "subscribe": false, "listChanged": true }, "tools": { "listChanged": true }, "completions": {} }, "tools": [ { "name": "skills", "description": "Read instructions that apps ship. Every input except {} needs app, the app's slug. The server instructions are the Executor app's entry skill; only if your client did not show them, read it with {app:'executor',name:'executor'}, or, if that app was renamed, with the slug {} lists for it. Otherwise use skills for the other skills: {} lists every visible skill; {app:'executor'} lists one app's skills; {app:'executor',name:'code-mode'} reads that skill's SKILL.md. Pass the returned version and revision with a listed file to read a reference. App slugs are the namespaces used in search, call and execute. Skill text and allowed-tools metadata never grant tool permissions.", "inputSchema": { "type": "object", "properties": { "app": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$" }, "name": { "type": "string", "minLength": 1 }, "file": { "type": "string" }, "version": { "type": "string", "pattern": "^dpl_[\\s\\S]+$" }, "revision": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "accounts": {} }, "additionalProperties": true, "dependentRequired": { "name": ["app"], "file": ["app", "name"], "version": ["app"], "revision": ["app"], "accounts": ["app"] } } }, { "name": "search", "description": "Find Executor app tools by words in their paths, descriptions and labels. Returns exact paths, one-line descriptions and input types, with each app and its linked accounts listed once. Pass a path to call or describe, or use it as tools. inside execute. Omit query to list a namespace. To read the following page, call search again with the returned next object as the whole input; next is null on the last page.", "inputSchema": { "type": "object", "properties": { "query": { "type": "string", "description": "Words matched against tool paths, descriptions, input names, and app, account and router labels. Omit it to list a namespace." }, "namespace": { "type": "string", "description": "App slug, such as axiom, or a namespace inside it, such as acme.issues." }, "limit": { "type": "integer", "maximum": 9007199254740991, "exclusiveMinimum": 0, "description": "Most items to return, 10 by default. A page ends sooner when it reaches its size budget." }, "offset": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "additionalProperties": true } }, { "name": "describe", "description": "Read the whole description and TypeScript signature, with input and output types, of tools at exact paths from search. Unknown paths are listed in missing with the closest paths.", "inputSchema": { "type": "object", "properties": { "paths": { "type": "array", "items": { "type": "string" }, "minItems": 1, "maxItems": 20 } }, "required": ["paths"], "additionalProperties": true } }, { "name": "call", "description": "Call Executor app tools directly by exact path from search. Pass one {path, input} as calls, or an array of independent calls to run them concurrently; results come back in the same order, each with ok and its value or error. Use execute instead when one call's output feeds another, or to filter a large result before it reaches you. Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show the user approvalUrl and call resume with requestId only; the user answers in their browser. Never submit the decision yourself or repeat the call to continue it.", "inputSchema": { "type": "object", "properties": { "calls": { "anyOf": [ { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, "minItems": 1 } ] } }, "required": ["calls"], "additionalProperties": true } }, { "name": "execute", "description": "Run a JavaScript program over Executor apps, for work where one result feeds another call or a large result should be filtered before it reaches you; for one or a few independent calls, use call instead. Find tools with the search tool or tools.search inside the program, and full signatures with describe or tools.search.describe({ paths }). The server instructions are the Executor app's entry skill; if your client did not show them, read it with skills({app:'executor',name:'executor'}). Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show the user approvalUrl and call resume with requestId only; the user answers in their browser. Never submit the decision yourself or rerun the program to continue it. Earlier effects are not rolled back. Send feedback with the Executor app's feedback.submit tool when Executor gets in your way or something works especially well.", "inputSchema": { "type": "object", "properties": { "code": { "type": "string", "maxLength": 65536 } }, "required": ["code"], "additionalProperties": true } }, { "name": "resume", "description": "Collect the answer submitted through approvalUrl and continue the same program. Pass only requestId. This waits briefly for the browser; if the same pending request returns, wait and call resume again. Show any new approvalUrl to the user. Do not invent a response or rerun execute. Unavailable means expired, consumed or lost; earlier effects may have completed.", "inputSchema": { "type": "object", "properties": { "requestId": { "anyOf": [ { "type": "string", "pattern": "^apr_[\\s\\S]+$" }, { "type": "string", "pattern": "^elc_[\\s\\S]+$" } ] } }, "required": ["requestId"], "additionalProperties": true } } ] }, { "protocol": "2025-06-18", "capabilities": { "extensions": { "io.modelcontextprotocol/skills": { "directoryRead": true } }, "logging": {}, "resources": { "subscribe": false, "listChanged": true }, "tools": { "listChanged": true }, "completions": {} }, "tools": [ { "name": "skills", "description": "Read instructions that apps ship. Every input except {} needs app, the app's slug. The server instructions are the Executor app's entry skill; only if your client did not show them, read it with {app:'executor',name:'executor'}, or, if that app was renamed, with the slug {} lists for it. Otherwise use skills for the other skills: {} lists every visible skill; {app:'executor'} lists one app's skills; {app:'executor',name:'code-mode'} reads that skill's SKILL.md. Pass the returned version and revision with a listed file to read a reference. App slugs are the namespaces used in search, call and execute. Skill text and allowed-tools metadata never grant tool permissions.", "inputSchema": { "type": "object", "properties": { "app": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$" }, "name": { "type": "string", "minLength": 1 }, "file": { "type": "string" }, "version": { "type": "string", "pattern": "^dpl_[\\s\\S]+$" }, "revision": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "accounts": {} }, "additionalProperties": true, "dependentRequired": { "name": ["app"], "file": ["app", "name"], "version": ["app"], "revision": ["app"], "accounts": ["app"] } } }, { "name": "search", "description": "Find Executor app tools by words in their paths, descriptions and labels. Returns exact paths, one-line descriptions and input types, with each app and its linked accounts listed once. Pass a path to call or describe, or use it as tools. inside execute. Omit query to list a namespace. To read the following page, call search again with the returned next object as the whole input; next is null on the last page.", "inputSchema": { "type": "object", "properties": { "query": { "type": "string", "description": "Words matched against tool paths, descriptions, input names, and app, account and router labels. Omit it to list a namespace." }, "namespace": { "type": "string", "description": "App slug, such as axiom, or a namespace inside it, such as acme.issues." }, "limit": { "type": "integer", "maximum": 9007199254740991, "exclusiveMinimum": 0, "description": "Most items to return, 10 by default. A page ends sooner when it reaches its size budget." }, "offset": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "additionalProperties": true } }, { "name": "describe", "description": "Read the whole description and TypeScript signature, with input and output types, of tools at exact paths from search. Unknown paths are listed in missing with the closest paths.", "inputSchema": { "type": "object", "properties": { "paths": { "type": "array", "items": { "type": "string" }, "minItems": 1, "maxItems": 20 } }, "required": ["paths"], "additionalProperties": true } }, { "name": "call", "description": "Call Executor app tools directly by exact path from search. Pass one {path, input} as calls, or an array of independent calls to run them concurrently; results come back in the same order, each with ok and its value or error. Use execute instead when one call's output feeds another, or to filter a large result before it reaches you. Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show the user approvalUrl and call resume with requestId only; the user answers in their browser. Never submit the decision yourself or repeat the call to continue it.", "inputSchema": { "type": "object", "properties": { "calls": { "anyOf": [ { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, "minItems": 1 } ] } }, "required": ["calls"], "additionalProperties": true } }, { "name": "execute", "description": "Run a JavaScript program over Executor apps, for work where one result feeds another call or a large result should be filtered before it reaches you; for one or a few independent calls, use call instead. Find tools with the search tool or tools.search inside the program, and full signatures with describe or tools.search.describe({ paths }). The server instructions are the Executor app's entry skill; if your client did not show them, read it with skills({app:'executor',name:'executor'}). Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show the user approvalUrl and call resume with requestId only; the user answers in their browser. Never submit the decision yourself or rerun the program to continue it. Earlier effects are not rolled back. Send feedback with the Executor app's feedback.submit tool when Executor gets in your way or something works especially well.", "inputSchema": { "type": "object", "properties": { "code": { "type": "string", "maxLength": 65536 } }, "required": ["code"], "additionalProperties": true } }, { "name": "resume", "description": "Collect the answer submitted through approvalUrl and continue the same program. Pass only requestId. This waits briefly for the browser; if the same pending request returns, wait and call resume again. Show any new approvalUrl to the user. Do not invent a response or rerun execute. Unavailable means expired, consumed or lost; earlier effects may have completed.", "inputSchema": { "type": "object", "properties": { "requestId": { "anyOf": [ { "type": "string", "pattern": "^apr_[\\s\\S]+$" }, { "type": "string", "pattern": "^elc_[\\s\\S]+$" } ] } }, "required": ["requestId"], "additionalProperties": true } } ] }, { "protocol": "2025-03-26", "capabilities": { "extensions": { "io.modelcontextprotocol/skills": { "directoryRead": true } }, "logging": {}, "resources": { "subscribe": false, "listChanged": true }, "tools": { "listChanged": true }, "completions": {} }, "tools": [ { "name": "skills", "description": "Read instructions that apps ship. Every input except {} needs app, the app's slug. The server instructions are the Executor app's entry skill; only if your client did not show them, read it with {app:'executor',name:'executor'}, or, if that app was renamed, with the slug {} lists for it. Otherwise use skills for the other skills: {} lists every visible skill; {app:'executor'} lists one app's skills; {app:'executor',name:'code-mode'} reads that skill's SKILL.md. Pass the returned version and revision with a listed file to read a reference. App slugs are the namespaces used in search, call and execute. Skill text and allowed-tools metadata never grant tool permissions.", "inputSchema": { "type": "object", "properties": { "app": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$" }, "name": { "type": "string", "minLength": 1 }, "file": { "type": "string" }, "version": { "type": "string", "pattern": "^dpl_[\\s\\S]+$" }, "revision": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "accounts": {} } } }, { "name": "search", "description": "Find Executor app tools by words in their paths, descriptions and labels. Returns exact paths, one-line descriptions and input types, with each app and its linked accounts listed once. Pass a path to call or describe, or use it as tools. inside execute. Omit query to list a namespace. To read the following page, call search again with the returned next object as the whole input; next is null on the last page.", "inputSchema": { "type": "object", "properties": { "query": { "type": "string", "description": "Words matched against tool paths, descriptions, input names, and app, account and router labels. Omit it to list a namespace." }, "namespace": { "type": "string", "description": "App slug, such as axiom, or a namespace inside it, such as acme.issues." }, "limit": { "type": "integer", "maximum": 9007199254740991, "exclusiveMinimum": 0, "description": "Most items to return, 10 by default. A page ends sooner when it reaches its size budget." }, "offset": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } } } }, { "name": "describe", "description": "Read the whole description and TypeScript signature, with input and output types, of tools at exact paths from search. Unknown paths are listed in missing with the closest paths.", "inputSchema": { "type": "object", "properties": { "paths": { "type": "array", "items": { "type": "string" }, "minItems": 1, "maxItems": 20 } }, "required": ["paths"] } }, { "name": "call", "description": "Call Executor app tools directly by exact path from search. Pass one {path, input} as calls, or an array of independent calls to run them concurrently; results come back in the same order, each with ok and its value or error. Use execute instead when one call's output feeds another, or to filter a large result before it reaches you. Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show the user approvalUrl and call resume with requestId only; the user answers in their browser. Never submit the decision yourself or repeat the call to continue it.", "inputSchema": { "type": "object", "properties": { "calls": { "anyOf": [ { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, "minItems": 1 } ] } }, "required": ["calls"] } }, { "name": "execute", "description": "Run a JavaScript program over Executor apps, for work where one result feeds another call or a large result should be filtered before it reaches you; for one or a few independent calls, use call instead. Find tools with the search tool or tools.search inside the program, and full signatures with describe or tools.search.describe({ paths }). The server instructions are the Executor app's entry skill; if your client did not show them, read it with skills({app:'executor',name:'executor'}). Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show the user approvalUrl and call resume with requestId only; the user answers in their browser. Never submit the decision yourself or rerun the program to continue it. Earlier effects are not rolled back. Send feedback with the Executor app's feedback.submit tool when Executor gets in your way or something works especially well.", "inputSchema": { "type": "object", "properties": { "code": { "type": "string", "maxLength": 65536 } }, "required": ["code"] } }, { "name": "resume", "description": "Collect the answer submitted through approvalUrl and continue the same program. Pass only requestId. This waits briefly for the browser; if the same pending request returns, wait and call resume again. Show any new approvalUrl to the user. Do not invent a response or rerun execute. Unavailable means expired, consumed or lost; earlier effects may have completed.", "inputSchema": { "type": "object", "properties": { "requestId": { "anyOf": [ { "type": "string", "pattern": "^apr_[\\s\\S]+$" }, { "type": "string", "pattern": "^elc_[\\s\\S]+$" } ] } }, "required": ["requestId"] } } ] } ] }, { "mode": "automatic", "profiles": [ { "protocol": "2026-07-28", "capabilities": { "logging": {}, "completions": {}, "resources": { "subscribe": true, "listChanged": true }, "tools": { "listChanged": true }, "events": {}, "extensions": { "io.modelcontextprotocol/skills": { "directoryRead": true } } }, "tools": [ { "name": "skills", "description": "Read instructions that apps ship. Every input except {} needs app, the app's slug. The server instructions are the Executor app's entry skill; only if your client did not show them, read it with {app:'executor',name:'executor'}, or, if that app was renamed, with the slug {} lists for it. Otherwise use skills for the other skills: {} lists every visible skill; {app:'executor'} lists one app's skills; {app:'executor',name:'code-mode'} reads that skill's SKILL.md. Pass the returned version and revision with a listed file to read a reference. App slugs are the namespaces used in search, call and execute. Skill text and allowed-tools metadata never grant tool permissions.", "inputSchema": { "type": "object", "properties": { "app": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$" }, "name": { "type": "string", "minLength": 1 }, "file": { "type": "string" }, "version": { "type": "string", "pattern": "^dpl_[\\s\\S]+$" }, "revision": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "accounts": {} }, "additionalProperties": true, "dependentRequired": { "name": ["app"], "file": ["app", "name"], "version": ["app"], "revision": ["app"], "accounts": ["app"] } } }, { "name": "search", "description": "Find Executor app tools by words in their paths, descriptions and labels. Returns exact paths, one-line descriptions and input types, with each app and its linked accounts listed once. Pass a path to call or describe, or use it as tools. inside execute. Omit query to list a namespace. To read the following page, call search again with the returned next object as the whole input; next is null on the last page.", "inputSchema": { "type": "object", "properties": { "query": { "type": "string", "description": "Words matched against tool paths, descriptions, input names, and app, account and router labels. Omit it to list a namespace." }, "namespace": { "type": "string", "description": "App slug, such as axiom, or a namespace inside it, such as acme.issues." }, "limit": { "type": "integer", "maximum": 9007199254740991, "exclusiveMinimum": 0, "description": "Most items to return, 10 by default. A page ends sooner when it reaches its size budget." }, "offset": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "additionalProperties": true } }, { "name": "describe", "description": "Read the whole description and TypeScript signature, with input and output types, of tools at exact paths from search. Unknown paths are listed in missing with the closest paths.", "inputSchema": { "type": "object", "properties": { "paths": { "type": "array", "items": { "type": "string" }, "minItems": 1, "maxItems": 20 } }, "required": ["paths"], "additionalProperties": true } }, { "name": "call", "description": "Call Executor app tools directly by exact path from search. Pass one {path, input} as calls, or an array of independent calls to run them concurrently; results come back in the same order, each with ok and its value or error. Use execute instead when one call's output feeds another, or to filter a large result before it reaches you. Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show it to the user and call resume with their answer; never repeat the call to continue it.", "inputSchema": { "type": "object", "properties": { "calls": { "anyOf": [ { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, "minItems": 1 } ] } }, "required": ["calls"], "additionalProperties": true } }, { "name": "execute", "description": "Run a JavaScript program over Executor apps, for work where one result feeds another call or a large result should be filtered before it reaches you; for one or a few independent calls, use call instead. Find tools with the search tool or tools.search inside the program, and full signatures with describe or tools.search.describe({ paths }). The server instructions are the Executor app's entry skill; if your client did not show them, read it with skills({app:'executor',name:'executor'}). Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show it to the user and call resume with their answer; never run the program's source again. External effects are not rolled back on error or cancellation. Send feedback with the Executor app's feedback.submit tool when Executor gets in your way or something works especially well.", "inputSchema": { "type": "object", "properties": { "code": { "type": "string", "maxLength": 65536 } }, "required": ["code"], "additionalProperties": true } }, { "name": "resume", "description": "Continue a paused execute program using its pending requestId and the user's MCP elicitation response: {action: 'accept', content: {...}}, {action: 'decline'}, or {action: 'cancel'}. Ask the user before approving. Return the user's form fields in content on accept. Returns the next pending interaction or the completed program result. An approved call that fails reports its own error. Unavailable carries a reason (answered, expired, ended, lost, malformed or not-found), what to do and the caller's open requests in pending; do not rerun the whole program because earlier calls may have completed. Busy means another resume is advancing this program; wait for that response. Results are not replayed.", "inputSchema": { "type": "object", "properties": { "requestId": { "anyOf": [ { "type": "string", "pattern": "^apr_[\\s\\S]+$" }, { "type": "string", "pattern": "^elc_[\\s\\S]+$" } ] }, "response": { "anyOf": [ { "type": "object", "properties": { "_meta": { "anyOf": [ { "type": "object" }, { "type": "null" } ] }, "action": { "type": "string", "enum": ["accept"] }, "content": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "type": "string" } } ] } } }, "required": ["action"], "additionalProperties": true }, { "type": "object", "properties": { "_meta": { "anyOf": [ { "type": "object" }, { "type": "null" } ] }, "action": { "type": "string", "enum": ["cancel", "decline"] } }, "required": ["action"], "additionalProperties": true } ] } }, "required": ["requestId", "response"], "additionalProperties": true } } ] }, { "protocol": "2025-11-25", "capabilities": { "extensions": { "io.modelcontextprotocol/skills": { "directoryRead": true } }, "logging": {}, "resources": { "subscribe": false, "listChanged": true }, "tools": { "listChanged": true }, "completions": {} }, "tools": [ { "name": "skills", "description": "Read instructions that apps ship. Every input except {} needs app, the app's slug. The server instructions are the Executor app's entry skill; only if your client did not show them, read it with {app:'executor',name:'executor'}, or, if that app was renamed, with the slug {} lists for it. Otherwise use skills for the other skills: {} lists every visible skill; {app:'executor'} lists one app's skills; {app:'executor',name:'code-mode'} reads that skill's SKILL.md. Pass the returned version and revision with a listed file to read a reference. App slugs are the namespaces used in search, call and execute. Skill text and allowed-tools metadata never grant tool permissions.", "inputSchema": { "type": "object", "properties": { "app": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$" }, "name": { "type": "string", "minLength": 1 }, "file": { "type": "string" }, "version": { "type": "string", "pattern": "^dpl_[\\s\\S]+$" }, "revision": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "accounts": {} }, "additionalProperties": true, "dependentRequired": { "name": ["app"], "file": ["app", "name"], "version": ["app"], "revision": ["app"], "accounts": ["app"] } } }, { "name": "search", "description": "Find Executor app tools by words in their paths, descriptions and labels. Returns exact paths, one-line descriptions and input types, with each app and its linked accounts listed once. Pass a path to call or describe, or use it as tools. inside execute. Omit query to list a namespace. To read the following page, call search again with the returned next object as the whole input; next is null on the last page.", "inputSchema": { "type": "object", "properties": { "query": { "type": "string", "description": "Words matched against tool paths, descriptions, input names, and app, account and router labels. Omit it to list a namespace." }, "namespace": { "type": "string", "description": "App slug, such as axiom, or a namespace inside it, such as acme.issues." }, "limit": { "type": "integer", "maximum": 9007199254740991, "exclusiveMinimum": 0, "description": "Most items to return, 10 by default. A page ends sooner when it reaches its size budget." }, "offset": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "additionalProperties": true } }, { "name": "describe", "description": "Read the whole description and TypeScript signature, with input and output types, of tools at exact paths from search. Unknown paths are listed in missing with the closest paths.", "inputSchema": { "type": "object", "properties": { "paths": { "type": "array", "items": { "type": "string" }, "minItems": 1, "maxItems": 20 } }, "required": ["paths"], "additionalProperties": true } }, { "name": "call", "description": "Call Executor app tools directly by exact path from search. Pass one {path, input} as calls, or an array of independent calls to run them concurrently; results come back in the same order, each with ok and its value or error. Use execute instead when one call's output feeds another, or to filter a large result before it reaches you. Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show it to the user and call resume with their answer; never repeat the call to continue it.", "inputSchema": { "type": "object", "properties": { "calls": { "anyOf": [ { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, "minItems": 1 } ] } }, "required": ["calls"], "additionalProperties": true } }, { "name": "execute", "description": "Run a JavaScript program over Executor apps, for work where one result feeds another call or a large result should be filtered before it reaches you; for one or a few independent calls, use call instead. Find tools with the search tool or tools.search inside the program, and full signatures with describe or tools.search.describe({ paths }). The server instructions are the Executor app's entry skill; if your client did not show them, read it with skills({app:'executor',name:'executor'}). Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show it to the user and call resume with their answer; never run the program's source again. External effects are not rolled back on error or cancellation. Send feedback with the Executor app's feedback.submit tool when Executor gets in your way or something works especially well.", "inputSchema": { "type": "object", "properties": { "code": { "type": "string", "maxLength": 65536 } }, "required": ["code"], "additionalProperties": true } }, { "name": "resume", "description": "Continue a paused execute program using its pending requestId and the user's MCP elicitation response: {action: 'accept', content: {...}}, {action: 'decline'}, or {action: 'cancel'}. Ask the user before approving. Return the user's form fields in content on accept. Returns the next pending interaction or the completed program result. An approved call that fails reports its own error. Unavailable carries a reason (answered, expired, ended, lost, malformed or not-found), what to do and the caller's open requests in pending; do not rerun the whole program because earlier calls may have completed. Busy means another resume is advancing this program; wait for that response. Results are not replayed.", "inputSchema": { "type": "object", "properties": { "requestId": { "anyOf": [ { "type": "string", "pattern": "^apr_[\\s\\S]+$" }, { "type": "string", "pattern": "^elc_[\\s\\S]+$" } ] }, "response": { "anyOf": [ { "type": "object", "properties": { "_meta": { "anyOf": [ { "type": "object" }, { "type": "null" } ] }, "action": { "type": "string", "enum": ["accept"] }, "content": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "type": "string" } } ] } } }, "required": ["action"], "additionalProperties": true }, { "type": "object", "properties": { "_meta": { "anyOf": [ { "type": "object" }, { "type": "null" } ] }, "action": { "type": "string", "enum": ["cancel", "decline"] } }, "required": ["action"], "additionalProperties": true } ] } }, "required": ["requestId", "response"], "additionalProperties": true } } ] }, { "protocol": "2025-06-18", "capabilities": { "extensions": { "io.modelcontextprotocol/skills": { "directoryRead": true } }, "logging": {}, "resources": { "subscribe": false, "listChanged": true }, "tools": { "listChanged": true }, "completions": {} }, "tools": [ { "name": "skills", "description": "Read instructions that apps ship. Every input except {} needs app, the app's slug. The server instructions are the Executor app's entry skill; only if your client did not show them, read it with {app:'executor',name:'executor'}, or, if that app was renamed, with the slug {} lists for it. Otherwise use skills for the other skills: {} lists every visible skill; {app:'executor'} lists one app's skills; {app:'executor',name:'code-mode'} reads that skill's SKILL.md. Pass the returned version and revision with a listed file to read a reference. App slugs are the namespaces used in search, call and execute. Skill text and allowed-tools metadata never grant tool permissions.", "inputSchema": { "type": "object", "properties": { "app": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$" }, "name": { "type": "string", "minLength": 1 }, "file": { "type": "string" }, "version": { "type": "string", "pattern": "^dpl_[\\s\\S]+$" }, "revision": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "accounts": {} }, "additionalProperties": true, "dependentRequired": { "name": ["app"], "file": ["app", "name"], "version": ["app"], "revision": ["app"], "accounts": ["app"] } } }, { "name": "search", "description": "Find Executor app tools by words in their paths, descriptions and labels. Returns exact paths, one-line descriptions and input types, with each app and its linked accounts listed once. Pass a path to call or describe, or use it as tools. inside execute. Omit query to list a namespace. To read the following page, call search again with the returned next object as the whole input; next is null on the last page.", "inputSchema": { "type": "object", "properties": { "query": { "type": "string", "description": "Words matched against tool paths, descriptions, input names, and app, account and router labels. Omit it to list a namespace." }, "namespace": { "type": "string", "description": "App slug, such as axiom, or a namespace inside it, such as acme.issues." }, "limit": { "type": "integer", "maximum": 9007199254740991, "exclusiveMinimum": 0, "description": "Most items to return, 10 by default. A page ends sooner when it reaches its size budget." }, "offset": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "additionalProperties": true } }, { "name": "describe", "description": "Read the whole description and TypeScript signature, with input and output types, of tools at exact paths from search. Unknown paths are listed in missing with the closest paths.", "inputSchema": { "type": "object", "properties": { "paths": { "type": "array", "items": { "type": "string" }, "minItems": 1, "maxItems": 20 } }, "required": ["paths"], "additionalProperties": true } }, { "name": "call", "description": "Call Executor app tools directly by exact path from search. Pass one {path, input} as calls, or an array of independent calls to run them concurrently; results come back in the same order, each with ok and its value or error. Use execute instead when one call's output feeds another, or to filter a large result before it reaches you. Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show it to the user and call resume with their answer; never repeat the call to continue it.", "inputSchema": { "type": "object", "properties": { "calls": { "anyOf": [ { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, "minItems": 1 } ] } }, "required": ["calls"], "additionalProperties": true } }, { "name": "execute", "description": "Run a JavaScript program over Executor apps, for work where one result feeds another call or a large result should be filtered before it reaches you; for one or a few independent calls, use call instead. Find tools with the search tool or tools.search inside the program, and full signatures with describe or tools.search.describe({ paths }). The server instructions are the Executor app's entry skill; if your client did not show them, read it with skills({app:'executor',name:'executor'}). Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show it to the user and call resume with their answer; never run the program's source again. External effects are not rolled back on error or cancellation. Send feedback with the Executor app's feedback.submit tool when Executor gets in your way or something works especially well.", "inputSchema": { "type": "object", "properties": { "code": { "type": "string", "maxLength": 65536 } }, "required": ["code"], "additionalProperties": true } }, { "name": "resume", "description": "Continue a paused execute program using its pending requestId and the user's MCP elicitation response: {action: 'accept', content: {...}}, {action: 'decline'}, or {action: 'cancel'}. Ask the user before approving. Return the user's form fields in content on accept. Returns the next pending interaction or the completed program result. An approved call that fails reports its own error. Unavailable carries a reason (answered, expired, ended, lost, malformed or not-found), what to do and the caller's open requests in pending; do not rerun the whole program because earlier calls may have completed. Busy means another resume is advancing this program; wait for that response. Results are not replayed.", "inputSchema": { "type": "object", "properties": { "requestId": { "anyOf": [ { "type": "string", "pattern": "^apr_[\\s\\S]+$" }, { "type": "string", "pattern": "^elc_[\\s\\S]+$" } ] }, "response": { "anyOf": [ { "type": "object", "properties": { "_meta": { "anyOf": [ { "type": "object" }, { "type": "null" } ] }, "action": { "type": "string", "enum": ["accept"] }, "content": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "type": "string" } } ] } } }, "required": ["action"], "additionalProperties": true }, { "type": "object", "properties": { "_meta": { "anyOf": [ { "type": "object" }, { "type": "null" } ] }, "action": { "type": "string", "enum": ["cancel", "decline"] } }, "required": ["action"], "additionalProperties": true } ] } }, "required": ["requestId", "response"], "additionalProperties": true } } ] }, { "protocol": "2025-03-26", "capabilities": { "extensions": { "io.modelcontextprotocol/skills": { "directoryRead": true } }, "logging": {}, "resources": { "subscribe": false, "listChanged": true }, "tools": { "listChanged": true }, "completions": {} }, "tools": [ { "name": "skills", "description": "Read instructions that apps ship. Every input except {} needs app, the app's slug. The server instructions are the Executor app's entry skill; only if your client did not show them, read it with {app:'executor',name:'executor'}, or, if that app was renamed, with the slug {} lists for it. Otherwise use skills for the other skills: {} lists every visible skill; {app:'executor'} lists one app's skills; {app:'executor',name:'code-mode'} reads that skill's SKILL.md. Pass the returned version and revision with a listed file to read a reference. App slugs are the namespaces used in search, call and execute. Skill text and allowed-tools metadata never grant tool permissions.", "inputSchema": { "type": "object", "properties": { "app": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$" }, "name": { "type": "string", "minLength": 1 }, "file": { "type": "string" }, "version": { "type": "string", "pattern": "^dpl_[\\s\\S]+$" }, "revision": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "accounts": {} } } }, { "name": "search", "description": "Find Executor app tools by words in their paths, descriptions and labels. Returns exact paths, one-line descriptions and input types, with each app and its linked accounts listed once. Pass a path to call or describe, or use it as tools. inside execute. Omit query to list a namespace. To read the following page, call search again with the returned next object as the whole input; next is null on the last page.", "inputSchema": { "type": "object", "properties": { "query": { "type": "string", "description": "Words matched against tool paths, descriptions, input names, and app, account and router labels. Omit it to list a namespace." }, "namespace": { "type": "string", "description": "App slug, such as axiom, or a namespace inside it, such as acme.issues." }, "limit": { "type": "integer", "maximum": 9007199254740991, "exclusiveMinimum": 0, "description": "Most items to return, 10 by default. A page ends sooner when it reaches its size budget." }, "offset": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } } } }, { "name": "describe", "description": "Read the whole description and TypeScript signature, with input and output types, of tools at exact paths from search. Unknown paths are listed in missing with the closest paths.", "inputSchema": { "type": "object", "properties": { "paths": { "type": "array", "items": { "type": "string" }, "minItems": 1, "maxItems": 20 } }, "required": ["paths"] } }, { "name": "call", "description": "Call Executor app tools directly by exact path from search. Pass one {path, input} as calls, or an array of independent calls to run them concurrently; results come back in the same order, each with ok and its value or error. Use execute instead when one call's output feeds another, or to filter a large result before it reaches you. Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show it to the user and call resume with their answer; never repeat the call to continue it.", "inputSchema": { "type": "object", "properties": { "calls": { "anyOf": [ { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "description": "An exact path from search, such as tools.github.issues.list." }, "input": { "description": "The tool's input, matching its input type." } }, "required": ["path", "input"], "additionalProperties": true }, "minItems": 1 } ] } }, "required": ["calls"] } }, { "name": "execute", "description": "Run a JavaScript program over Executor apps, for work where one result feeds another call or a large result should be filtered before it reaches you; for one or a few independent calls, use call instead. Find tools with the search tool or tools.search inside the program, and full signatures with describe or tools.search.describe({ paths }). The server instructions are the Executor app's entry skill; if your client did not show them, read it with skills({app:'executor',name:'executor'}). Never ask the user for secrets in chat; accounts connect through Executor's secure links. If approval-required or input-required is returned, show it to the user and call resume with their answer; never run the program's source again. External effects are not rolled back on error or cancellation. Send feedback with the Executor app's feedback.submit tool when Executor gets in your way or something works especially well.", "inputSchema": { "type": "object", "properties": { "code": { "type": "string", "maxLength": 65536 } }, "required": ["code"] } }, { "name": "resume", "description": "Continue a paused execute program using its pending requestId and the user's MCP elicitation response: {action: 'accept', content: {...}}, {action: 'decline'}, or {action: 'cancel'}. Ask the user before approving. Return the user's form fields in content on accept. Returns the next pending interaction or the completed program result. An approved call that fails reports its own error. Unavailable carries a reason (answered, expired, ended, lost, malformed or not-found), what to do and the caller's open requests in pending; do not rerun the whole program because earlier calls may have completed. Busy means another resume is advancing this program; wait for that response. Results are not replayed.", "inputSchema": { "type": "object", "properties": { "requestId": { "anyOf": [ { "type": "string", "pattern": "^apr_[\\s\\S]+$" }, { "type": "string", "pattern": "^elc_[\\s\\S]+$" } ] }, "response": { "anyOf": [ { "type": "object", "properties": { "_meta": { "anyOf": [ { "type": "object" }, { "type": "null" } ] }, "action": { "type": "string", "enum": ["accept"] }, "content": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "type": "string" } } ] } } }, "required": ["action"], "additionalProperties": true }, { "type": "object", "properties": { "_meta": { "anyOf": [ { "type": "object" }, { "type": "null" } ] }, "action": { "type": "string", "enum": ["cancel", "decline"] } }, "required": ["action"], "additionalProperties": true } ] } }, "required": ["requestId", "response"] } } ] } ] } ], "selfHost": [ { "key": "BETTER_AUTH_SECRET", "type": "secret string", "fallback": "Read `auth-secret.key` from the data directory. Generate it for a new installation." }, { "key": "BETTER_AUTH_URL", "type": "HTTP(S) origin", "fallback": "`http://localhost:` or HTTPS using `RAILWAY_PUBLIC_DOMAIN`" }, { "key": "DO_NOT_TRACK", "type": "string", "fallback": "Unset" }, { "key": "EXECUTOR_ANALYTICS_SECRET", "type": "secret string", "fallback": "Read `analytics-secret.key` from the data directory. Generate it for a new installation." }, { "key": "EXECUTOR_ANALYTICS_TEST_PORT", "type": "number", "fallback": "Unset" }, { "key": "EXECUTOR_APP_UI_BASE_URL", "type": "string", "fallback": "Unset" }, { "key": "EXECUTOR_APP_WORKER_IDLE_SECONDS", "type": "integer", "fallback": "`300`" }, { "key": "EXECUTOR_APP_WORKERS", "type": "integer", "fallback": "`64`" }, { "key": "EXECUTOR_APPS_ALLOW_PRIVATE_FETCH", "type": "boolean", "fallback": "`false`" }, { "key": "EXECUTOR_BUILD_VERSION", "type": "string", "fallback": "`\"development\"`", "imageDefault": "`2.0.0-beta.79`" }, { "key": "EXECUTOR_CATALOG_URL", "type": "string", "fallback": "`\"https://catalog.executor.sh/index.json\"`" }, { "key": "EXECUTOR_DATA_DIR", "type": "nonempty string", "fallback": "`/app/data` in the Docker host, `\".local/hosted\"` in the server", "imageDefault": "`/app/data`" }, { "key": "EXECUTOR_DESKTOP_SESSION_LINK_SECONDS", "type": "integer", "fallback": "`60`" }, { "key": "EXECUTOR_DISABLE_ANALYTICS", "type": "string", "fallback": "Unset" }, { "key": "EXECUTOR_ENCRYPTION_KEY", "type": "secret string", "fallback": "Read `encryption.key` from the data directory. Generate it for a new installation." }, { "key": "EXECUTOR_ENVIRONMENT", "type": "string", "fallback": "`\"\"`", "imageDefault": "`self-host`" }, { "key": "EXECUTOR_EVALUATION_MEMORY_MB", "type": "nonnegative number", "fallback": "`256`" }, { "key": "EXECUTOR_HOST_ARCH", "type": "string", "fallback": "Host architecture" }, { "key": "EXECUTOR_HOST_OS", "type": "string", "fallback": "Host operating system" }, { "key": "EXECUTOR_HOST_STALL_RESTART", "type": "boolean", "fallback": "`false`" }, { "key": "EXECUTOR_HOST_STALL_SECONDS", "type": "integer", "fallback": "`60`" }, { "key": "EXECUTOR_INSTALL_ID", "type": "UUID", "fallback": "Read `install-id` from the data directory. Generate it for a new installation." }, { "key": "EXECUTOR_MCP_CLIENTS", "type": "positive integer", "fallback": "`512`" }, { "key": "EXECUTOR_MCP_CLIENTS_PER_USER", "type": "positive integer", "fallback": "`256`" }, { "key": "EXECUTOR_MCP_TIMEOUT_MS", "type": "number", "fallback": "`300000`" }, { "key": "EXECUTOR_MOTEL_DATA_DIR", "type": "path", "fallback": "`/app/motel-data`", "imageDefault": "`/app/motel-data`" }, { "key": "EXECUTOR_NO_UPDATE_CHECK", "type": "boolean", "fallback": "`false`" }, { "key": "EXECUTOR_NPM_REGISTRY", "type": "HTTP(S) URL", "fallback": "`https://registry.npmjs.org`" }, { "key": "EXECUTOR_OAUTH_CALLBACK_URL", "type": "string", "fallback": "Unset" }, { "key": "EXECUTOR_OAUTH_CLIENT_METADATA_URL", "type": "string", "fallback": "Unset" }, { "key": "EXECUTOR_OAUTH_GITHUB_CLIENT_ID", "type": "string", "fallback": "Unset" }, { "key": "EXECUTOR_OAUTH_GITHUB_CLIENT_SECRET", "type": "secret string", "fallback": "Unset" }, { "key": "EXECUTOR_OAUTH_GOOGLE_CLIENT_ID", "type": "string", "fallback": "Unset" }, { "key": "EXECUTOR_OAUTH_GOOGLE_CLIENT_SECRET", "type": "secret string", "fallback": "Unset" }, { "key": "EXECUTOR_OAUTH_SLACK_CLIENT_ID", "type": "string", "fallback": "Unset" }, { "key": "EXECUTOR_OAUTH_SLACK_CLIENT_SECRET", "type": "secret string", "fallback": "Unset" }, { "key": "EXECUTOR_POSTHOG_HOST", "type": "string", "fallback": "`\"\"`", "imageDefault": "Configured by the release build" }, { "key": "EXECUTOR_POSTHOG_PUBLIC_KEY", "type": "string", "fallback": "`\"\"`", "imageDefault": "Configured by the release build" }, { "key": "EXECUTOR_REGISTRY_URL", "type": "string", "fallback": "`\"https://api.executor.sh\"`" }, { "key": "EXECUTOR_REPOSITORIES_DIR", "type": "path", "fallback": "The data directory's `repositories` subdirectory" }, { "key": "EXECUTOR_RUNTIME_DIR", "type": "path", "fallback": "`/app`" }, { "key": "EXECUTOR_SCHEDULE_CONCURRENCY", "type": "number", "fallback": "`8`" }, { "key": "EXECUTOR_STORAGE_EXPORT", "type": "boolean", "fallback": "`false`" }, { "key": "EXECUTOR_TEST_OAUTH_CLIENT_DEFINITIONS", "type": "JSON array", "fallback": "Unset" }, { "key": "EXECUTOR_TOOL_LISTING_FRESH_SECONDS", "type": "nonnegative number", "fallback": "`30`" }, { "key": "EXECUTOR_TOOL_LISTING_LOAD_SECONDS", "type": "nonnegative number", "fallback": "`45`" }, { "key": "EXECUTOR_TOOL_LISTING_MAX_AGE_SECONDS", "type": "nonnegative number", "fallback": "`604800`" }, { "key": "EXECUTOR_TOOL_LISTING_RENEW_SECONDS", "type": "nonnegative number", "fallback": "`86400`" }, { "key": "EXECUTOR_TRUSTED_PROXIES", "type": "string", "fallback": "Unset" }, { "key": "EXECUTOR_URL_ALLOW_HTTP_ORIGINS", "type": "JSON array of origins", "fallback": "`[]`" }, { "key": "EXECUTOR_URL_ALLOW_LOOPBACK_HTTP", "type": "boolean", "fallback": "`true`" }, { "key": "HOST", "type": "string", "fallback": "`0.0.0.0`", "imageDefault": "`0.0.0.0`" }, { "key": "NODE_ENV", "type": "string", "fallback": "`\"production\"`", "imageDefault": "`production`" }, { "key": "NODE_EXTRA_CA_CERTS", "type": "string", "fallback": "Unset" }, { "key": "OTEL_EXPORTER_OTLP_ENDPOINT", "type": "URL", "fallback": "Unset" }, { "key": "OTEL_EXPORTER_OTLP_HEADERS", "type": "comma-separated key=value pairs", "fallback": "Unset" }, { "key": "OTEL_EXPORTER_OTLP_LOGS_ENDPOINT", "type": "URL", "fallback": "Unset" }, { "key": "OTEL_EXPORTER_OTLP_LOGS_HEADERS", "type": "comma-separated key=value pairs", "fallback": "Unset" }, { "key": "OTEL_EXPORTER_OTLP_METRICS_ENDPOINT", "type": "URL", "fallback": "Unset" }, { "key": "OTEL_EXPORTER_OTLP_METRICS_HEADERS", "type": "comma-separated key=value pairs", "fallback": "Unset" }, { "key": "OTEL_EXPORTER_OTLP_METRICS_PROTOCOL", "type": "string", "fallback": "`\"http/protobuf\"`" }, { "key": "OTEL_EXPORTER_OTLP_TRACES_ENDPOINT", "type": "URL", "fallback": "Unset" }, { "key": "OTEL_EXPORTER_OTLP_TRACES_HEADERS", "type": "comma-separated key=value pairs", "fallback": "Unset" }, { "key": "PORT", "type": "number", "fallback": "`4400`", "imageDefault": "`4400`" }, { "key": "RAILWAY_PUBLIC_DOMAIN", "type": "string", "fallback": "Unset" }, { "key": "SSL_CERT_DIR", "type": "path", "fallback": "Unset" }, { "key": "SSL_CERT_FILE", "type": "path", "fallback": "Unset", "imageDefault": "`/etc/ssl/certs/ca-certificates.crt`" }, { "key": "SSO_ALLOWED_DOMAINS", "type": "string", "fallback": "Required" }, { "key": "SSO_CLIENT_ID", "type": "string", "fallback": "Required" }, { "key": "SSO_CLIENT_SECRET", "type": "secret string", "fallback": "Required" }, { "key": "SSO_DISCOVERY_URL", "type": "string", "fallback": "Unset" } ], "skills": { "app-authoring/SKILL.md": "---\nname: app-authoring\ndescription: Build and deploy Executor apps with tools, storage, UI, accounts and background work. Read before creating or changing an app.\n---\n\n# Build an Executor app\n\nAn app is TypeScript source with a default `defineApp` export from `apps`.\nIts `package.json` declares the exact `apps` version it uses, which\n`framework.release` returns. App authors use ordinary async functions; Effect stays inside\nthe framework. An app's installed name is separate from its source definition.\n\n## Choose how to work\n\nWith a shell, prefer the **local CLI path** in [deploy.md](deploy.md): keep the\nsource in a directory, edit it with your file tools, and deploy with\n`executor apps` (npm `executor@beta`). The pinned `apps` package from npm\nsupplies types and `framework-reference.json`, so writing code needs no MCP.\nUse MCP only to connect accounts and call the deployed app. Without a shell,\nbuild through `execute`; source then travels as data inside tool calls.\n\n## Read only the topics needed\n\n| Task | Reference |\n| ------------------------------------------------------------ | ------------------------------------------------------ |\n| Start a new UI with storage from a checked example | [starter.md](starter.md) |\n| Declare queries, mutations, schemas, approvals, skills, icon | [tools.md](tools.md) |\n| Create, save, deploy, update or select dependencies | [deploy.md](deploy.md) |\n| Build a React UI and subscribe to data | [ui.md](ui.md) |\n| Store, query or modify app data | [storage.md](storage.md) |\n| Connect provider accounts and check they work | [accounts.md](accounts.md) |\n| Add a service: MCP, OpenAPI, GraphQL or another API | [integrations.md](integrations.md) |\n| Handle webhooks | [webhooks.md](webhooks.md) |\n| Emit events that MCP clients such as ChatGPT subscribe to | [events.md](events.md) |\n| Run workflows or scheduled mutations | [workflows.md](workflows.md) |\n| Upgrade an app to a newer `apps` version | [upgrades/0.0.1-beta.90.md](upgrades/0.0.1-beta.90.md) |\n| Upgrade an app from before `apps@0.0.1-beta.38` | [upgrades/0.0.1-beta.38.md](upgrades/0.0.1-beta.38.md) |\n\nFor an existing app, read its current source and the reference for the part\nbeing changed. Tools generated from an MCP server, OpenAPI definition or GraphQL\nschema are a starting point; when one is missing or wrong, write your own tool\nbeside it with the same account ([integrations.md](integrations.md#custom-tools-beside-generated-ones)).\n\nLoad files through the MCP `skills` tool using the returned app slug,\nversion and content revision, for example\n`{ app: \"executor\", name: \"app-authoring\", file: \"ui.md\", version, revision }`.\nThe management app's `skills.list` and `skills.read` read with the caller's\nlinked accounts.\n\n## Discover exact contracts\n\nUse `tools.search` inside `execute` to find callable app tools. It returns their\nexact paths, one-line descriptions and input types. Read a tool's output type\nand whole description with `tools.search.describe({ paths })`. Discover\n`framework.search` and `framework.describe` on this Executor app to inspect library functions and methods. These queries\nreturn generated signatures, related types, examples and documentation links.\nFramework functions are imports or methods used in app source, not MCP tools.\n\nCall `framework.search({ query: { text } })`, then `framework.describe({ query: { symbol, version, digest } })`\nwith a symbol it returns. Start with `apps.defineApp`, `apps.query`, `DatabaseTable.insert`, or `apps/react.useAppQuery`.\nBoth take their input under `query`, unlike `tools.search({ query: \"send email\" })`,\nwhose `query` is a plain string.\nThe reference identifies its exact framework version and content digest. Keep\nthat identity on subsequent reads. Do not assume a host reference describes a\ndifferent pinned `apps` package; that package ships `framework-reference.json`.\n\nHosted management calls require an explicit organization. Discover and call\n`context.get({})` first. Local management calls have no organization parameter.\nRead each discovered signature; do not guess route arguments.\n\n## Build and verify\n\nUse output schemas for typed results. Import server declarations as types only\nin browser code. Put shared schemas in a separate file. Read the relevant\nreference for return shapes and behavior instead of deploying probe apps.\n\nDeploying compiles TypeScript but does not replace a type check or prove that\nthe page renders. Verify the requested behavior on the authenticated app page.\nIf browser access is unavailable, report exactly what remains unverified.\nNever put credentials in source, browser code or tool arguments. Use the secure\naccount connection flow described in `accounts.md`.\n\n## Send feedback\n\nBefore your final reply, send feedback with the Executor app's `feedback.submit`\ntool if anything about Executor slowed you down, confused you or was missing,\nor if something worked especially well. Skip it if there is nothing worth\nreporting. The executor skill's `feedback.md` says what to write.\n", "app-authoring/accounts.md": "## Use a provider account\n\nDeclare the provider's credential shape in source. The host derives its provider\nID, stores account credentials and supplies the accounts each call runs with.\nNever put real tokens into source files or return them from tools.\n\nEach requirement is one of two scopes:\n\n- `user`: each caller's own account. Every member links their own, and\n `ctx.user.accounts.` is the caller's.\n- `app`: the app's own account, such as a team's service key. People who can\n edit the app link it for everyone, and `ctx.app.accounts.` is that\n account for every caller and for the app's background work. Callers never\n choose or replace it.\n\nUse `user` unless the account belongs to the team rather than to whoever calls\nthe tool. A requirement name is used once across both scopes.\n\n**The provider ID comes from the whole definition except `hosts` and setup\nhelp, including `name`, labels and OAuth `scopes`.** Changing any of them after\nusers connect gives a new provider, and existing accounts no longer fit the\nslot. Users must connect a new account. Settle these before users connect.\nSetup help ([below](#tell-users-where-to-get-credentials)) can change at any\ntime.\n\nThis is a complete `index.ts` for Vercel with an API token:\n\n```ts\nimport {\n query,\n type QueryContext,\n array,\n decodeJson,\n defineApp,\n defineProvider,\n object,\n secrets,\n string,\n router,\n} from \"apps\";\n\nconst vercel = defineProvider({\n name: \"Vercel\",\n auth: {\n apiKey: secrets({\n label: \"API token\",\n fields: object({ token: string({ minLength: 1 }) }),\n }),\n },\n});\n\nconst requirements = { user: { accounts: { vercel } } };\ntype Context = QueryContext;\nconst Projects = object({ projects: array(object({ id: string(), name: string() })) });\nconst listProjects = query(\n { description: \"List projects accessible to the caller's Vercel account\", input: object({}) },\n async (ctx: Context) => {\n const response = await ctx.fetch(\"https://api.vercel.com/v9/projects?limit=10\", {\n headers: { Authorization: `Bearer ${ctx.user.accounts.vercel.fields.token}` },\n });\n return decodeJson(response, Projects);\n },\n);\n\nexport default defineApp(requirements, { tools: router({ listProjects }) });\n```\n\nFor one account every caller uses instead, declare it under `app` and read\n`ctx.app.accounts.vercel`:\n\n```ts\nconst requirements = { app: { accounts: { vercel } } };\n```\n\nA context of the `\"app\"` scope, such as `QueryContext`,\nhas no `user`. App schedules, webhooks whose source is an app account and the\nworkflows they start run without a caller and use it; see\n[workflows.md](workflows.md) and [webhooks.md](webhooks.md).\n\n## Limit where credentials go\n\nDeclare `hosts` so app code never holds the secret values. Each unmarked string\nfield then reaches the app as an opaque handle. Executor's network replaces a\nhandle with the real value only on requests to a declared host, in the URL,\nheaders, Basic credentials, and JSON, form or text bodies up to 1 MiB. A token\nthe service takes in the URL path works the same way:\n``ctx.fetch(`https://api.telegram.org/bot${account.fields.token}/getMe`)``.\nFor a generated router, pass a `fetch` that rewrites the URL. Executor\nrefuses a request that sends a handle anywhere else: `ctx.fetch` rejects with\n`NetworkRefused`, naming the host and the provider's allowed hosts, and the\nglobal `fetch` receives status 421 with the same details. A request that carries\na handle is never sent with `TRACE`. Values the service echoes back in headers or\nin JSON, form or text bodies up to 1 MiB reach the app as handles; other\nresponses reach it as the service sent them, so the declared hosts are trusted\nnot to echo a credential back.\n\n**Adding a host to a provider that already declares hosts means users must\nconnect existing accounts again.** Each account keeps the hosts it was connected\nwith, so Executor refuses requests that send its credentials to the new host\nuntil it is reconnected. Declare every host the app needs before users connect\naccounts.\n\n```ts\nimport { defineProvider, object, plain, raw, secrets, string } from \"apps\";\n\nconst example = defineProvider({\n name: \"Example\",\n hosts: [\"api.example.com\", \"*.example.com\"],\n auth: {\n apiKey: secrets({\n label: \"API key\",\n fields: object({\n region: plain(string()), // not secret; the app reads it and the form shows it\n token: string(), // secret: the app reads a handle\n signingKey: raw(string()), // secret the app must read, such as a signing key\n }),\n }),\n },\n});\n```\n\nA host is an exact name, `host:port`, or `*.` plus a domain for one level of\nsubdomain. Pass handles to headers and clients as ordinary strings. Do not\ndecode, hash or sign them; mark such a field `raw()`, and the connect form\nwarns that the app can read it. Multipart and streamed bodies are sent\nunchanged. A provider without `hosts` gives app code real values unless the\naccount was connected with hosts. Changing `plain()` or `raw()` changes the\nprovider, so existing accounts must be connected again.\n\nBasic credentials work with handles. Encode `username:password` with `btoa` as\nusual; Executor decodes a `Basic` `Authorization` header, replaces the handles\ninside it and encodes it again. With a `request` (see below), declare\n`basic(username, password)` and send `account.headers()` instead. This [check](#check-an-account) sends a\n`secrets` method's `username` and `password` fields to a declared host:\n\n```ts\nasync health({ account, fetch, signal }) {\n const basic = btoa(`${account.fields.username}:${account.fields.password}`);\n const response = await fetch(\"https://api.example.com/v1/me\", {\n signal,\n headers: { Authorization: `Basic ${basic}` },\n });\n const me = await decodeJson(response, object({ id: string(), email: string() }));\n return { accountInfo: { externalId: me.id, email: me.email } };\n},\n```\n\n## Place credentials exactly\n\n`hosts` limits where a credential goes; `request` also limits where in the\nrequest it goes. Give a method a `request` and Executor substitutes its handles\nonly as the whole value of the declared headers or query parameters, matching\nthe template exactly. A handle anywhere else (a body, the URL path, another\nheader, or a value with extra text) is refused with `NetworkRefused`\n(`credential_placement`), so a service cannot be made to store the secret and\nhand it back. A provider that declares `request` must declare `hosts`. Placed\ncredentials go only over HTTPS; plain HTTP is refused (`credential_transport`),\nexcept to a loopback address on an instance that lets apps reach private\naddresses, for local development.\n\n`request` receives a reference for each of the method's fields and runs once,\nwhen the provider is declared. Build values with the tagged template `t`; an\nuntagged template literal throws. `header(name, value)` and `query(name, value)`\nchoose the location; `base64(value)` encodes; `bearer(token)` and\n`basic(user, password)` are shorthands for the usual `Authorization` values:\n\n```ts\nimport {\n base64,\n bearer,\n defineProvider,\n header,\n oauth2,\n object,\n plain,\n query,\n secrets,\n string,\n t,\n} from \"apps\";\n\nconst jira = defineProvider({\n name: \"Jira\",\n hosts: [\"*.atlassian.net\"],\n auth: {\n token: secrets({\n label: \"API token\",\n fields: object({ email: plain(string()), token: string() }),\n request: ({ email, token }) =>\n header(\"authorization\", t`Basic ${base64(t`${email}:${token}`)}`),\n }),\n oauth: oauth2({\n discover: \"https://auth.atlassian.com\",\n scopes: [\"read:jira-work\"],\n request: ({ access_token }) => bearer(access_token),\n }),\n },\n});\n\nconst google = defineProvider({\n name: \"Google API key\",\n hosts: [\"www.googleapis.com\"],\n auth: {\n key: secrets({\n label: \"API key\",\n fields: object({ key: string() }),\n request: ({ key }) => [header(\"x-goog-api-key\", key), query(\"key\", key)],\n }),\n },\n});\n```\n\nEach placement references at least one secret field, never a `raw()` field.\n`plain()` fields in a template are copied as the app sends them. Send the\ncredentials with the account's `headers()` and `url()`, which render the\ndeclared placements with the handles app code holds:\n\n```ts\nconst response = await fetch(account.url(\"https://www.googleapis.com/books/v1/volumes?q=x\"), {\n headers: { ...account.headers(), accept: \"application/json\" },\n});\n```\n\nA header written by hand also works when it matches the template exactly.\n`request` is part of the provider's identity, like `plain()` and `raw()`:\nadding or changing it means existing accounts must be connected again.\nBodies over 1 MiB and streamed bodies are not searched; a handle in one is sent\nas the handle, never the value.\n\nSome accounts are connected through an OAuth client the Executor instance\nprovides. Their credentials are always handles, `plain()` and `raw()` do not\napply, and `request` is replaced by the instance's own header: send\n`account.headers()`. The token goes only to the instance's hosts that the\nprovider also declares, so a provider without `hosts` sends it nowhere. A handle\nof such an account anywhere but that header is refused.\n\n## Check an account\n\nGive a provider a `health` function so Executor can tell whether a saved account\nworks before an agent's tool call fails. Make one safe authenticated read with no\nside effects, such as the service's current-user endpoint. Returning passes.\nReturning `accountInfo` also names the upstream account; Executor offers it as the\naccount's name and shows it beside the account. Every field is optional:\n`externalId`, `displayName`, `username`, `email`, `avatarUrl` and `profileUrl`.\n\n```ts\nimport { ProviderError, decodeJson, defineProvider, object, secrets, string } from \"apps\";\n\nconst User = object({ id: string(), username: string(), name: string(), email: string() });\n\nconst vercel = defineProvider({\n name: \"Vercel\",\n auth: {\n apiKey: secrets({\n label: \"API token\",\n fields: object({ token: string({ minLength: 1 }) }),\n }),\n },\n async health({ account, fetch, signal }) {\n const response = await fetch(\"https://api.vercel.com/v2/user\", {\n signal,\n headers: { Authorization: `Bearer ${account.fields.token}` },\n });\n // Vercel answers an unknown or revoked token with 403 and `invalidToken: true`.\n if (response.status === 403 && (await response.json()).error?.invalidToken === true)\n throw new ProviderError({ reason: \"unauthorized\", status: 403 });\n const { user } = await decodeJson(response, object({ user: User }));\n return {\n accountInfo: {\n externalId: user.id,\n displayName: user.name,\n username: user.username,\n email: user.email,\n },\n };\n },\n});\n```\n\n`account` is typed from `auth`; with several methods, switch on `account.method`.\nA failed `decodeJson` status is classified for you: 401 means the credentials were\nrefused, 429 and 5xx mean the service is unavailable. Otherwise throw\n`new ProviderError({ reason, status })` with the reason the service's evidence\nsupports:\n\n| `reason` | Use it when | Check status |\n| -------------- | ---------------------------------------------------------------- | ---------------------- |\n| `unauthorized` | the service refused the credentials | `credentials_rejected` |\n| `forbidden` | explicit evidence of a missing permission (`insufficient_scope`) | `forbidden` |\n| `rate_limited` | the service is limiting requests | `upstream_unavailable` |\n| `unavailable` | a server error or outage | `upstream_unavailable` |\n| `rejected` | the service refused without saying why, such as a bare 403 | `check_failed` |\n\nA bare 403 is not enough for `forbidden`. Services that answer a bad token with\nsomething other than 401, as Vercel does, need an explicit `unauthorized`. Tool\ncalls that fail with `rate_limited` or `unavailable` tell the agent to retry\nlater. `ProviderError` carries only its reason and optional HTTP status, never a\nmessage.\n\nDecode only the fields the check reads; `object()` drops the rest. A field the\nservice may return as `null` fails both `string()` and `string().optional()`,\nwhich accepts only a missing field. There is no nullable helper, so declare it\nwith `json()` and use it only when it is a string. Each `accountInfo` value must\nbe a non-empty string of at most 255 characters, and its URLs must be http(s);\nan invalid value fails the check, so leave such fields out:\n\n```ts\nconst { user } = await decodeJson(\n response,\n object({ user: object({ id: string(), name: json() }) }),\n);\nconst name = typeof user.name === \"string\" && user.name !== \"\" ? user.name : undefined;\nreturn {\n accountInfo: { externalId: user.id, ...(name === undefined ? {} : { displayName: name }) },\n};\n```\n\nTo tell the user why the check failed, throw an ordinary `Error` with a message written for them.\nThe account form shows it after \"Couldn't verify this API token:\". Read the service's documented\nerror fields to choose the message; do not copy a response body, URL or credential into it.\nExecutor replaces the checked credentials if they appear, and shortens long messages.\n\n```ts\nif (response.status === 403 && (await response.json()).error?.code === \"missing_scope\")\n throw new Error(\"This token lacks the accounts scope. Create a token with accounts:read.\");\n```\n\nAny error or a timeout means the check could not verify the account.\nExecutor never treats that as bad credentials. The check also receives `deadline`, the time in\nepoch milliseconds when Executor stops waiting for it. A check still running then fails without a\nmessage, so a check that waits on its own timer should end before it to say why.\n\nAccount forms run the same check on entered credentials before saving them, so the user sees\nwhether they work, and the name they belong to, before connecting.\n\nFor an MCP server, use `mcpHealth` from `apps/mcp` instead of a REST or GraphQL\nread: `health: (check) => mcpHealth(check, { url, headers: headers(check.account) })`.\nIt takes the account, `signal` and `deadline` from the check context; see\n[integrations.md](integrations.md#check-an-mcp-account). It verifies an account\nonly on a server that refuses requests without credentials. On a server that\nanswers anyone, it reports that it could not verify the account.\n\nEach app checks with its own `health` function, so two apps can verify the same\naccount differently. Adding or editing `health` does not change the provider's\nidentity or disconnect accounts; it only makes earlier results outdated.\n\n## Tell users where to get credentials\n\nThe connect form shows what you write about each field and method. Give every\nfield a `description` first: where to get the value, with a link to the page\nthat shows or creates it, and what it looks like. The form shows it under the\ninput, so the link sits beside the field it is for. `title` replaces the\nfield's name as its label. Give a `secrets` method a `guide` only for what no\nsingle field owns: prerequisites, setup that spans fields, or warnings. It\nreplaces the form's generic \"Get these credentials from your Jira account\nsettings.\" line:\n\n```ts\nconst jira = defineProvider({\n name: \"Jira\",\n hosts: [\"*.atlassian.net\"],\n auth: {\n token: secrets({\n label: \"API token\",\n guide: `\n Sign in as the Jira user the app acts as before you create the token.\n Atlassian shows a new token once, so copy it before you close the page.\n `,\n fields: object({\n email: plain(string({ description: \"The address you sign in to Jira with.\" })),\n token: string({\n title: \"API token\",\n description:\n \"Create one under [API tokens](https://id.atlassian.com/manage-profile/security/api-tokens). Starts with `ATATT`.\",\n }),\n }),\n request: ({ email, token }) =>\n header(\"authorization\", t`Basic ${base64(t`${email}:${token}`)}`),\n }),\n },\n});\n```\n\n`number()` and `boolean()` take the same `title` and `description`. For OAuth,\n`clientGuide` explains where to create an OAuth client at the service. The form\nshows it when someone enters a client: after Executor's own line and the\nredirect URL to copy, before Client ID:\n\n```ts\noauth2({\n authorizationUrl: \"https://auth.example.com/authorize\",\n tokenUrl: \"https://auth.example.com/token\",\n scopes: [\"reports:read\"],\n clientGuide:\n \"Create an app under [Developer settings](https://example.com/settings/apps) and choose **Web application**.\",\n});\n```\n\nHelp text is Markdown; only `title` is plain text. Write code blocks with `~~~`\nfences, so a template literal needs no escaped backticks. Executor removes the\nindentation every line shares, so an indented template literal is fine. A deploy\nfails with `VersionBuildFailed` at the `declaration` stage, naming the\nrequirement, provider, method and field, when a link is not an absolute `https:`\nURL, the text has raw HTML or an image, a `guide` or `clientGuide` is over 4,000\ncharacters, or a `description` is over 1,000. A bare `www.example.com` counts as\nan `http:` link, so write `https://`.\n\nSetup help belongs to your app's version, not to the provider: editing it never\nchanges the provider ID or disconnects accounts, and another app may explain the\nsame provider differently. Agents read it in the app's requirements\n(`apps.get`), so explain setup in chat from it before sending a connection link.\n\n## OAuth sign-in\n\nPrefer discovery. When the service publishes OAuth authorization server or OpenID\nmetadata, point `discover` at its issuer or MCP URL. Executor then reads the real\nissuer, endpoints and supported client authentication, and checks the service's\nresponses against them:\n\n```ts\nconst searchConsole = defineProvider({\n name: \"Google Search Console\",\n auth: {\n oauth: oauth2({\n discover: \"https://accounts.google.com\",\n scopes: [\"https://www.googleapis.com/auth/webmasters\"],\n // Google issues refresh tokens only when asked for offline access.\n authorizationParams: { access_type: \"offline\", prompt: \"consent\" },\n }),\n },\n});\n```\n\nCheck for metadata at `/.well-known/oauth-authorization-server` or\n`/.well-known/openid-configuration`. The issuer is often the host of the\nsign-in page, not the token URL: Google signs in at `accounts.google.com` and\nissues tokens from `oauth2.googleapis.com`. List the scopes the app needs;\ndiscovery only fills them in when the service advertises scopes for the resource.\n\nWhen the service publishes its metadata at a nonstandard location, keep `discover`\npointing at the MCP resource or issuer and declare the exact document URL:\n\n```ts\noauth2({\n discover: \"https://mcp.example.com\",\n authorizationServerMetadataUrl: \"https://auth.example.com/oauth/.well-known/openid-configuration\",\n scopes: [\"reports:read\", \"offline_access\"],\n});\n```\n\nThe host still checks the document's `issuer` against the issuer discovered from\n`discover`. It applies its network policy and never follows a redirect or falls\nback to another document when the explicit URL fails. The endpoints come from the\nvalidated metadata; the issuer check cannot be disabled.\n\nFor MCP discovery, explicit `scopes` take precedence over the resource's Bearer\nchallenge scope, which takes precedence over its protected-resource metadata\n`scopes_supported`. Authorization-server supported scopes are not requested\nwholesale. Keep `openid`, `profile` and `email` only when the service or app needs\nidentity; an access-token-only app can declare its resource scopes explicitly.\nThe host adds `offline_access` when advertised and `scopes` is omitted.\n\nSign-in sends one RFC 8707 resource indicator on authorization, exchange and\nrenewal: `resource` when declared, otherwise the one the protected-resource\nmetadata names. `accounts.oauthSetup` reports it as `resource: { value, source }`;\n`value` is null when it sends none, and `source` says why. When the service\nrefuses it (`resource_rejected`) or refuses the token it issued, declare the\nidentifier the service documents, or `resource: null` to send none. Declaring the\nvalue discovery already found changes nothing. With `source: \"operator\"` the\ninstance's own OAuth client sets it, and only the instance administrator can\nchange it; the provider's `resource` does not apply. With\n`source: \"inferred_scope_audience\"` Executor sent none because the authorization\nserver's metadata looks like Microsoft identity platform v2.0's, which takes the\naudience from the scopes. That is Executor's guess from the service's metadata;\nif the service refuses the sign-in, declare `resource`.\n\nStandard discovery requires the metadata's `issuer` to equal the issuer used to\nconstruct the well-known metadata URL.\nMicrosoft Entra ID's multi-tenant `common` and `organizations` endpoints publish\nthe template `https://login.microsoftonline.com/{tenantid}/v2.0` instead, which\ndiscovery accepts. Its `consumers` endpoint names a different issuer in its\nmetadata and fails the check: declare its endpoints and issuer.\n\n`authorizationParams` adds service-defined parameters to the sign-in request,\nfrom the service's docs. Use it for settings such as offline access or a\nservice's own selector, for example `{ providers: \"...\" }`. It works with\n`discover` and with declared endpoints. Executor sets the protocol parameters\nitself, so these names are rejected: `response_type`, `client_id`,\n`redirect_uri`, `state`, `scope`, `code_challenge`, `code_challenge_method`,\n`nonce`, `resource`, `request` and `request_uri`. Use `scopes` and `resource`\nfor those settings instead.\n\nDeclare `authorizationUrl`, `tokenUrl` and `scopes` only when the service\npublishes no metadata. Then set `tokenEndpointAuthMethod` to what its docs say\nthe token endpoint accepts (`client_secret_basic`, `client_secret_post`, or `none`\nfor public PKCE clients), and `issuer` when the docs name one, so Executor can\ncheck the service's `iss` responses. Without `issuer` those checks are skipped.\nDo not copy endpoints from an OpenAPI `oauth2` scheme without checking the\nservice's docs; those schemes carry no issuer or client authentication.\n\nA declared `authorizationUrl` may include a query string, such as\n`https://auth.example.com/authorize?tenant=acme`; Executor keeps it and adds the\nprotocol parameters. Prefer `authorizationParams` for service settings. Declare\neach parameter in one place: a name in both the URL and `authorizationParams`,\nor a protocol parameter in the URL, fails the build.\n\nSome services read OAuth requests or answer them differently from the\nstandard. Declare the difference from the service's docs; do not work around it\nin app code:\n\n- `scopeSeparator: \",\"` joins `scopes` with commas on the sign-in request, as\n Linear requires. The default is a space.\n- `tokenRequestFormat: \"json\"` sends token requests (sign-in, renewal and\n client credentials) as a JSON object, as Atlassian, ClickUp and Notion\n require. The default is a form.\n- `tokenResponse: { path: \"authed_user\" }` reads the grant from a nested member\n of the token response when the top level has no access token or scope.\n Slack returns user tokens there. Comma-separated scopes in that member become\n space-separated.\n- `pkce: false` signs in without PKCE, for declared endpoints whose token\n endpoint refuses a confidential client's `code_verifier`. LinkedIn answers\n `invalid_client` to it, which looks like a wrong secret. It requires a secret\n `tokenEndpointAuthMethod`.\n\n```ts\noauth2({\n authorizationUrl: \"https://slack.com/oauth/v2/authorize\",\n tokenUrl: \"https://slack.com/api/oauth.v2.access\",\n scopes: [],\n // Slack names user scopes in its own parameter.\n authorizationParams: { user_scope: \"search:read,channels:history\" },\n tokenResponse: { path: \"authed_user\" },\n});\n```\n\nA connected account keeps the settings it signed in with. These settings,\n`pkce` included, are part of the provider ID, so changing one after users\nconnect gives a new provider: accounts connected before can't be reconnected\ninto it, and users must connect a new account. A sign-in in progress when the\napp is redeployed fails when it saves, and the user starts it again.\n\nWhen the service documents an RFC 7009 token revocation endpoint, also declare\n`revocationUrl`. Executor calls it when a user deletes the account, so the\nprovider stops honoring the saved token. Revocation is best effort and never\nblocks the deletion. Discovered methods use the server's advertised\n`revocation_endpoint` and do not accept `revocationUrl`.\n\nExecutor renews tokens before they expire. An `expires_in` of zero is treated\nlike an omitted one: the token is used until the service rejects it. A tool call\nfails with `OAuthReconnectRequired` only when the token endpoint refuses the\nrenewal, such as with `invalid_grant`, or a renewed ID token names a different\nuser; reconnect that same account. During a\nservice outage, or when its response cannot be used, the call fails with the\nretryable `OAuthRenewalFailed` and the saved sign-in is kept, so retry later\ninstead of reconnecting or changing the provider.\n\nFor service-to-service access without a user's sign-in, declare the client\ncredentials grant with `tokenUrl` (or `discover`), `scopes`, and the client\nauthentication the token endpoint accepts: `client_secret_basic`,\n`client_secret_post`, or `client_secret_basic_raw` for a service that wants the\nBasic credentials without form encoding.\n\n```ts\nconst reports = defineProvider({\n name: \"Reports\",\n auth: {\n machine: oauth2({\n grant: \"client_credentials\",\n tokenUrl: \"https://auth.example.com/oauth/token\",\n scopes: [\"reports:read\"],\n tokenEndpointAuthMethod: \"client_secret_basic\",\n }),\n },\n});\n```\n\nThe connect page asks for the client ID and secret and exchanges them at once;\nthere is no browser redirect. App code reads `account.fields.access_token`.\nExecutor exchanges the client credentials again when the token expires; this\ngrant has no refresh token.\n\nDeploy the source, then request a connection for its account requirement.\nUse `appAccounts.userConnect` for a user requirement and\n`appAccounts.appConnect` for one of the app's own requirements. The examples\nbelow use the **local** API; hosted calls add `organization` to `path`, as shown\nin [deploy.md](deploy.md).\nHosted calls derive owner and subject from the caller. Local assigns owners\nitself: apps you create belong to `local`, whatever owner you send, and a\nconnected account belongs to its app's owner, so a connection request takes no\nowner. Read the operation signatures with `tools.search` before calling them:\n\n```js\nconst executor = tools.executor;\nconst app = await executor.apps.get({ path: { app: \"\" } });\nreturn await executor.appAccounts.userConnect({\n path: { app: app.id, requirement: \"vercel\" },\n body: {},\n});\n```\n\nGive the returned URL to the user. Executor renders the provider's credential\nform or OAuth sign-in. Never ask users to paste secrets into chat, inspect their\nfiles for tokens, or put credentials in app source or execute code.\nAfter the user finishes, check the request in a new execute call:\n\n```js\nconst connection = await tools.executor.accountConnections.get({\n path: { connection: \"\" },\n});\nreturn connection.state; // { status: \"completed\", account } means setup finished.\n// A pending state with `failure` holds the error the user saw, including the service's own error.\n```\n\nCloud and self-host have no `accountConnections`; read the request with\n`accounts.connection`, passing `path: { organization, connection }`. Its\nresult also has `url` and `redirectUri`. On every host the connect tools\nrequire `body`; send `body: {}` when there is nothing to put in it.\n\nCompleting a request saves the account and links it to the requirement in one\ntransaction: for the caller for a user requirement, for everyone for an app\nrequirement. Only people who can edit the app can request one for an app\nrequirement; completion is refused with `AccountConnectionRefused` when the\nperson may no longer link it. If the requirement changed during sign-in, completion returns\n`AccountConnectionTargetChanged` without saving credentials; request a new link.\nA pending link whose app was redeployed with a different provider for that\nrequirement, such as an API key instead of OAuth, returns the same error when read\nor opened. Request a new link after such a deploy.\n\nEvery request names an app requirement; there are no standalone connections. To\nreplace the credentials of an account the app already uses, pass its ID as\n`account` in the body. The account keeps its ID, name and links:\n\n```js\nreturn await tools.executor.appAccounts.userConnect({\n path: { app: \"\", requirement: \"vercel\" },\n body: { account: \"\" },\n});\n```\n\nRequests expire after thirty minutes. Cancelled or expired requests need a new link. Do not wait or busy-poll\ninside execute.\n\nUse `accounts.list({ query: { owner: \"local\", provider } })` to find compatible\nsaved accounts first when appropriate. `owner` is required; listing never spans\nowners.\n\nEach scope has the same tools, `appAccounts.user.*` for the caller's own links\nand `appAccounts.app.*` for the app's, each taking\n`path: { app, requirement[, account] }`, plus `organization` on hosted:\n\n- `list` (no `requirement`) lists the scope's links.\n- `get` lists a requirement's linked accounts, then the other accounts of its\n provider the caller could link.\n- `link` links an account to the requirement, `unlink` removes the link and\n keeps the account.\n- `connect` connects a new account, as above.\n\nFor a plain requirement, linking another account replaces the one before; the\nprevious account stays saved. For `.many()`, linking adds one. Linking fails\nwith `RequirementMismatch` when the app has no such requirement in that scope or\nthe account's provider differs. App links need edit access to the app and, to\nlink, use of the account. The same account may be linked in both scopes. An\naccount linked to an app for everyone cannot be deleted until it is unlinked\n(`AccountLinkedToApp`).\n\nAn app whose requirement has no linked account exposes no tools. Connect or\nlink the account, then start a new execution to discover or call its tools.\n\nAn account has `id`, `method`, and typed `fields` inside app code. It exists\nindependently of the app and can be linked to several apps with the same\nnormalized provider definition. Changing that definition can change its provider\nID and account compatibility. Owner values are lookup metadata, not access\ncontrol; the current local bearer key allows access to the entire local instance.\n\n## Two accounts and multiple tools\n\nCalls never choose accounts. A plain user requirement uses the one account the\ncaller linked to it, and an app requirement the account linked for everyone; a\ncall that passes `$accounts` fails with `AccountChoiceUnsupported`, and one with\nno account fails with `AccountRequired`, which says whether to link one or ask\nsomeone who can edit the app to link one. Linking a second account to that\nrequirement replaces the first.\n\nTo use two accounts of one provider side by side, either declare a collection\nslot or use two apps. A collection slot,\n`const requirements = { user: { accounts: { mailboxes: gmail.many() } } }`, uses\nevery linked mailbox; in app code, `ctx.user.accounts.mailboxes` is an array,\nempty when none is linked. `.many()` works under `app` too, with every account\nlinked for everyone.\nTo use fewer, unlink some. Two apps come from `apps.copy`: each is independent, with\nits own source, Git history, links and an empty database.\n\nRequirements apply to the whole app. A plain provider requires exactly one\naccount; optional single-account requirements are not implemented.\n\n`defineApp(requirements, definition)` accepts a plain object for static declarations.\nEach handler receives fresh accounts, traced fetch and cancellation in `ctx`.\nExternal handlers can share types from a separate requirements module without\nimporting the final app. `AppContext` describes a handler's\ncontext without its database session.\n\nAn async factory passed to `defineApp` runs afresh during inspection and calls.\nIt can return tools based on its accounts and upstream state. It also runs\nwithout a caller for the app's background work, such as an app schedule, so its\n`ctx.user` may be undefined: write `ctx.user?.accounts.service ?? []` for a\n`.many()` requirement, or return no tools without a caller. Keep\nwrites inside tool handlers; do not register webhooks or perform mutations in\nthe factory. Build output retains code, not a permanent tool catalog.\n", "app-authoring/deploy.md": "## Local source with the CLI\n\nUse this path when you can run shell commands and `executor apps --help` works.\nIf the command is missing, or it has no `framework` subcommand, install the\ncurrent release. An older CLI can also fail against a newer host with `NotFound`\nor `UnexpectedResponse`. Install it with npm, or without Node on macOS or Linux\nwith the install script:\n\n```sh\nnpm i -g executor@beta --include=optional\ncurl -fsSL https://executor.sh/docs/install.sh | sh\n```\n\nThe `beta` tag is required. The `latest` tag installs the previous Executor,\nwhich has no `apps` command. Installing globally changes the user's machine,\nso ask first if that has not been approved.\n\nKeep one directory per app with `index.ts` and `package.json` at its root. The\nCLI sends the whole directory, skipping `.git`, `node_modules` and `.DS_Store`.\nKeep scratch files out of it; files missing from the directory are deleted\nfrom the app. `--files` also accepts a JSON file holding an array of\n`{ \"path\", \"content\" }` objects.\n\nCode, every file outside `ui/public/`, is UTF-8 text: at most 4,096 files and\n16 MiB of file contents, on every host. Each of the app's own JavaScript or\nTypeScript files is at most 2,000,000 bytes (2 MB). JSON files are outside this\nlimit, so keep a large document such as an OpenAPI description in a `.json`\nfile. The host checks this limit while it builds, not the CLI before uploading:\na build that reaches a larger file of the app's own fails with\n`VersionBuildFailed` at the `source` stage, naming the file, its size and the\nlimit; no app or version is created. Files inside npm packages the app imports\nare not limited and are still compiled. On self-host and the local server a\nbuild compiles on the thread that runs apps, so a large package file delays\nevery app call, and any other request served from that thread, while it\ncompiles: a 3,000,000-byte module of dense code took about 1.2 seconds in our\ntests. Files under `ui/public/` are served as\nthey are and may be binary, such as images, fonts, audio, WebAssembly or a\nprebuilt bundle: at most 10,000 files, each at most 32 MB and 1 GB in total.\nBuilds never load them; each deploy copies them to the host's own storage.\nThe CLI checks the other limits before it uploads anything. A source over them\nfails with `SourceRejected`, which states the count or size and names the\nlargest files; a binary file outside `ui/public/` fails the same way and is\nnamed. The host rejects a larger source with `SourceError` and HTTP 413.\n\nA directory of at most 16 MiB in total is sent as files, with binary files as\nbase64. A larger one is pushed with Git: `executor apps create`, `commit` and\n`deploy --files` do this themselves, send only the files the app does not\nalready hold, and split large uploads into several pushes. Deploy a directory\nin one step with `executor apps deploy --app --files ./app`.\n\nReading source lists a `ui/public/` file that is not UTF-8 text, or does not\nfit beside the rest of the source, as `{ \"path\", \"object\", \"size\" }` without\nits bytes. Send that entry back unchanged in a commit to keep the file. Through\n`appManagement.commit`, send a small binary file as\n`{ \"path\", \"content\": \"\", \"encoding\": \"base64\" }`. `executor apps source\n--app --out ./copy` writes every file, binary files included, and a\nGit clone has them all.\n\nRead these docs with\n`executor skills --app executor --name app-authoring --file deploy.md`.\n\nCommands use `--host`, then `EXECUTOR_HOST`, then the host the CLI signed in to\nlast. Without any of them, they use the local background Executor, starting it\nif it is not running, and need no API key. A set\n`EXECUTOR_API_KEY` is sent in place of the background Executor's own\ncredential, so it must be that server's current key. A `--host` that names\nanother local server, such as `http://127.0.0.1:4400`, needs that server's API\nkey in `EXECUTOR_API_KEY`; if the variable is unset, ask the user to set it, and\ndo not search files for it. For hosted Executor, run\n`executor apps login` once; add `--host ` for a self-hosted Executor.\nIt prints a link and a code and waits; ask the user to open the link and\napprove the code. Later commands use that host without `--host`.\n`--organization` defaults to the organization you signed in to.\n\nA command that fails exits with status 1. Its standard error states the\nmessage, the error code, the HTTP status when the host answered, and the\nhost's recovery: `Next step` for the user and `For agents` for you. When\nstandard output is not a terminal, the command also prints the same failure\nthere as JSON, so scripts can read it:\n\n```json\n{\n \"error\": {\n \"code\": \"VersionBuildFailed\",\n \"status\": 422,\n \"message\": \"App build failed at the declaration stage: ...\",\n \"details\": {\n \"stage\": \"declaration\",\n \"location\": { \"file\": \"index.ts\", \"line\": 3, \"column\": 7 }\n }\n }\n}\n```\n\n`recovery` holds `action` and `instructions` when the error declares them;\nfollow the instructions. `details` holds the error's other fields. When a newer\nCLI release exists, `update` says so with the install command, and standard error\nends with the same line; update the CLI before retrying.\n\nA new app is a directory with `index.ts` and a `package.json` that pins the\nexact `apps` version the host runs. `executor apps framework` prints that\nversion. Create the app from both files, then deploy its first commit.\n`mkdir` and `index.ts` run first. If `executor apps framework` fails, the `&&`\nchain stops before it writes `package.json` or creates the app; install the\ncurrent release as above and run the chain again:\n\n```sh\nmkdir hello\ncat > hello/index.ts <<'EOF'\nimport { defineApp, object, query, router } from \"apps\";\n\nexport default defineApp({}, async () => ({\n tools: router({\n hello: query({ description: \"Say hello\", input: object({}) }, async () => ({ message: \"Hello\" })),\n }),\n}));\nEOF\nversion=\"$(executor apps framework | jq -er .version)\" &&\n printf '{\"name\":\"hello\",\"private\":true,\"type\":\"module\",\"dependencies\":{\"apps\":\"%s\"}}\\n' \\\n \"$version\" > hello/package.json &&\n executor apps create --name \"Hello\" --files ./hello # prints the app, including its id\nexecutor apps source --app | jq -r .revision.commit\nexecutor apps deploy --app --commit \n```\n\n`hello` takes no input. A handler that does takes the context first and the\nparsed input second, `async (_ctx, { name }) => ...`; see [tools.md](tools.md).\n\nTo work on an existing app, fetch its source into a directory.\n`executor apps list` shows app IDs:\n\n```sh\nexecutor apps source --app > /tmp/source.json\njq -r .revision.commit /tmp/source.json # the commit your edits are based on\nnode -e 'const fs=require(\"fs\"),p=require(\"path\");for(const f of JSON.parse(fs.readFileSync(0)).files){const t=p.join(process.argv[1],f.path);fs.mkdirSync(p.dirname(t),{recursive:true});fs.writeFileSync(t,f.content)}' ./hello < /tmp/source.json\n```\n\nEach iteration saves the directory as a commit and deploys it:\n\n```sh\nexecutor apps commit --app --files ./hello \\\n --expected --message \"Add search\" > /tmp/commit.json\njq .removed /tmp/commit.json # { count, paths }: files this save deleted\njq -r .revision.commit /tmp/commit.json\nexecutor apps deploy --app --commit \n```\n\nThe commit prints the new revision; its `commit` is the next `--expected`.\n`removed` gives how many files the save deleted and at most 100 of their paths. If it\nnames a file you meant to keep, it is still in the `--expected` commit\n(`git show :` in a clone): restore it and commit again before\ndeploying. A path cannot be both a file and a folder (`a` and `a/b`); such a\nsave fails with `SourcePathConflict` and saves nothing.\n`--expected` is the commit your edits are based on. If someone else saved in\nbetween, the commit is rejected. Read the source again and reconcile before\nretrying. A commit alone does not change the running app.\n\nOn hosted Executor you can also use Git. `executor apps git --app `\nprints the clone URL. Clone with the credential helper configured in the clone, so later\npushes and fetches use it too:\n\n```sh\ngit clone -c credential.helper= -c credential.helper='!executor apps credential' \\\n -c credential.useHttpPath=true \n```\n\nThe empty `credential.helper` stops other helpers, such as the macOS keychain, from keeping\ncopies of the helper's short-lived tokens. In a clone made without it, run\n`git config credential.helper ''` and then\n`git config --add credential.helper '!executor apps credential'`.\n\nPushes save source but do not deploy it. Deploy the pushed commit with\n`executor apps deploy --app --commit \"$(git rev-parse HEAD)\"`.\nPushes stream to the repository, so Executor sets no push size limit of its own. On\nhosted Executor the repository host accepts files up to 32 MB each and repositories up\nto 1 GB, and a single push of more than about 64 MiB of packed data currently fails;\npush a larger history in several pushes. The CLI does this for you. A pushed source\nover the limits above cannot be read or deployed. The limits apply to the commit being\nread, not to the history before it.\n\nType-check locally before deploying. A deploy compiles the app and reports\nbuild errors, but it does not type-check. The framework is published to npm as\n`apps` under the `beta` tag. The `latest` tag and the `1.0.0-beta` versions are\nunrelated packages, so install only the exact version pinned in `package.json`,\nnever `apps@latest` or an unpinned `apps`:\n\n```sh\ncd hello\nnpm install --no-package-lock\nnpx -y -p typescript@7 tsc --ignoreConfig --noEmit --strict --skipLibCheck \\\n --module nodenext --moduleResolution nodenext --target es2022 index.ts\n```\n\nFor a React UI, declare `@types/react@19` and `@types/react-dom@19` in\n`devDependencies`, and declare the asset types the UI imports in\n`ui/assets.d.ts`. Images and fonts import as URL strings; declare other\nextensions, such as `*.png`, the same way:\n\n```ts\ndeclare module \"*.css\";\ndeclare module \"*.svg\" {\n const url: string;\n export default url;\n}\ndeclare module \"*.woff2\" {\n const url: string;\n export default url;\n}\n```\n\nThe `live-inbox` example already has the type packages and `ui/assets.d.ts`.\nAn example from an older `apps` release may lack them and import `./schema.ts`;\nadd them and change those imports to `.js`. Then add `--jsx react-jsx`, the UI\nentry and the declaration file:\n\n```sh\nnpx -y -p typescript@7 tsc --ignoreConfig --noEmit --strict --skipLibCheck \\\n --module nodenext --moduleResolution nodenext --target es2022 \\\n --jsx react-jsx index.ts ui/main.tsx ui/assets.d.ts\n```\n\nExecutor offers no type check of its own, over MCP or otherwise. Without npm\naccess, check the source against `framework.describe` signatures, deploy, and\ntell the user it was not type-checked.\n\nNeither this check nor the build reads `tsconfig.json`; `--ignoreConfig` skips\nit. A `tsconfig.json` is still useful for editors, but its `include` does not\nadd files here, so name the declaration file in the command.\n\nWrite relative imports as NodeNext requires: `import { provider } from \"./provider.js\"`\nloads `provider.ts`, in server and UI files alike. The build fails at an import\nthat matches no deployed file. Failed builds report the source file and line\nwhen known.\n`node_modules` is never uploaded. Keep lockfiles out of the directory. Verify\nthe running behavior as described in [SKILL.md](SKILL.md). After a deploy,\nstart a new `execute` to discover the app's tools.\n\n## Deploy through MCP\n\nMCP exposes `skills` for these docs and `execute` for programs. Model and browser modes also\nexpose `resume` for pending approvals and tool input.\nBoth local and hosted expose an Executor management app. First discover its\nexact signatures with `execute`:\n\n```js\nreturn await tools.search({ query: \"Executor\" });\n```\n\nSearch returns `items` with the exact callable `path`, the first line of the\n`description` and the `input` type on one line. `namespaces` lists each app,\nwith its linked accounts, once. A page holds at most `limit` items, 10 by\ndefault, and ends sooner at its size budget. `remaining` counts the matches\nafter it; call `tools.search(next)`, with `next` as the whole input, for the\nfollowing page, until `next` is null. An item with `inputTruncated` has a longer\ninput type than search shows.\n\nRead the whole signature, with the output type, and the whole description before\nrelying on a result's shape:\n\n```js\nreturn await tools.search.describe({ paths: [\"\"] });\n```\n\nA path that names no tool is returned in `missing` with the closest paths.\nHosted exposes tools generated from its OpenAPI spec under `tools.executor`.\nSelf-host serves the same API as Executor Cloud, so follow the hosted examples\nthere; the local examples are for Executor on the user's own machine.\nDiscover and call `context.get({})` to read the organization approved\nfor this MCP connection. Its result has `organization`, `slug` and `role`.\nUse `organization` explicitly in management calls. Never guess `me` or `default`,\nand do not search local files for an organization or credentials.\n\n```js\nreturn await tools.executor.apps.deploy({\n path: { organization: \"\" },\n body: {\n name: \"Hello\",\n files: [\n { path: \"index.ts\", content: \"\" },\n { path: \"package.json\", content: \"\" },\n ],\n },\n});\n```\n\nFor an app you will edit, use the create, commit and deploy workflow. Local and hosted management\napps generate `appManagement.create`, `appManagement.source`,\n`appManagement.commit`, `appManagement.deploy`, and\n`appManagement.copy` from the serving OpenAPI contracts. Discover\ntheir exact signatures first. They use ordinary app IDs, with route parameters\nunder `path` and request payloads under `body`.\n\nCreate always takes complete files: `index.ts`, such as the `hello` app above,\nand a `package.json` that pins the exact `apps` version `framework.release`\nreturns:\n\n```js\nconst executor = tools.executor;\nconst path = { organization: \"\" };\nconst { version } = await executor.framework.release({ path });\nconst files = [\n { path: \"index.ts\", content: \"\" },\n {\n path: \"package.json\",\n content: JSON.stringify({\n name: \"hello\",\n private: true,\n type: \"module\",\n dependencies: { apps: version },\n }),\n },\n];\nconst app = await executor.appManagement.create({ path, body: { name: \"Hello\", files } });\nreturn await executor.appManagement.deploy({ path: { ...path, app: app.id }, body: { files } });\n```\n\nLocal has no organization: omit `path` for `framework.release` and create, and\npass `path: { app: app.id }` to deploy.\n\nA new app runs only once deployed; its tools and `appUi.location` answer only\nafter the first deploy. Deploy the same `{ files }` straight after create,\nas above, or read `appManagement.source` and deploy the commit create saved\nwith `body: { commit: source.revision.commit }`.\n\nTo change the app, read its working source and save the complete file list with\n`expected: source.revision.commit` and a commit message. Deploy the\n`revision.commit` that `appManagement.commit` returns with `body: { commit }`,\nnot the `expected` commit you read before editing, or deploy a complete file\nlist with `body: { files }`. Supply exactly one. `appManagement.deploy` takes\nthe app ID in `path` and does not accept `name`, `expected` or\n`expectedVersion`. Commits and Git pushes do not change the running version. A copy is another normal app with fresh Git history and no accounts or app data.\nRunning apps copy their deployed source and deploy the copy. Unfinished apps copy\ntheir working files and remain undeployed.\n\nPublishing reads a scoped `name` and optional `description` from `package.json`.\nThe scope is the organization's current one, `.executor.community`, such as\n`@acme.executor.community/notes`. After the organization is renamed, change the\nscope to the new slug before publishing again; the listing keeps its label.\nThe public listing points to the selected Git commit. Normal npm `dependencies`\nare supported; `version` is optional author metadata and does not select an\nExecutor release. Apps cannot depend on other Executor apps; include the source\nan app needs directly.\n\nCopy a public app with `appManagement.copy`, using `from: { package, commit }`\nand a new `name`. Owned apps use the same operation with `from: { app }`. This creates an independent app and Git repository with empty\naccount selections. Republishing or unpublishing the original does not change\ninstalled copies. A changed listing must be reviewed again before installation.\nLocal and self-host consume the public registry; publish on the cloud host after\npushing the source there. Agents edit their owned copy through normal app tools.\n\nHosted deploy currently creates a new named app and returns the app directly.\nIt rejects an existing name. Use source commits and deploy by app ID for edits.\nAfter deploying, start a new execute to discover and call its tools.\nOther hosted operations include `organization.inventory`, `organization.catalog`,\n`apps.install`, `apps.importCustom`, `apps.get`, `appUi.location`, `appAccounts` operations, and\n`apps.remove`. Always read their discovered signatures before calling them.\n\nFor hosted account setup, request a connection for the requirement. The host\nderives its owner and subject from the caller, and completing it links the new\naccount to that requirement. Use `appAccounts.userConnect` for a user\nrequirement, which links it for you, and `appAccounts.appConnect` for an app\nrequirement, which links it for everyone and needs edit access to the app:\n\n```js\nreturn await tools.executor.appAccounts.userConnect({\n path: { organization: \"\", app: \"\", requirement: \"vercel\" },\n body: {}, // required, even when empty\n});\n```\n\nTo use an account you already have, `appAccounts.userGet` (or\n`appAccounts.appGet`) lists the accounts you could link, and\n`appAccounts.userLink` (or `appAccounts.appLink`) links one.\n\nGive the returned `url` to the user. It opens Executor's signed-in browser form;\ncredentials and OAuth are completed there. Check progress with\n`accounts.connection`, passing `path.organization` and `path.connection`; a\nfailed sign-in leaves its error in `state.failure`.\n\nAccess depends on the app as well as the caller's role. Any member can deploy\na new app; it starts private, with the deployer as its creator. The creator and\norganization owners and administrators manage it: they rename it, activate a\nversion, change its audience, remove it, and connect or link its app\nrequirements with their own accounts. Using an app (calling\nits tools, opening its UI, `userConnect` and `userLink`) follows its audience: a\nprivate app only by its creator, even for administrators; a `groups` app by\nmembers of those groups; an `everyone` app by every member. Managing an app does\nnot grant its use. Every saved account is personal: only its owner uses or\nmanages it, and an app link is how one account serves every caller. An MCP connection limited to selected apps\ncan only find and run those apps' tools; deploying and other management calls\nneed a connection to all apps. The server rechecks the caller's grant, current\nmembership and these rules on every API call.\nThe management app's caller credential is never saved as an account.\n\n**The remaining management examples use the local product's API**, not\nself-host's.\nBoth management apps derive operations from their product OpenAPI contracts.\nOperation names use `_`; inputs use `path`, `query`, and `body`.\nRead discovered signatures because the two products have different routes.\nUse the returned app ID for API arguments and its name-derived slug for the agent namespace.\nSend the actual source string in `files[].content`.\n\n```js\nconst executor = tools.executor;\nreturn await executor.apps.deploy({\n body: {\n owner: \"local\",\n name: \"Hello\",\n files: [\n { path: \"index.ts\", content: \"\" },\n { path: \"package.json\", content: \"\" },\n ],\n },\n});\n```\n\nThe response contains `app` and `version`. Local creates every app under the\n`local` owner, whatever owner you send. Creating an app with the same name again\nfails with `AppNameTaken`. To deploy an existing app, use\n`body: { owner: app.owner, app: app.id, files }` or `body: { owner: app.owner, app: app.id, commit }`.\nDeploying activates the new build after it succeeds and does not save working\nsource. Use relative file paths such as `index.ts` and `lib/client.ts`.\n\nDiscovery is prepared at the start of each `execute`. In a **new** execution,\ncall the deployed app using its returned `app.slug`:\n\n```js\nreturn await tools[\"\"].hello({});\n```\n\nApp source and `execute` code run in different environments. App source can\nimport packages and use fetch. An `execute` program can call exposed tools and\ntransform data, but has no direct imports, fetch, filesystem or process APIs.\nDo not place `defineApp` declarations directly in execute code; deploy them as\nsource strings through `apps.deploy`.\n\n### Carry source as data\n\nWhen source comes from `framework.describe` or `appManagement.source`, transform\nits `files` in the same execution and pass them to create or commit. For a small\nedit, replace only the affected file content and retain the other files. Check\nthat the expected text exists before applying a text replacement. Do not print\nthe entire app and retype it to change one style or operation.\n\nThe `code-mode` skill's 65,536-character program limit counts source written\ninto the program, not source it reads with `appManagement.source`. When new\nfiles do not fit in one program, add them over several executions: each reads\nthe working source, adds some files and commits the complete list.\n\nIf you have a shell and the CLI, use the local CLI path above instead of\nserializing files into tool calls. Otherwise, for locally authored files,\ngenerate the `{ path, content }` array with a local\nscript and JSON serialization. Insert that serialized value as JavaScript data\nin the `execute` payload; keep it out of shell interpolation. JSON handles\nquotes, backticks, newlines and literal `${...}` without changing the source.\nDo not wrap arbitrary source in a manually constructed template literal.\nThe local script can prepare the payload, but remote `execute` cannot read a\nlocal path. Submit the actual contents through the available tool interface.\n\n## Updating a hosted app\n\nUse the shared commit and deploy workflow to edit an existing app. `appManagement.source`\nreads working Git source; `apps.source` reads immutable deployed source. Saving\none does not change the other. Read both when you need to compare pending edits\nwith the running app.\n\n```js\nconst executor = tools.executor;\nconst path = { organization: \"\", app: \"\" };\nconst source = await executor.appManagement.source({ path });\nconst entry = source.files.find((file) => file.path === \"index.ts\");\nif (!entry || entry.content.split(\"\").length !== 2) {\n throw new Error(\"Expected one match in index.ts; review the edit.\");\n}\nconst files = source.files.map((file) =>\n file.path === entry.path\n ? { ...file, content: file.content.replace(\"\", \"\") }\n : file,\n);\nconst saved = await executor.appManagement.commit({\n path,\n body: { expected: source.revision.commit, files, message: \"Update app\" },\n});\nif (saved.removed.count > 0) {\n throw new Error(\n `The save removed ${saved.removed.count} files: ${saved.removed.paths.join(\", \")}`,\n );\n}\nreturn await executor.appManagement.deploy({\n path,\n body: { commit: saved.revision.commit },\n});\n```\n\nCommit sends the complete file list; omitted files are deleted. The result's\n`removed` has their `count` and at most 100 of their `paths`; check it before\ndeploying, as above. A deleted file is still in `source.files`: add it back and\ncommit against `saved.revision.commit`. A stale\n`expected` returns `SourceError` with `reason: \"conflict\"`. Read working source\nagain and reconcile the edits before retrying. Deploying returns `{ app,\nversion }`, preserves the app ID and data, and never updates the Git branch.\nIt has no expected-active-version argument. Check the app's linked accounts\nafter changing account requirements; an account whose provider no requirement\nuses no longer applies.\n\nEvery call follows the active version, so nothing needs updating to pick up\nnew code. The next `execute` lists and calls the new tools. Activating a\nversion re-registers each webhook source's subscriptions on it in the\nbackground, usually within seconds, without blocking tool calls; the app's\nWebhooks tab shows their status. A manual (`setup`) subscription keeps its\ncallback URL, secret and setup fields while the activated version keeps the same\n`signingSecret` and accepts the same `state` fields; changing either needs a new setup. It also deletes the saved settings of schedules\nthe new version no longer declares.\n\n`apps.versions` lists retained versions. `apps.source` accepts an optional\n`query.version` to read a specific version. `apps.activate` requires\n`body: { version, expectedVersion }`, where `expectedVersion` is the\napp's current active version. A stale value returns `AppVersionChanged`.\nActivation only changes which code runs; it does not reverse app data or changes\nmade in external services. Source reads and deploys follow the\nhosted product’s access rules. Discover tools again in a new execute after changing code.\n\n`apps.rename` changes the app's name and the slug derived from it; the app ID,\naccounts, links and data stay. A new slug changes the agent namespace\n`tools.`, the Git clone URL and, on hosted, the page address\n`appUi.location` returns, so old addresses stop working. Local page addresses\nuse the app ID and do not change. No operation changes the slug alone.\n\n## Dependencies and current boundaries\n\nEvery app declares the exact `apps` version in `package.json` `dependencies`:\n`{ \"dependencies\": { \"apps\": \"\" } }`. `framework.release` returns the\nversion this host runs (`executor apps framework` in the CLI); a deploy without\nit fails and names the same version. That package supplies the server and browser\nframework, and the exact version keeps rebuilds on it across host upgrades. Apps\nExecutor generates, such as imported MCP apps, already declare it. Keep it when\nediting, and change it only to upgrade the app. The host retains the compiled framework with each app version. Missing\nor unsupported packages fail the build without replacing the active app.\nInstallation disables lifecycle scripts. Do not depend on the Executor SDK in\napp code. Native dependencies that need scripts are unsupported.\n\nHosted builds currently run with limited memory. A build with very large\ndependencies can fail with `BuildMemoryExceeded`; no new version is activated.\nThis limit is planned to increase. Report the failure to the user instead of\nchanging the app. Executor errors include `recovery.action` for the user and\n`recovery.instructions` for agents; follow those instructions.\n\nApp code never runs in the host process; it runs in its own Worker, below, and\ncannot start processes or read the host's files. It receives the fields of\nselected accounts. When the provider declares `hosts`, each string field not\nmarked `plain()` or `raw()` arrives as a handle that Executor's network replaces\nonly on requests to those hosts; other fields arrive as their values\n([accounts.md](accounts.md#limit-where-credentials-go)). Accounts connected\nthrough an OAuth client the Executor instance provides are the exception: their\ncredentials are always handles, even when marked `plain()` or `raw()`, and work\nonly in `account.headers()` on requests to the instance's hosts that the\nprovider also declares ([accounts.md](accounts.md#place-credentials-exactly)).\nForward `context.signal` to fetch or other\ninterruptible operations. Cancellation and execution limits are cooperative;\ncompleted writes are not rolled back. App-owned storage persists across calls.\nDurable background work uses workflows ([workflows.md](workflows.md)).\n\n### Fetch from app code\n\nApp code runs on workerd, Cloudflare's Workers runtime, on every host. Its fetch\naccepts the standard `RequestInit` with three exceptions, which TypeScript's\ntypes and a local type check do not catch:\n\n- `redirect` must be `\"follow\"` or `\"manual\"`. To reject redirects, send\n `\"manual\"` and treat a 3xx response as the error.\n- `cache` must be `\"no-store\"` or `\"no-cache\"`, or omitted.\n- `integrity` must be empty or omitted.\n\n`ctx.fetch` rejects an unsupported value with `FetchOptionUnsupported`, which\nnames the option and the values it accepts. A request without a `User-Agent`\nis sent with `User-Agent: Executor`, because some APIs, such as GitHub's, answer\n403 without one. A `User-Agent` app code sets is sent unchanged.\n\nApp code can reach public hosts with no allowlist, so a 403 or 404 from one is\nthat service's answer. Executor refuses only requests it must not send:\n\n- To a private, loopback or internal address named in the URL, on Cloud and on\n self-host. Local allows them; a self-host operator allows them with\n `EXECUTOR_APPS_ALLOW_PRIVATE_FETCH=true`.\n- Carrying a credential handle to a host its provider does not allow.\n\n`ctx.fetch` then rejects with `NetworkRefused`, whose `refusal.reason` and\nmessage name the host and the rule. The global `fetch` instead receives status\n421 with the refusal in an `x-executor-refused` header, as URI-encoded JSON, and\nin the body as JSON. A public name that resolves to a private address passes\nthis check, and the network still refuses it: self-host fails the fetch with a\nnetwork error, and Cloud answers with Cloudflare's own 403 whose body reads\n`error code: …`.\n\nWorking: custom tools, API-key and OAuth providers, saved account selection,\nretained builds, configured copies, live discovery and tool calls. The local\ncatalog imports OpenAPI and remote MCP apps. Custom Add also generates GraphQL\napps. OAuth clients can be supplied or resolved through\nDCR/CIMD; the host stores and refreshes grants. Private local/self-host app UI,\napp data, webhook lifecycle and scheduled mutations are implemented. App-to-app\ncalls and `executor dev` remain deferred.\n", "app-authoring/events.md": "## Events\n\nAn app can emit events that MCP clients subscribe to, such as ChatGPT watching\nfor new issues. Declare each event beside the app's accounts, then emit\noccurrences from mutations and webhook handlers. Executor stores them, matches\nthem to subscriptions, signs them and delivers them; the app never sees a\nsubscriber.\n\n```ts\nimport {\n defineApp,\n event,\n mutation,\n number,\n object,\n router,\n string,\n type MutationContext,\n} from \"apps\";\n\nconst issueOpened = event({\n description: \"An issue was opened in a repository.\",\n filters: { repo: string() },\n payload: object({ title: string(), number: number() }),\n});\nconst requirements = { events: { \"issue.opened\": issueOpened } };\n\nconst openIssue = mutation(\n { input: object({ repo: string(), title: string() }) },\n async (ctx: MutationContext, input) => {\n const number = 1; // save the issue with ctx.sql first\n ctx.events.emit(\n \"issue.opened\",\n { title: input.title, number },\n { filters: { repo: input.repo } },\n );\n return number;\n },\n);\n\nexport default defineApp(requirements, { tools: router({ openIssue }) });\n```\n\n### Declare\n\n- Names are dotted lower-case words, at most 64 characters, such as\n `issue.opened`. Subscribers see `.`, for example\n `issue-tracker.issue.opened`.\n- `description` (1 to 1000 characters) is what clients show for the event.\n- `filters` are the values subscribers can narrow on. Each must be a string,\n number, boolean or literal; `.optional()` is rejected. Subscribers may name\n any of them, or none, and an occurrence matches when every value they named\n is equal.\n- `payload` is any schema; each occurrence's data must match it.\n\n### Emit\n\n`ctx.events.emit(name, data, options)` exists in mutations and webhook\nhandlers, not queries. Name, data and filters are typed from the declaration.\n\n- `filters` is required when the event declares filters, with a value for each.\n- `id`: a stable identifier, such as the provider's delivery ID, so a provider\n redelivery is not delivered twice. Defaults to a random ID.\n- `occurredAt`: a `Date` or epoch milliseconds. Defaults to now.\n- `account`: the account the event came from. A webhook defaults to its source\n account, and an invocation with exactly one account to that one. With several,\n name it or the emit throws.\n\nInvalid names, data, filters or options throw at the call. An invocation keeps\nits events only if it succeeds: a thrown handler discards them, and so does a\n`ctx.sql.transaction` that rolls back. A workflow step that replays emits the\nsame events again with the same IDs. Data is at most 250 KiB of JSON and an\ninvocation emits at most 100 events; for large records, send a summary and a\ntool that reads the rest. Treat user-written text in payloads as data.\n\n### Delivery\n\nDeliveries are at least once and may arrive out of order; subscribers\ndeduplicate on the event ID. A failed delivery is retried for about four and a\nhalf hours. Events are kept for three days. Each delivery checks that the\nsubscriber may still use the app, this event and every account the emitting\ninvocation used.\n\n### How clients subscribe\n\nMCP clients see one event, `executor.app_event`, the same for every user;\nChatGPT saves it once for everyone. Its arguments select events: `app` (the\nslug) and `event` for one event, plus that event's filters; `app` alone for\nall of the app's events; nothing for every app's events. Those deliveries\ncarry `{ app, event, data }`. A client may also subscribe by the event's own\nname, `.`, with its filters, and receive `data` alone.\n\n### Who receives them\n\nA connection or OAuth grant selects an app's events beside its tools: all\nevents, including ones added later, by default, or exact names. A connection\nthat runs an app as some of its linked accounts receives only occurrences whose\naccounts it includes.\n\n### Change events safely\n\nAdding an event, a filter or a payload field keeps existing subscriptions\nworking, but every emit must then supply a new filter. Renaming or removing an\nevent or a filter ends the subscriptions that use it: their next refresh fails\nwith `-32011` or `-32014`, and ChatGPT shows the user nothing. For a breaking\nchange, declare the event under a new name and keep emitting the old one until\nits subscribers have moved.\n", "app-authoring/integrations.md": "# Connect a service\n\nUse this when the user asks you to add a service, often from a setup prompt\ncopied from the dashboard. Pick the helper below, read the service's\nauthentication docs, and ask the user how they sign in when it is unclear. Put\nthat method in `provider.ts` ([accounts.md](accounts.md)); never put a\ncredential in source. When the service has a safe current-user or account read,\ngive the provider a `health` check that calls it ([accounts.md](accounts.md#check-an-account)),\nso users can validate credentials before saving and see which account they connected. For an\nMCP server, use [`mcpHealth`](#check-an-mcp-account). Look up exact helper options with `framework.describe`.\n\n| Interface | Helper |\n| --------------------------- | --------------------------------------------------------- |\n| Remote MCP server | `mcpRouter` from `apps/mcp` |\n| OpenAPI or Swagger document | `liveOpenapiRouter` from `apps/openapi` |\n| GraphQL endpoint | `graphqlRouter` from `apps/graphql` |\n| Anything else | Queries and mutations with `fetch` ([tools.md](tools.md)) |\n\nReach MCP servers over HTTP with `mcpRouter`. Apps cannot start local processes,\nso a stdio-only server needs an HTTP endpoint first.\n\n## OAuth apps the user registers\n\nEvery `oauth2` method needs an OAuth client. Before telling the user to register\none, request the connection and call `accounts.oauthSetup` with its\n`provider.id` and the method name (Cloud and self-host). `mode: \"automatic\"`\nmeans Executor can supply a client itself, registering one at sign-in if it\nneeds to, and the user only signs in;\n`firstParty: { label }`, such as \"Executor for Google\", names the host's own\nclient. `client-required` means the user supplies one.\n\nExecutor looks for a client in this order: one the user already saved, the\nhost's first-party client, a client ID metadata document, then dynamic\nregistration. Executor Cloud has first-party clients for Google and GitHub;\nself-host has them only when its operator sets their credentials. One applies\nonly when the method's authorization and token URLs are exactly its own and\nevery requested scope is one it allows, so the same issuer with other endpoints\nor scopes can still need the user's client.\n\nExecutor gets a client itself when the authorization server advertises a\n`registration_endpoint`, or accepts client ID metadata documents and the host\npublishes one: Executor Cloud does, and self-host does when its operator turns\nit on. Otherwise the method needs a client from the user: the connect page asks\nthem to create an OAuth app in the service's developer settings, add\nExecutor's redirect URI to it, and enter its client ID and client secret.\nPublic PKCE clients, declared with `tokenEndpointAuthMethod: \"none\"`, have no\nsecret. Executor saves the\nclient after a successful connection and reuses it. Give the user the connect\nlink as usual; never ask for a client ID or secret in chat.\n\nThe redirect URI belongs to the host. The connect page shows it. On Cloud and\nself-host, `appAccounts.userConnect`, `appAccounts.appConnect` and\n`accounts.connection` also return it as `redirectUri`, so you can tell the user\nwhat to register before they open the link. The local server uses\n`/api/oauth/callback` on its own origin.\n\nWithout a first-party client, expect to need the user's for Google, GitHub and\nSlack, which offer no registration, and for services such as Fastmail that\naccept only clients and redirect URIs registered in advance. When a service\nadvertises registration but refuses it, the first connect attempt fails and the\npage opens the same client form. Client-credentials methods always take the\nuser's client ([accounts.md](accounts.md#oauth-sign-in)).\n\n## Approvals for imported tools\n\nHelpers attach no approval. Wrap the router with `withApprovals` from `apps`\nand choose each tool's policy in app code. Ask before every OpenAPI and\nGraphQL mutation (non-`GET`/`HEAD` methods and GraphQL mutation fields), and\nbefore MCP tools whose server sets `destructiveHint: true`:\n\n```ts\nimport { toolAnnotations, withApprovals } from \"apps\";\nimport { always } from \"apps/operations/approval\";\n\n// OpenAPI and GraphQL. liveOpenapiRouter returns the router; the other helpers return a Promise.\nwithApprovals(liveOpenapiRouter(options), (tool) =>\n tool.kind === \"mutation\" ? always() : undefined,\n);\n// MCP\nwithApprovals(await mcpRouter(options), (tool) =>\n toolAnnotations(tool)?.destructiveHint === true ? always() : undefined,\n);\n```\n\nTo ask before every MCP tool the server does not mark read-only, including tools\nwith no hints, invert the rule:\n\n```ts\nwithApprovals(await mcpRouter(options), (tool) =>\n toolAnnotations(tool)?.readOnlyHint === true ? undefined : always(),\n);\n```\n\nTo classify an MCP tool yourself, pass `kinds` as `mcpRouter`'s second argument, such as\n`{ get_live_context: \"query\", run_script: \"mutation\" }`. Rules see its `readOnlyHint` from that\nclassification, not the server's. Mark a tool a query only when you have checked that it reads.\n\nThe callback also receives the tool's name relative to the router. Returning\n`undefined` keeps the tool's own approval. With accounts, wrap each account's\nrouter inside the `accountRouter` callback, so each account keeps its own\ntools' hints. Quick-add MCP apps are generated with the MCP rule above.\n\n## Remote MCP tools\n\nImport `mcpRouter` from `apps/mcp`. Add `@modelcontextprotocol/sdk` (currently\n`1.32.1`) to the app's `package.json` dependencies. The dashboard's quick add\ngenerates this for public and OAuth servers. A public server needs no account:\n\n```ts\nimport { defineApp } from \"apps\";\nimport { mcpRouter } from \"apps/mcp\";\n\nexport default defineApp({}, async ({ signal }) => ({\n tools: await mcpRouter({\n url: \"https://mcp.deepwiki.com/mcp\",\n signal,\n }),\n}));\n```\n\nA tool the server marks `readOnlyHint: true` is a query, but that is the\nserver's claim, so Executor still treats a failed call to it as one that may\nhave written: the agent is told not to repeat it. A second argument, `kinds`,\nkeyed by tool name, is the app's own classification: `{ search: \"query\" }`\nconfirms a tool that only reads and keeps a read's retry advice, and\n`\"mutation\"` corrects a wrong hint. Confirm only tools you know do not write.\n\nAuthenticated apps declare `user: { accounts: { service: provider.many() } }`,\nso each member links their own accounts, and combine discovery with\n`tools: await accountRouter(ctx.user?.accounts.service ?? [], account => mcpRouter({ ... }), { signal })`\nfrom `apps`. Each tool takes `{ accountId, input }`: the chosen account ID and the\noriginal upstream input. Same-name tools keep one name with an input schema for\neach account. No linked accounts expose no tools; the factory also runs without a\ncaller for the app's background work, where `ctx.user` is undefined. The callback\nmay return the router or a Promise of it, and may return a `router` of your own\nqueries and mutations; `defineApp` checks their handler contexts as for any\nrouter.\n\nFor one service account the whole team shares, declare it as the app's own,\n`app: { accounts: { service: provider } }`, and pass `ctx.app.accounts.service`\nto `mcpRouter` directly. Someone who can edit the app links the account for\neveryone; every caller uses it, and tools take the server's own input. Quick add generates the per-member\nform.\n\nPass that callback's `account` with headers derived from it. Headers are only\naccepted together with the account they belong to.\nOAuth uses `oauth2({ discover: \"https://example.com/mcp\" })`\nand `Authorization: \"Bearer \" + account.fields.access_token`.\nAPI-key methods use a `secrets` field and the header the server documents,\nfor example `headers: { \"X-API-Key\": account.fields.token }`.\n\nWhen quick add refuses a server, its reason names what the server answered\nwithout credentials. A 401 with a Bearer challenge and no OAuth metadata means\na key sent as `Authorization: \"Bearer \" + ...`; confirm the header in the\nservice's documentation. A 403 web page means a firewall refused Executor's\ncheck, not that a key is needed. A public server that also offers OAuth is\nadded without an account; its `provider.ts` keeps the discovered OAuth.\nThe factory runs with the caller's linked accounts, so different accounts can\nexpose different catalogs. Do not keep a global authenticated catalog.\n\n### Check an MCP account\n\nGive an authenticated MCP provider `mcpHealth` from `apps/mcp` as its `health`\ncheck. It connects to the server with the account's headers, initializes, and\nreads the first page of tools. Then it does the same without any headers, to\nshow that the server needs the credentials. No tool runs. Do not check MCP accounts with the\nvendor's REST or GraphQL API: an MCP OAuth token is often valid only for the MCP\nserver it was issued for. Do not import `@modelcontextprotocol/sdk` to write\nyour own check.\n\n```ts\nimport { defineProvider, oauth2 } from \"apps\";\nimport { mcpHealth } from \"apps/mcp\";\n\nexport const url = \"https://mcp.example.com/mcp\";\nexport const headers = (account: { fields: { access_token: string } }) => ({\n Authorization: \"Bearer \" + account.fields.access_token,\n});\n\nexport const provider = defineProvider({\n name: \"Example\",\n hosts: [\"mcp.example.com\"],\n auth: { oauth: oauth2({ discover: url }) },\n health: (check) => mcpHealth(check, { url, headers: headers(check.account) }),\n});\n```\n\nPass the check context `health` receives as the first argument. `mcpHealth`\nreads the account, `signal` and `deadline` from it: both checks share the time\nExecutor gives the account check and stop early enough to report a server that\ndid not answer in time. Use the same `url` and `headers` in `mcpRouter`. Send\ncredentials only in `headers`: the check without them uses the same `url`. Do\nnot set `timeoutMs` for a longer wait: it can only shorten that time.\n\nWith the account's headers, a refused token reports rejected credentials, an\n`insufficient_scope` challenge a missing permission, and 429 or 5xx an\nunavailable service. The check stops there. A server that cannot be reached, or\nanswers in a way Executor cannot use, means the check could not verify the\naccount. The account form shows why.\n\nWhen the server accepts the account, the check passes only if the server\nrefuses the same requests without credentials (401 or 403, while initializing or\nlisting tools). Some servers answer without credentials, so a wrong key would\npass as well. The check then could not verify the account, and the form says:\n\"This MCP server answers without credentials, so Executor can't check this\naccount. A refused key will show up when a tool is called.\" It also could not\nverify the account if the requests without credentials time out or fail in any\nother way, such as 429 or 5xx; the form names that failure. MCP has no standard\ncurrent-user request, so the check reports no account name. Quick-add OAuth apps\nare generated with this check.\n\nStreamable HTTP and legacy SSE are supported. Every discovery/call owns and\ncloses its connection. Session-local workflows do not survive separate tool\ncalls. Results retain MCP `content`, `structuredContent`, `isError`, and `_meta`,\nexcept a text block that only repeats `structuredContent` as JSON, which is dropped;\nremote tool failures are results, while transport failures reject the call.\nA tool's output type describes that whole result, with the server's output schema\nunder `structuredContent`, and every result is checked against it. Read typed\nfields from `result.structuredContent` after checking `result.isError`.\nCalls are never automatically retried. Upstream form elicitation automatically\nuses the running tool context; preserve that context when wrapping generated tools.\nRequest and response metadata, including approval persistence choices, pass through.\nShow approval terms from request metadata to the user. Return a persistence choice\nonly when the user explicitly selects it; accepting once must not add a saved grant.\nInput waits pause the active upstream timeout; the server can impose its own deadline.\nDiscovery cannot prompt. Remote prompts/resources, sampling and URL-mode elicitation\nare not exposed.\n\nThe helper returns a router. Its title, description and icons come from the\nserver's `serverInfo`, and its `instructions` become a skill agents can read. To\nkeep several servers in one app, mount each under a key; tools become\n`.` and a server that cannot be reached is reported without hiding the\nothers. Here `accounts` is `ctx.app.accounts` of an app with a plain app\nrequirement for each server:\n\n```ts\nconst bearer = (account) => ({ Authorization: \"Bearer \" + account.fields.access_token });\n\ntools: router({\n linear: await mcpRouter({\n url: \"https://mcp.linear.app/mcp\",\n account: accounts.linear,\n headers: bearer(accounts.linear),\n cache,\n signal,\n }),\n sentry: router(\n await mcpRouter({\n url: \"https://mcp.sentry.dev/mcp\",\n account: accounts.sentry,\n headers: bearer(accounts.sentry),\n cache,\n signal,\n }),\n { description: \"Errors and releases for the web app\" },\n ),\n}),\n```\n\n## OpenAPI APIs\n\nCall `liveOpenapiRouter` from `apps/openapi` with `ctx.cache`, `ctx.fetch`,\nthe signal and an account: each of a `provider.many()` user requirement's\naccounts through `accountRouter`, as for MCP, or a plain app requirement's\n`ctx.app.accounts.service` for one account every caller uses. It returns the router at once, then\ndownloads and compiles the definition inside the app when its tools are listed\nor called, caching each revision; no extra dependency is needed. Pass the\nsettings the definition cannot be trusted to decide:\n\n- `source`: `{ url }` for a public definition (up to 40 MB), or `{ document }`:\n Swagger 2.0 or OpenAPI 3.0, 3.1 or 3.2. The `url` is fetched without account\n credentials; see [private definitions](#private-definitions).\n- `allowedOrigin`: the origin that may receive credentials, or a list of a\n service's own origins, such as its API and upload hosts. Operations on any\n other origin are left out. `baseUrl` overrides the definition's server.\n- `securitySchemes`: usually `components.securitySchemes` from the definition.\n A security alternative naming a scheme not listed here is ignored, so list\n only the schemes `methods` or `oauth` fill.\n- `methods`: which account fields fill each scheme for each `secrets` method,\n e.g. `{ apiKey: [{ scheme: \"bearerAuth\", field: \"token\", part: \"value\", prefix: \"\" }] }`.\n Basic auth binds `username` and `password` parts.\n An `oauth2` method can fill a scheme here too, through its `access_token`\n field. Use this when the definition declares only an http bearer scheme:\n `{ oauth: [{ scheme: \"bearerAuth\", field: \"access_token\", part: \"value\", prefix: \"\" }] }`.\n List such a method in `methods` only, not in `oauth`.\n- `oauth`: names of `oauth2` provider methods, each named like the OpenAPI\n `oauth2` scheme it fills. This fills only `oauth2` and OpenID Connect schemes.\n Declare those methods as in [accounts.md](accounts.md#oauth-sign-in),\n preferring `discover`.\n- Optional `fallbackSecurity` when the definition declares no security, and\n `patches` for mistakes in a definition you do not control. Each patch is\n `{ op: \"add\" | \"remove\" | \"replace\", path, value }`, with `path` a JSON\n Pointer through objects only: every segment before the last must name an\n existing object, so a pointer cannot index into an array. Replace the whole\n array at its key instead. `add` creates or overwrites a key; `remove` and\n `replace` need it to exist.\n- Optional `pathPrefix`, such as `/projects/{project}`, when the definition's\n paths omit leading segments. It goes between the server and every path; each\n `{name}` becomes a required path parameter of every tool.\n- Optional `kinds`, keyed by operationId, when an operation's HTTP method\n misclassifies it as a query or mutation.\n\nTools are grouped by the operation's first tag, or its first path segment:\noperationId `listProjects` tagged `projects` becomes\n`projects.listProjects`, and `accounts_connect` tagged `accounts`\nbecomes `accounts.connect`. Both parts are camelCased from their words: tag\n`Team Members` with operationId `list_team_members` becomes\n`teamMembers.listTeamMembers`, and `GetUserByID` becomes `getUserById`.\nWithout an operationId the name comes from the method and path. A fixed query\nor fragment in a declared path, as in `/search?type=items`, is not part of the\nname; the query is sent before the operation's parameters and the fragment is\nnot sent. Names that\ncollide, whether or not they come from operationIds, are told apart in this\norder: first the path's version segment, as in `users.v2.listUsers`; then the\npath segments that differ, so `GET /builds` and `GET /builds/{build_num}` become\n`builds.getBuilds` and `builds.getBuildsByBuildNum`; then the whole path; then\nthe HTTP method; then a stable hash. Each step applies only to names that still\ncollide. `kinds` still uses the original operationId. Discover the exact names\nwith search, or before an account connects as below.\n\nOperations the helper cannot represent, and operations whose security needs\nanother method, are left out rather than failing the app. One whose every\nsecurity alternative names an undeclared scheme is left out with\n`auth_method`. Reading or calling a\nleft-out operation's tool fails with why, such as the JSON Pointer of an\ninvalid schema. When none can be imported, the router's error lists the\noperations left out and why, and the origins the operations use when none\nmatches `allowedOrigin`. Both end by offering a\n[custom tool](#custom-tools-beside-generated-ones). Public APIs need no\naccount: call `liveOpenapiRouter` without `accountRouter` and with\n`methods: {}` and `oauth: []`. `openapiRouter` is the lower-level helper for\nnormalized metadata. Use `contentType` to choose an alternate declared request\nmedia type. Binary request bodies and multipart binary fields take base64\nstrings. Binary responses return `{ base64, contentType }`; text and JSON\nsequences (NDJSON, JSON Lines, `json-seq`) return text. An operation that can\nanswer with an event stream or another type asks for the other type; one that\nanswers only with an event stream is not a tool. Success responses have\na 16 MiB / 30-second read bound. Live SSE\nrequires an authored subscription.\n\nA call resolves to the response body itself, never `{ status, body }`: parsed\nJSON, text, the binary object above, or `null` for 204 and `HEAD`. A failure\nstatus rejects the call instead. The output type comes from the definition's\nsuccess responses. When one declares no content, or JSON content without a\nschema, the signature says `Promise`. Results are not checked against\nthe declared schema, so check the fields you use.\n\nOpenAPI apps return documented errors with an exact HTTP status, a required\nliteral `_tag`, and either a declared string `message` or a schema description.\nLocal component references and plain `anyOf` alternatives are supported. A matching JSON failure returns its\ncode, status, and message in MCP's `execution.error.response`. The message comes\nfrom the validated response field, or static documentation when the declaration\nhas no message field. Messages are limited to 4,096 characters. A body `recovery`\nobject with non-empty `action` and `instructions` strings is also returned as\n`response.recovery`, and `error.message` ends with `Recovery: `. A missing\nor malformed `recovery` is ignored. Other payload fields, headers, and stacks are\nnot forwarded.\nAuthentication and rate limits keep their existing provider-error handling.\nUnknown, malformed, oversized, or stalled error bodies use the generic failure. It\nnames the operation's method and templated path, such as `GET /items/{item}`, and\nthe response's status, media type, and declared length, but never its body.\n\nInside an `execute` program's `catch`, CodeMode exposes only `error.message`.\nFor these declared API errors it contains JSON with `code`, `status`,\n`message`, and an optional `recovery`; parse it with `JSON.parse`. Other failures are ordinary diagnostic\nstrings, so guard that parse. A failed mutation may already have made changes;\ninspect its state before retrying.\n\n### Tool names before an account connects\n\nAn account's tools are listed only once it connects. `openapiToolNames` from\n`apps/openapi` reads the definition with the router's options, minus `cache`,\n`account` and `parameterDefaults`, and resolves to `{ tools, skipped }`. Each\ntool has its `name` as `withApprovals` receives it, `method`, `path` (with any\n`pathPrefix`), `kind`, and which `methods` and `oauth` entries expose it\n(`public` when it needs no credentials). `skipped` lists only the operations the\ncompiler left out, and why. An operation that no `methods` or `oauth` entry can\nauthorize is missing from `tools` and not listed in `skipped`. To check the\nnames an approval policy uses before deploying, keep the options and the policy\nin their own module:\n\n```ts\n// openapi.ts; index.ts imports it as \"./openapi.js\"\nimport type { OpenapiToolNamesOptions } from \"apps/openapi\";\nimport { always } from \"apps/operations/approval\";\n\nexport const options = {\n source: { url: \"https://api.example.com/openapi.json\" },\n allowedOrigin: \"https://api.example.com\",\n securitySchemes: {},\n methods: {},\n oauth: [],\n} satisfies OpenapiToolNamesOptions;\nexport const approvals = new Map([[\"projects.deleteProject\", always()]]);\n```\n\nIn `index.ts`, wrap the router with\n`withApprovals(liveOpenapiRouter({ ...options, cache, fetch, signal, account }), (_, name) => approvals.get(name))`.\nAfter installing the app's packages as in [deploy.md](deploy.md), run this in\nthe app directory with Bun. Plain `node` cannot run it once `openapi.ts`\nimports a sibling module as `./patches.js`: Node strips types but does not map\n`.js` imports to `.ts` files. On Node, use `npx tsx --input-type=module -e`\nin place of `bun -e`.\n\n```sh\nbun -e '\nimport { openapiToolNames } from \"apps/openapi\";\nimport { approvals, options } from \"./openapi.ts\";\nconst names = new Set((await openapiToolNames(options)).tools.map((tool) => tool.name));\nconst unknown = [...approvals.keys()].filter((name) => !names.has(name));\nif (unknown.length) throw new Error(`No tools named ${unknown.join(\", \")}`);\nconsole.log([...names].join(\"\\n\"));'\n```\n\n### Custom tools beside generated ones\n\nGenerated tools are a starting point, not a limit. When an operation is left\nout, a generated tool is modelled or gated wrongly, or the definition itself is\nwrong (such as `security: []` on calls that need a key), write a query or\nmutation for it in the same app ([tools.md](tools.md)). Return it from its own\n`accountRouter` callback, so it calls the API with the account the generated\ntools use (`accounts` is `ctx.user?.accounts.service ?? []` here):\n\n```ts\ntools: router({\n api: await accountRouter(\n accounts,\n (account) => liveOpenapiRouter({ ...options, cache, fetch, signal, account }),\n { signal },\n ),\n custom: await accountRouter(\n accounts,\n (account) =>\n router({\n uploadFile: mutation(\n { description: \"Upload a file\", input: object({ name: string(), base64: string() }) },\n async ({ fetch }, input) =>\n decodeJson(\n await fetch(\"https://api.example.com/v1/files\", {\n method: \"POST\",\n headers: { Authorization: `Bearer ${account.fields.token}` },\n body: JSON.stringify(input),\n }),\n object({ id: string() }),\n ),\n ),\n }),\n { signal },\n ),\n}),\n```\n\nGive it its own `approval`. To hide the generated tool it replaces, remove that\noperation with `patches`. The same works beside `mcpRouter` and\n`graphqlRouter`, but an MCP OAuth token often works only for its MCP server:\ncall the service's REST API through a provider of its own.\n\nThe key renames every generated tool: `projects.listProjects` becomes\n`api.projects.listProjects`. Update skills and callers that use the old names.\n\n### Private definitions\n\nWhen the definition itself needs the account's credentials, load it in a cache\nscoped to the account and pass it as `source: { document }`. `record(json())`\nfrom `apps` accepts any JSON object:\n\n```ts\nasync (account) => {\n const url = \"https://api.example.com/openapi.json\";\n const document = await cache.forAccount(account).get({\n key: [\"openapi-definition\", url],\n schema: record(json()),\n freshFor: \"1 hour\",\n load: async ({ fetch, signal }) =>\n decodeJson(\n await fetch(url, { signal, headers: { Authorization: `Bearer ${account.fields.token}` } }),\n record(json()),\n ),\n });\n return liveOpenapiRouter({ ...options, source: { document }, cache, fetch, signal, account });\n};\n```\n\nA cache entry holds up to 2 MB. Reconnecting the account starts an empty scope.\n\n### Session cookies\n\nFor a service that exchanges a username and password for a session cookie,\ndeclare both as `secrets` fields with the service's `hosts`. Sign in from a\ncache loader, then pass `liveOpenapiRouter` a `fetch` that adds the cookie.\nClear the definition's security so operations need no declared scheme:\n\n```ts\nasync (account) => {\n const sessions = cache.forAccount(account);\n const session = () =>\n sessions.get({\n key: [\"session\"],\n schema: string(),\n freshFor: \"20 minutes\", // shorter than the service's session lifetime\n load: async ({ fetch, signal }) => {\n const response = await fetch(\"https://app.example.com/api/login\", {\n method: \"POST\",\n signal,\n headers: { \"content-type\": \"application/json\" },\n body: JSON.stringify({\n username: account.fields.username,\n password: account.fields.password,\n }),\n });\n if (!response.ok) throw new Error(`Sign-in failed with status ${response.status}.`);\n const cookies = response.headers.getSetCookie().map((cookie) => cookie.split(\";\")[0]);\n if (cookies.length === 0) throw new Error(\"Sign-in returned no session cookie.\");\n return cookies.join(\"; \");\n },\n });\n return liveOpenapiRouter({\n source: { url: \"https://app.example.com/openapi.json\" },\n allowedOrigin: \"https://app.example.com\",\n securitySchemes: {},\n methods: {},\n oauth: [],\n patches: [{ op: \"add\", path: \"/security\", value: [] }],\n cache,\n signal,\n account,\n fetch: async (input, init) => {\n const headers = new Headers(init?.headers);\n headers.set(\"cookie\", await session());\n const response = await fetch(input, { ...init, headers });\n // An expired session signs in again on the next call.\n if (response.status === 401) await sessions.invalidate([\"session\"]);\n return response;\n },\n });\n};\n```\n\nThe patch replaces only the document's top-level `security`; patch any\noperation that declares its own. Give the provider a `health` check that signs\nin the same way, so the account form reports refused credentials.\n\n## GraphQL APIs\n\nUse `graphqlRouter` from `apps/graphql` with the endpoint, an account and its\nheaders, and optional cancellation signal. Declare `graphql` (currently\n`16.11.0`) in the app's dependencies. Authenticated apps use a `provider.many()`\nuser requirement and `accountRouter` as above, or a plain app requirement for\none account every caller uses; public endpoints need no account.\n\nHelpers are separate subpath imports. Importing `apps` alone does not load\nMCP or GraphQL. Optional dependencies must appear in the app's manifest and\nresolve from its own installation. A missing peer fails the deploy with\nthe package to add. A declared `apps` version owns its framework dependencies;\notherwise the host supplies them.\n\nPass `cache: ctx.cache` to `mcpRouter`. With an account, the helper keeps the\ncatalog in that account's cache scope, so a token renewal keeps it and a\nreconnected account starts fresh. The helper returns a dynamic router; it lists\nmetadata without compiling every tool, and resolves one executable for each\ncall. Cached identity is the server URL within that scope; headers and\ncredentials never enter it. Defaults are five minutes fresh plus five minutes\nstale.\n\nSet `revalidate: true` on a specific `mcpRouter` call to await a new catalog\nat a logical connection or explicit refresh boundary. Do not set it on every\napp evaluation unless every request must reload discovery. Each HTTP transport\nsession is short-lived; opening that transport does not force a catalog refresh.\nA received `notifications/tools/list_changed` invalidates the retained manifest.\nThere is no idle background connection, so TTL or explicit refresh covers changes\nmade while disconnected. A failed explicit refresh retains the previous catalog.\nOnly metadata is cached; credentials and executable handlers remain invocation-owned.\n\nGraphQL apps use the same cache policy through `graphqlRouter`:\n\n```ts\nawait graphqlRouter({\n url,\n account,\n headers: { Authorization: \"Bearer \" + account.fields.token },\n cache: ctx.cache,\n signal: ctx.signal,\n});\n```\n\nThe helper returns a dynamic router. One introspection request creates a\nrevision of per-tool definitions. Listing reads those definitions; execution\nloads and compiles only the selected query or mutation, without reading the\nfull introspection schema. The current account supplies execution credentials.\nPublic endpoints take no account or headers. Omitting the cache keeps discovery\nlocal to the current evaluation. Keys are the URL within the account's scope.\n\n`freshFor`, `staleFor`, and `revalidate: true` have the same meanings as MCP.\nGraphQL has no standard schema-change notification, so TTL or an explicit\nrefresh discovers changed fields and input types. Failed refreshes retain the\nprevious revision. Cached introspection never caches query or mutation results.\n", "app-authoring/starter.md": "## Start from a checked example\n\nFor a small UI with stored records, such as a todo list or inbox, adapt the\n`live-inbox` example returned by `framework.describe`. It includes SQL migrations,\ntyped query and mutation, shared schemas, React UI, live subscription,\noptimistic insertion, HTML, styles and package dependencies. Reuse those files\ninstead of reconstructing the framework setup. Choose another approach when\nthe requested app does not fit this example.\n\nDiscover the management app's `framework.search` and `framework.describe`\nthrough `tools.search`. Call `framework.search({ query: { text: \"createAppClient\" } })`,\nthen `framework.describe({ query: { symbol: \"apps/client.createAppClient\", version, digest } })`\nwith the search result's `version` and `digest`. `examples` is an array of\n`{ id, title, files }`; read the complete entry whose `id` is `live-inbox`,\nincluding its `files`. Keep this reference\nidentity when fetching it again; a different pinned package needs its own\nreference.\n\nAdapt the table, shared row schema, operations and UI to the requested behavior.\nKeep the type-only server imports, stable query atom and shared output schemas.\nUse [tools.md](tools.md) for new operations, [storage.md](storage.md) for new\ndata access, and [ui.md](ui.md) for React and optimistic behavior. The example's\ninsert-only list does not demonstrate actions on a row that is still being\ncreated; read the temporary-ID guidance before adding edit or delete controls.\n\n## Carry source forward\n\nThe example's `files` already has the `{ path, content }` shape accepted by\nmanagement tools. After reading the source, fetch the same reference and apply\nyour edits to those files inside `execute`. Pass the resulting file array\ndirectly to the discovered create operation. Read [deploy.md](deploy.md) for\nthe create, commit and deploy flow. Return the resulting IDs and URL, rather\nthan printing unchanged source and writing it back into another tool call.\n\nFor later changes, fetch the app's current working source and transform only\nthe affected files. Submit the complete file list with its expected revision.\nAn `execute` call does not retain variables for the next call; fetch the source\nagain when needed. Preserve unrelated files and edits.\n\nWith a shell and the CLI, read the same example from\n`node_modules/apps/framework-reference.json`, the `examples` entry whose `id`\nis `live-inbox`.\nWrite its `files` into a local app directory once, then edit and deploy them\nwith `executor apps` as described in [deploy.md](deploy.md). Over MCP only, keep one working copy and serialize its\ncontent with JSON when preparing a tool payload. Do not rewrite valid TypeScript just\nto remove backticks or `${...}`. See the source transport guidance in\n[deploy.md](deploy.md).\n", "app-authoring/storage.md": "## App data\n\nAn app with SQL files in `migrations/` owns a SQLite database. Handlers read and\nwrite it with plain SQL through `ctx.sql`. The migrations are the schema: the\nhost applies new ones when you deploy. Declare requirements once and derive\n`QueryContext` and `MutationContext`.\n\n```ts\nimport {\n query,\n mutation,\n type QueryContext,\n type MutationContext,\n defineApp,\n object,\n string,\n router,\n} from \"apps\";\n\nconst requirements = {};\ntype Message = { id: string; subject: string };\n\nconst list = query(\n { input: object({ mailbox: string() }) },\n async ({ sql }: QueryContext, { mailbox }) =>\n sql\n .exec(\n \"SELECT id, subject FROM messages WHERE mailbox = ? ORDER BY created_at DESC LIMIT 50\",\n mailbox,\n )\n .toArray(),\n);\nconst add = mutation(\n { input: object({ mailbox: string(), subject: string() }) },\n async ({ sql }: MutationContext, message) =>\n sql\n .exec(\n \"INSERT INTO messages (id, mailbox, subject, created_at) VALUES (?, ?, ?, ?) RETURNING id, subject\",\n crypto.randomUUID(),\n message.mailbox,\n message.subject,\n Date.now(),\n )\n .one(),\n);\nexport default defineApp(requirements, { tools: router({ list, add }) });\n```\n\n`migrations/0001_messages.sql` creates the table:\n\n```sql\nCREATE TABLE messages (\n id TEXT PRIMARY KEY NOT NULL,\n mailbox TEXT NOT NULL,\n subject TEXT NOT NULL,\n created_at INTEGER NOT NULL\n);\nCREATE INDEX messages_mailbox ON messages (mailbox, created_at);\n```\n\nQueries and mutations in the app's `tools` router are available to the agent by\ntheir router path, such as `list` or `issues.list`. Use `tools.search` to get\ntheir exact callable expressions; do not write another tool wrapper. Add\n`description` and optionally `title` to improve discovery. Each configured app\nhas its own database, kept across versions.\n\n## `ctx.sql`\n\n`ctx.sql` mirrors Cloudflare's Durable Object `SqlStorage`.\n\n- `exec(query, ...bindings)` runs a statement and returns a cursor whose rows\n are already read: `toArray()`, `one()` (exactly one row, or it throws),\n iteration, `columnNames`, `rowsRead` and `rowsWritten`. Bind values with `?`;\n never build SQL from input strings. JavaScript numbers bind as SQLite REAL,\n even whole ones: an INTEGER column stores `5` as `5`, but in an expression\n `? / 10` gives `0.5` and `'acct-' || ?` gives `'acct-5.0'`. Write\n `CAST(? AS INTEGER)` where a bound number must stay an integer.\n- Outside a transaction, every statement commits on its own.\n- `transaction(work)` runs `work` synchronously in one SQLite transaction and\n returns its value. Throwing rolls everything in it back. It cannot be nested.\n- Queries receive read-only SQL: each runs in a transaction that is always\n rolled back, and one that changes rows fails. Mutations, webhook handlers and\n scheduled tools can write.\n- Without migrations the app has no database, and every statement fails with an\n error saying so.\n\nA transaction cannot `await`, so no transaction stays open while the app waits\non anything else. Calls to the same app run concurrently, so a slow `fetch` in\none call never holds up the app's other calls, including a provider's\nverification callback into a webhook.\n\n### Writes around outside calls\n\nNothing rolls back a `fetch` or a provider write. Order the work so a failure\nleaves a state you can recover from:\n\n```ts\nconst send = mutation({ input }, async (ctx, input) => {\n const id = crypto.randomUUID();\n // 1. Reserve: commits on its own, so the outgoing message can carry the ID.\n ctx.sql.exec(\n \"INSERT INTO requests (id, status, created_at) VALUES (?, 'sending', ?)\",\n id,\n Date.now(),\n );\n try {\n // 2. The outside call, with no transaction open.\n const messageId = await post(ctx, id, input);\n // 3. Publish.\n ctx.sql.exec(\"UPDATE requests SET status = 'sent', message_id = ? WHERE id = ?\", messageId, id);\n } catch (error) {\n ctx.sql.exec(\"UPDATE requests SET status = 'failed' WHERE id = ?\", id);\n throw error;\n }\n return { id };\n});\n```\n\nA crash between steps 2 and 3 leaves a `sending` row; a scheduled cleanup can\nmark old ones `failed`.\n\n### Concurrent writes\n\nTwo calls can change the same row at once. Make the change conditional and check\nthat it happened:\n\n```ts\nconst won =\n ctx.sql.exec(\"UPDATE requests SET status = 'cancelled' WHERE id = ? AND status = 'pending'\", id)\n .rowsWritten > 0;\n```\n\nCompare `rowsWritten` with `0`, not `1`. As in Cloudflare's billing count, it\nincludes every index row the statement wrote, so updating an indexed column of\none row reports `2`.\n\nRead-then-write logic belongs in one `transaction`, which no other call can\ninterleave with.\n\n## Migrations\n\nMigrations are SQL files directly in `migrations/`, named with a number that\norders them and a name: `0001_messages.sql`, `0002_add_status.sql`. A file can\nhold several statements. Write them by hand; there is no generator.\n\nWhen you deploy, the host applies the migrations the database has not seen, in\nnumber order, all in one transaction. If one fails, the deploy fails with\nSQLite's error and the file name, nothing is applied, and the previous\nversion stays active. Rolling back to an older version does not undo\nmigrations.\n\nApplied migrations cannot change. The host records each one's name and a hash\nof its contents; a deploy whose `migrations/` renames, edits or removes an\napplied file fails and says which. To change the schema, add a new migration.\n\nComments can go anywhere in a migration, including after its last statement.\n\n## Executor's tables\n\nTables named `_executor_*` belong to Executor: applied migrations, workflow step\nreceipts, and `_executor_legacy_rows (table_name, id, body)`, the rows an app\nstored with the document API before `apps@0.0.1-beta.38` (JSON bodies). Read\nthem, but do not change them: changing the migration records fails the next\ndeploy, and deleting a step receipt lets that workflow step run again. See\n[upgrades/0.0.1-beta.38.md](upgrades/0.0.1-beta.38.md) to copy old rows into\nyour own tables.\n\n## Limits\n\nApp SQL is Cloudflare's Durable Object SQLite on every host, local included,\nwith its limits:\n\n- A statement binds at most 100 values. Bind a long list as one JSON array and\n read it with `json_each`:\n\n ```ts\n ctx.sql\n .exec(\n \"SELECT id, subject FROM messages WHERE id IN (SELECT value FROM json_each(?))\",\n JSON.stringify(ids),\n )\n .toArray();\n ```\n\n- A statement is at most 100 KB; a string, BLOB or row at most 2 MB; a table\n has at most 100 columns. Each migration file runs as one SQL string, so the\n 100 KB limit applies to the whole file, however small its statements: split a\n large seed into several files, or insert it from a workflow.\n- A compound `SELECT` has at most 5 terms (`UNION`, `UNION ALL`, `INTERSECT`,\n `EXCEPT`), and a `LIKE` or `GLOB` pattern is at most 50 bytes.\n\nThere is no row budget. Every other call to the app waits while one statement\nruns, so add an index or a `LIMIT` to keep statements short, and split large\nwork into batches: a workflow loop calling a mutation that handles one batch per\nstep (see [workflows.md](workflows.md)). Inside `transaction`, any statement that\nfails rolls the whole transaction back, even if you catch its error.\n\nA call has no deadline of its own; the caller's deadline bounds it:\n\n- An MCP `execute` program has 5 minutes, shared by every call it makes. Time\n waiting for an approval or an answer does not count. Local's\n `EXECUTOR_MCP_TIMEOUT_MS` changes it.\n- A workflow step has its `timeout`, 10 minutes by default.\n- A webhook handler has 45 seconds, and an account check 15 seconds.\n\nThe app cache has its own limits; see \"Cache and lazy operation sources\" in\n[tools.md](tools.md).\n", "app-authoring/tools.md": "## A runnable first app\n\nSave this as `index.ts`:\n\n```ts\nimport { query, defineApp, object, router, string } from \"apps\";\n\nconst Greet = object({ name: string().default(\"world\") });\n\nexport default defineApp(\n {},\n {\n tools: router({\n greet: query(\n { description: \"Greet someone by name\", input: Greet },\n async (_ctx, { name }) => ({ message: `Hello, ${name}!` }),\n ),\n }),\n },\n);\n```\n\nDeclare `query(options, handler)` or `mutation(options, handler)`. Options include\n`description`, `input`, optional `output`, and optional `approval`. Put them in the\napp's `tools` router; every query and mutation becomes an agent tool. The kind\nbelongs to the operation, not its name: the tool above is `greet`, called as\n`tools..greet(...)`.\nQueries may fetch external APIs; they cannot write app-owned data. Return JSON-compatible values:\nobjects, arrays, strings, finite numbers, booleans and null. Do not return a\nResponse, Date, stream, SDK class instance, undefined or BigInt.\n\nThe schema helpers are `object`, `string`, `number`, `boolean`, `array`,\n`record`, `json` and `literal`. Use `.optional()` for absent fields and\n`.default(value)` for defaults. `string`, `number` and `boolean` take an\noptional `title` and `description`, such as\n`string({ description: \"An ISO 8601 date\" })`, which agents see in the tool's\ninput schema. `Infer` gives the parsed input type. `object`\nstrips undeclared properties. `decodeJson(response, schema)` checks HTTP status\nand parses a JSON response.\n\n## Give the app an icon\n\nDeclare `icons` beside the account requirements. The dashboard shows them on the app's card\nand page, choosing the `light` or `dark` variant for the color scheme; an icon\nwithout `theme` suits both. The build records them, so they show without\nevaluating the app or listing its tools:\n\n```ts\nexport default defineApp(\n {\n icons: [\n { src: \"data:image/svg+xml;base64,PHN2Zy...\", mimeType: \"image/svg+xml\", theme: \"light\" },\n { src: \"https://example.com/logo-dark.png\", mimeType: \"image/png\", theme: \"dark\" },\n ],\n },\n async () => ({ tools: router({/* ... */}) }),\n);\n```\n\nEach entry is `{ src, mimeType?, sizes?, theme? }`. `src` is a base64\n`data:image/svg+xml`, `image/png`, `image/webp` or `image/jpeg` URI, or an\n`https:` URL. Declare at most 8 icons, together at most 32 KiB of JSON.\nAnything else fails the build at its declaration stage. Icons are not part of\na published listing.\n\n## Group tools with routers\n\nNest routers to group related tools. Keys form the tool path, like tRPC:\n\n```ts\ntools: router({\n health: query({ input: object({}) }, async () => \"ok\"),\n issues: router(\n {\n list: query({ input: object({}) }, listIssues),\n close: mutation({ input: object({ id: string() }) }, closeIssue),\n },\n {\n title: \"Issues\",\n description: \"Triage issues in the Acme tracker.\",\n instructions: \"Search before creating an issue. Never close one you did not open.\",\n },\n ),\n}),\n```\n\nThese tools are `health`, `issues.list` and `issues.close`. A tool named `health`\nis an ordinary query; checking that an account works is the provider's `health`\nfunction ([accounts.md](accounts.md#check-an-account)). Keys start with a\nletter or `_` and contain no dots; `__proto__`, `constructor` and `prototype` are\nreserved. Mount each mutation at one path. Router options are `title`,\n`description`, `instructions`, `icons` and `tags` (tag name to description).\nAgents see each router's title and description beside its tools.\n\n`instructions` become a skill read through the MCP `skills` tool. Router skills\nhave their own names: `tools` for the root router and `tools-` below it,\nsuch as `tools-issues`. A path with capitals, `_`, `-`, or over 64 characters\ngets a slug and a hash, such as `tools-issues-list-` plus ten digits for\n`issues_list`. The router's catalog entry names its skill. Don't name your own\nskills `tools` or `tools-...` unless you mean to replace a router's\ninstructions: a packaged or dynamic skill with a router skill's name replaces it.\nRouter instructions never fail the skills read; a source that cannot be read\njust contributes no skill.\n\nMount a protocol source under a key to keep several sources in one app. A router\nthat fails to load, such as an unreachable MCP server, is reported on its own; the\napp's other tools still load. `router(source, options)` overrides a source's own\ntitle, description or instructions. An app that is a single source can use it as\n`tools` directly.\n\nDeclare a router in its own module with its handler contexts, for example\n`router, MutationContext>({...})`,\nor let `defineApp` type inline handlers.\n\n## Ship instructions with your app\n\nReturn skills in the second argument to `defineApp`, beside tools and\nworkflows. Load remote skills with `dynamicSkills({ list })`, like\n`dynamicRouter({ list, resolve })` for tools. Executor calls `list` only when\nskills are read:\n\n```ts\nimport { defineApp, dynamicSkills } from \"apps\";\nimport { githubSkills } from \"apps/skills\";\n\nexport default defineApp({}, async (ctx) => ({\n dynamicSkills: dynamicSkills({\n list: () =>\n githubSkills({\n repo: \"planetscale/database-skills\",\n path: \"skills\",\n fetch: ctx.fetch,\n signal: ctx.signal,\n cache: ctx.cache,\n }),\n }),\n}));\n```\n\nTool listing and calls then never fetch remote skills, and a skill source\nfailure does not break tools. `skills` is the static catalog: an array of\nresolved skills. Dynamic skills and router instructions are added to it.\n\nEach resolved skill has `name`, `description` and `files: {path, content}[]`.\nFiles are relative to the skill directory and include the full `SKILL.md` with\nYAML frontmatter. Optional metadata: `license`, `compatibility`, `metadata`\n(string values) and `allowed-tools`. Other keys are ignored, though they stay\nin the `SKILL.md` text. `fileSkill(files)` parses supplied files.\nAn app may ship only skills: `defineApp({}, {})` with packaged skills and no\n`tools` is valid.\nNames match their directories. Names are at most 64 characters, descriptions\n1024, and compatibility 500. Duplicate names or invalid resources fail the read.\n\n`githubSkills` resolves `ref` (default `HEAD`) once per call and reads all files\nfrom that commit. With `cache: ctx.cache`, it keeps each commit's file list, so\nlater reads of an unchanged commit skip the file listing.\n\nA private repository needs a GitHub account. Pass the account and its token;\nthe token needs read access to the repository's contents. Declare GitHub's\nhosts so the app holds only a handle and Executor sends the token on each\nrequest of the read:\n\n```ts\nimport { defineApp, defineProvider, dynamicSkills, object, secrets, string } from \"apps\";\nimport { githubSkills } from \"apps/skills\";\n\nconst github = defineProvider({\n name: \"GitHub\",\n hosts: [\"github.com\", \"raw.githubusercontent.com\"],\n auth: { token: secrets({ label: \"Token\", fields: object({ token: string() }) }) },\n});\n\n// One token is linked for everyone, so every member reads the same skills.\nexport default defineApp({ app: { accounts: { github } } }, async (ctx) => ({\n dynamicSkills: dynamicSkills({\n list: () =>\n githubSkills({\n repo: \"example-org/private-skills\",\n path: \"skills\",\n account: ctx.app.accounts.github,\n token: ctx.app.accounts.github.fields.token,\n fetch: ctx.fetch,\n signal: ctx.signal,\n cache: ctx.cache,\n }),\n }),\n}));\n```\n\nThe catalog is cached in that account's scope, so other accounts never read\nit. A token GitHub rejects fails the read naming the account. Without a token,\na private repository reads as missing.\n\n`wellKnownSkills({url, fetch: ctx.fetch, signal: ctx.signal})`\nloads a site's `/.well-known/agent-skills/index.json`. Its directory index is\n`{skills: [{name, version?, files: [\"SKILL.md\", \"references/example.md\"]}]}`.\nFiles live beneath the named directory beside that index. Helpers return complete\nUTF-8 text bundles and refuse redirects. Limits are\n1,000 files, 2 MB per response, and 20 MB total. With `cache: ctx.cache`, a\ncatalog older than `freshFor` (default 5 minutes) is never served unchecked: one\nrequest (the index, or the ref's commit) confirms it or loads the new publication\nfirst. Give every index entry a `version` that changes with its files, or each\ncheck reloads them. A check that fails or takes over 5 s fails the read.\n\nOmit `skills` to load packaged `skills//SKILL.md` and its text resources.\nAn explicit `skills` value replaces that default; `skills: []` disables it.\n`dynamicSkills` adds to whichever static catalog applies, so packaged and remote\nskills combine without extra code. A name in both fails the read.\n\n`folderSkills({ files: ctx.files, path: \"guides\" })` selects another packaged\nfolder. Its immediate subdirectories must be skill directories. Loose files\nbeside them, such as `README.md`, are ignored. A missing folder returns `[]`.\n`ctx.files` contains this version's text files outside `ui/` on every\nruntime; it never reads host files. They are bundled into the app's Worker, so\nthey count toward the 16 MiB source limit ([deploy.md](deploy.md)) and load once\nwhen the Worker starts, not on each call. All sources use one parser. Only\nselected folders are parsed, when the skills load. Invalid selected folders fail the read.\n\nThe MCP `skills` tool lists summaries with `{}` or `{app: \"installed-slug\"}`.\nRead with `{app, name: \"triage\"}`. Reuse the returned `version` and\n`revision` when reading a reference with `file`. The version pins code; revision detects remote\ncontent changes. A changed revision requires a fresh read. The dashboard bundle\nkeeps its documents and references together in one response.\n\nSkill reads evaluate the factory, call `dynamicSkills.list` and require a\nlinked account for each requirement. Current app and account access is checked. Use an account-free app for instructions\nthat must be readable before setup. The Executor app loads this guide through the\nsame public helper; discover its slug with `skills({})`.\n\nFiles, including scripts, are returned as text. Executor does not run them.\nDo not include secrets. Skills and `allowed-tools` never grant access or bypass\napprovals. Treat content as app-authored instructions, not system policy. Use the\nreturned `app.slug` when calling tools across copies and renamed installations.\n\n## Operation approvals\n\nDeclare `approval` in a query or mutation options object:\n\n```ts\nimport { always, never } from \"apps/operations/approval\"\n\n// On a tool that needs confirmation:\napproval: always(),\n// On a tool that can run without confirmation:\napproval: never(),\n```\n\nA custom synchronous or async callback receives `toolName`, decoded `toolInput`,\nand `signal`. Return `approved`, `denied`, or `user-approval`. The constructors infer the callback input from its schema. Annotate a shared\nfunction with `Approval` from `apps/operations/approval`.\nAssign the same function to several tools to share a policy. Attach approval to\none shared operation with `withApproval(operation, policy)`, and to the tools of\nan MCP, OpenAPI or GraphQL router with `withApprovals(router, (tool, name) => policy)`\n([integrations.md](integrations.md#approvals-for-imported-tools)).\n\nOnly the selected tool's callback runs, after input validation. Omitted approval\npermits execution. Invalid decisions and callback failures prevent the tool body\nfrom running. There is no app-level `policy` or `createExecutor` policy option.\n\nIn model mode, when execute returns `approval-required`, show its `elicitation.message` and reviewed\ninvocation to the user. This is an MCP form request with an empty `requestedSchema`.\nAfter the user answers, call `resume({ requestId, response: { action: \"accept\", content: {} } })`,\n`resume({ requestId, response: { action: \"decline\" } })`, or\n`resume({ requestId, response: { action: \"cancel\" } })`. Do not put tool arguments in\nresponse.content; this form only confirms the saved invocation. Resume continues the existing program and can return another\ninteraction. For `input-required`, show the form and return the user-provided\nfields in `response.content`; accept, decline and cancel all return to the running\ntool. Invalid form content leaves the request pending. Never execute the original source again to continue it. No native\nor browser prompt is opened by this mode; the agent must ask the user.\nAn `unavailable` response means that continuation cannot resume; report that earlier\ncalls may have completed. Do not remove the approval policy to bypass it. Discovery does not evaluate\napproval callbacks without arguments. Account access and app evaluation remain\nseparate trust decisions.\n\nWith `/mcp?elicitation_mode=native`, the client displays the policy confirmation\nthrough MCP `elicitation/create`. Execute waits for its answer and continues the\nsame program; `resume` is not exposed. This requires a client with form elicitation\nsupport on a compatible stateful MCP protocol. Keep the tool's approval policy in\neither mode. Running tools can ask for structured input with `await ctx.elicit({\nmode: \"form\", message: \"Name this result\", requestedSchema: { type: \"object\",\nproperties: { name: { type: \"string\" } }, required: [\"name\"] } })`. This returns\nan MCP response with `action` and optional `content`; the framework validates\naccepted content against the form. Handle decline/cancel in tool code. The same\ntool continues with its local state intact. This works in native or model mode, or with an SDK\nhost that supplies a delivery handler. The capability is unavailable during\nfactory evaluation/discovery and after the invocation closes. An earlier tool\npolicy approval never auto-answers these requests. Upstream MCP form elicitation uses this same path automatically for MCP\ntools. URL-mode input is not yet supported.\n\nWith `/mcp?elicitation_mode=browser`, pending requests include `approvalUrl`. Show\nthat link to the user, then call `resume({ requestId })` with no response. The user\nsigns in and answers in the browser. Do not submit an answer on their behalf.\nResume waits briefly; if it returns the same pending request, wait and collect\nagain. If it returns a new link, show that link too. The original program and\nrunning tool continue without replay. An unavailable request may have expired,\nbeen consumed, or been lost on restart; do not rerun the source automatically.\n\n## Cache and lazy operation sources\n\nUse `ctx.cache.get({ key, schema, freshFor, staleFor, load })` for shared JSON.\nPut every result dependency in the key. Use `ctx.cache.forAccount(account)` for\nprivate results; the host also scopes entries to current credentials. Use the\nloader's `fetch`, `signal`, and `cache` so stale refreshes can finish after the\nrequest. Pass `stale: \"revalidate\"` to await the load past `freshFor` instead of\nserving the old value; the loader can `read(key, schema)` the old value to confirm\nit cheaply. Errors are not cached. `invalidate(key)` also fences pending loaders.\n\nThe cache keeps an entry at most 7 days. A longer `freshFor` plus `staleFor`,\nor a longer `write` retention, is shortened to 7 days, taking `staleFor` first.\nA call that exceeds another limit fails with `CacheError` and code `capacity`,\nand the message names the limit:\n\n| Limit | Value |\n| ------------------------- | ------------------------------------- |\n| Key, as canonical JSON | 8,192 bytes |\n| Value, as JSON | 2,000,000 bytes |\n| One `readMany` or `write` | 128 entries and 8,000,000 bytes |\n| The app's whole cache | 100,000 entries and 128,000,000 bytes |\n\nA `load` has 90 seconds. A caller waits at most 10 seconds for another caller's\nload of the same key, then loads for itself without storing the result.\n\nUse `dynamicRouter({ list, resolve })` for large or remote catalogs. List tool\nmetadata separately from resolving one query or mutation. `accountRouter`\npreserves lazy resolution: a call resolves its one tool without running `list`.\nAgents can still call only tools `list` returns; MCP `call` and `execute` fail\nwith `UnknownTool` for any other name before it reaches `resolve`. Input\nvalidation and approvals still run on each call.\n\nA dynamic router can be the app's whole `tools` value, or be mounted under a key.\nNames are relative to the router and may contain dots. Mark queries with\n`readOnly: true`; other tools are mutations. An optional `meta()` supplies the\nrouter's title, description and instructions.\n\n```ts\nexport default defineApp(\n {},\n {\n tools: dynamicRouter({\n list: async () => [\n {\n name: \"ping\",\n description: \"Return pong\",\n inputSchema: { type: \"object\", properties: {} },\n readOnly: true,\n },\n ],\n resolve: async (name) =>\n name === \"ping\" ? query({ input: object({}) }, async () => \"pong\") : undefined,\n }),\n },\n);\n```\n\n`list` describes available tools; `resolve` returns the matching query or\nmutation declaration.\n", "app-authoring/ui.md": "## Private app UI\n\nAuthor app UIs as React SPAs. React is the only supported UI framework for now.\nAdd `ui/index.html`, a module script such as `ui/main.tsx`, and styles. The host\ncompiles browser assets alongside the server build. Declare `react` and\n`react-dom` in the app's package dependencies. The local product opens\neach configured app on its own localhost subdomain.\n\nUse local React components or browser-compatible npm component libraries.\nDeclare library dependencies and include their required styles and assets.\nDo not assume that the host runs custom build plugins required by a library.\n\nTailwind CSS v4 compilation is built in. Import `./style.css` from `ui/main.tsx`\nand start the stylesheet with `@import \"tailwindcss\";`. No Tailwind dependency,\nconfig file or build script is needed. Use complete class names in React code;\nthe build scans the browser bundle, including imported components and lazy\nchunks. Customize tokens with CSS `@theme`. Use `@source inline(\"...\")` for\nclasses supplied only at runtime. Do not use filesystem `@source` paths or\nJavaScript `@config` and `@plugin` files. Plain CSS and library styles still work.\nThe full Tailwind import includes Preflight, which resets browser button and\nform styles. Importing only `theme.css` and `utilities.css` omits those resets;\nuse that split only when you supply the required base styles yourself.\n\nFor hosted apps, discover and call `appUi.location` after deploying:\n\n```js\nreturn await tools.executor.appUi.location({\n path: { organization: \"\", app: \"\" },\n});\n```\n\nThe response is\n`{ status: \"ready\", url: \"https://..executor.website\", name, icon, menuBar }`\non Executor Cloud. Self-host uses its configured app domain. `name` is the\napp's name for a window or launcher; `icon` and `menuBar` say whether the active\nversion has `ui/icon.svg` and `ui/menubar.html` (see Desktop app below). Use the returned\nURL rather than constructing one. Before the first deploy it fails with\n`AppNotDeployed`. `status: \"unavailable\"` has `url: null` and a `reason`:\n`\"no_ui\"` when the active version has no UI, as for tool-only apps, or\n`\"no_app_domain\"` when the host has no app domain (on self-host the operator\nsets `EXECUTOR_APP_UI_BASE_URL`; a localhost dashboard needs none). `\"pending\"` and `\"failed\"`\nreport the setup of the team's app domain. Deploying builds and activates the UI;\nthere is no separate publish step. Give the URL to the user to open in a\nbrowser. The browser completes sign-in using their Executor session. MCP\ncredentials do not grant a browser session. A `403` response alone does not\nprove the URL is correct or that the UI renders; invalid hosts also return it.\nVerify the actual page before claiming that the UI works.\nUse an available authenticated browser session for that check. A fresh profile\nmay stop at sign-in. Successful tool calls or rows added by someone else do not\nverify the page's layout, controls or optimistic interactions.\n\nImport `createAppClient`, `queryReference`, and `mutationReference` from\n`apps/client`. Import server operation **types only** from `index.ts`; put shared\nschemas in a separate file. Use `client.queryAtom(reference, input, outputSchema)`\nwith `useAppQuery` from `apps/react`, and `client.mutate(reference, input,\noutputSchema)` for explicit writes. `client.query(reference, input, outputSchema)`\nreads once. Both operation types may fetch external APIs. External changes do\nnot invalidate subscriptions, and rolling back a SQL transaction cannot undo\nexternal effects. All callbacks use Promises; the framework runs Effect internally.\n\nDo not include an app ID or credentials in browser code. The host binds both\nidentity and authentication. Compiled imports and `ui/public/` files are retained\nwith the version. Import images and fonts from scripts or CSS. In `ui/index.html`,\nreference files with relative URLs. From script code, request `ui/public/` files\nby absolute path, such as `fetch(\"/data.json\")`. The page has no ``, so\nlinks, `#` fragments and history URLs resolve against the page itself. Each\nactivation automatically reloads open pages. SSR, React Server Components and\npublic sharing are not part of this version.\n\n`ui/index.html` is the app's main page. Build further screens as React routes:\nany path without a dot serves that page. App responses send\n`Content-Security-Policy: frame-ancestors 'none'`, so no page can be framed,\nnot even in an `