Server4Agent

com.server4agent/server4agent · v1.0.9 · agents-and-memory

Server4Agent is healthy: it completed an MCP handshake in 1078 ms and exposes 41 tools.

MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.

Endpoint: https://mcp.server4agent.com (streamable-http)

Repository · Website · JSON · Add to my inventory

Facts

Users (last 30 days)0
HandshakeHealthy
Auth neededNone
Tool count41
Latency1078 ms
Last checked (UTC)2026-11-30T10:00:15.583Z

Health history

Checked (UTC)StatusLatencyError
2026-11-30T10:00:15.583ZHealthy1078
2026-11-28T00:45:54.885ZNeeds auth258initialize: HTTP 401
2026-11-25T17:05:22.420ZNeeds auth1902initialize: HTTP 401
2026-11-23T11:26:01.059ZNeeds auth1795initialize: HTTP 401
2026-11-21T07:40:37.892ZNeeds auth810initialize: HTTP 401
2026-11-19T05:05:14.635ZNeeds auth932initialize: HTTP 401
2026-11-17T03:40:14.956ZNeeds auth1262initialize: HTTP 401
2026-11-15T03:45:47.850ZNeeds auth2334initialize: HTTP 401
2026-11-13T05:05:25.320ZNeeds auth483initialize: HTTP 401
2026-11-11T07:25:41.184ZNeeds auth2841initialize: HTTP 401
2026-11-09T11:10:19.466ZNeeds auth930initialize: HTTP 401
2026-11-07T16:05:21.392ZNeeds auth596initialize: HTTP 401
2026-11-05T22:00:44.811ZNeeds auth505initialize: HTTP 401
2026-11-04T04:25:33.698ZNeeds auth2861initialize: HTTP 401
2026-11-02T12:00:30.987ZNeeds auth2629initialize: HTTP 401
2026-11-02T12:00:30.353ZNeeds auth2115initialize: HTTP 401
2026-10-31T20:45:25.621ZNeeds auth976initialize: HTTP 401
2026-10-30T06:20:23.855ZNeeds auth471initialize: HTTP 401
2026-10-28T16:35:11.471ZNeeds auth695initialize: HTTP 401
2026-10-27T03:30:16.607ZNeeds auth704initialize: HTTP 401

Tools (41)

create_serverProvision a sized server box. Servers hold projects; each project gets a stable URL that serves once you make it public. One server holds several projects, so check list_servers for one with room before creating another. Pass `secrets` to set server-wide env vars (shared by every project on the serv
update_serverUpdate a server's nickname, or how much its projects may see of each other.
delete_serverTear down a server and every project on it.
control_serverPause a server (stop), resume it (start), or reboot it (restart). A paused server stays down until it is started again: its projects are offline, it does not bill, and tools that reach it (prompt, exec, start_app, the file tools, start_build) answer that it is paused instead of waking it.
list_serversList your servers with their tier, kind, status, project sharing, and current project count. kind is standard for a headless box or browser for one with a screen and a browser on it.
get_usageGet the account's AI spend and budget: how much has been spent this billing period, the plan's included credits, any budget cap, and whether new tasks are blocked (with the reason). Call this before a long series of prompts to check remaining budget, since dispatch fails once a spend ceiling is reac
get_serverGet a server's tier, kind, status, capacity, project count, and project sharing. kind is standard for a headless box or browser for one with a screen and a browser on it.
list_projectsList projects. Optionally filter by server_id to see what's already on a particular server before creating a new one.
get_projectGet a single project: name, slug, description, public URL, listen port, run plan, timestamps. listen_port is the port inside the box that this project's URL is routed to, so an app here binds that rather than a port of its own choosing, and has to be running for the URL to answer. listen_port is nul
list_templatesList the available project starters. Each template has an id, a human label, a one-line description, default visibility/lifecycle, and a source_kind. The first entries are import templates (source_kind "git" or "archive") that seed a project from your own code; the rest are ordinary starters (source
create_projectCreate a project on a server: the home for one web page, site, app, API or bot, with its own URL at <slug>.apps.server4agent.com. Projects default to private; set visibility to "public" to expose that URL. Use lifecycle="ephemeral" for one-shot work that should be cleaned up when done (call cleanup_
update_projectRename a project, update its description, change visibility, link access or lifecycle, or correct its run plan. The slug + URL stay the same. Setting run_plan only records how the project should be brought up; call init_project when you want it rebuilt.
delete_projectDelete a project. The public URL stops working immediately.
cleanup_projectClean up an ephemeral project once its task is done. Deletes the workspace, retires the slug, and frees the project slot. Errors on persistent projects; use delete_project for those.
init_projectStart or resume bring-up for a project seeded from a git/archive source: the on-server agent installs dependencies, starts the app, and confirms it responds. Returns a run_id to poll with get_run. Set proceed to true to continue past still-missing optional secrets. Not for a project whose files you
export_projectPackage a project into a portable bundle and return a time-limited download link. The bundle carries the project's source tree, its settings, its run plan, and the NAMES of the env vars it needs. Left out: dependency caches, git history, and any .env or credential file in the workspace, so the bundl
import_projectRecreate a project on a server from a bundle that export_project produced, here or on another Server4Agent deployment. Pass the bundle base64 encoded in `bundle`, which the request size limit holds to about 3 MB, or, for a bundle exported on this deployment, the `url` export_project returned in `bun
set_secretCreate or update a secret (an env var, key → value) on the account. One secret per key; setting an existing key updates its value. Values are write-only: never returned by any tool. Use attach_secret to bind it to a server or project.
list_secretsList the account's secrets: keys, notes, and where each is bound (servers/projects). Never returns values; only a masked hint.
delete_secretDelete a secret and all of its bindings.
attach_secretBind a secret to a scope so runs there see it as an env var. Server-wide when only server_id is given; project-scoped when project_id is also given. Pass value to set-and-bind in one call; omit it to bind an existing secret by key. A key has one value on the account, shared everywhere it is bound: p
promptSend a freeform prompt to the on-server agent. It plans, writes code, runs commands, and ships whatever the prompt asks for. It spends the account's AI budget, so use it when the user asks for the on-server agent or to continue a run it started; to build something yourself, write_file, exec, start_a
execRun a shell command on the server and return its output. Pass project_id to run inside that project's workspace folder, with PORT set to the project's routed port; omit it to run at the server workspace root. For one-off work: installing dependencies, building, inspecting files. Runs as the workspac
start_appStart a project's app and keep it running: the step that puts a project online after its files are written. Runs `command` in the project folder as a background process with PORT set to the project's routed port (the app must listen on PORT), records it so it comes back after a restart, and waits up
list_filesList paths in the server's workspace. Pass project_id to list only that project's folder (paths come back relative to the project); omit it to list the whole server workspace.
read_fileRead a file from the server's workspace. With project_id, path is resolved inside that project's folder; without it, path is relative to the server workspace root. Use encoding:"base64" for binary files (e.g. .xlsx, images); plain text mode will corrupt non-text bytes.
write_fileWrite or overwrite a file in the server's workspace. With project_id, path is resolved inside that project's folder; without it, path is relative to the server workspace root. Use encoding:"base64" to write binary content (e.g. a generated .xlsx); plain text mode assumes UTF-8 and will corrupt binar
delete_fileDelete a file from the server's workspace. With project_id, path is resolved inside that project's folder; without it, path is relative to the server workspace root.
get_download_urlMint a time-limited link to download one file from the server's workspace, e.g. after generating a report or converting a file, hand this URL back to the user instead of the raw content. With project_id, path is resolved inside that project's folder. The link needs no login and works for anyone who
start_buildHave the on-server agent build a web page, site, app or API from a plain-language goal. Use it only when the user asks for that agent: it counts against the AI budget like prompt, and you can write the code yourself with write_file, exec and start_app, then deploy. Starts an agent run that works thr
get_buildGet a build's status. The steps move together: running while the run works, done when it finished, failed when it did not (status still reads completed, and error says why). url is the project's address once it is built and public. run_id is the run doing the work: get_run shows its live progress, a
get_runGet a run's status, its latest progress note, the agent's final response, and what it changed in the workspace (commit, branch, files). Poll this with the run_id returned by prompt or init_project.
get_logsRead the latest log tails from a server: one entry per log file that a project's processes have written (each long-running process appends to .server4agent/<name>.log in its project folder). Read live from the server at the moment you call. If the server does not answer in time (starting, restarting
deployDeploy a project to its live public URL at <slug>.apps.server4agent.com: the last step in putting a web page, site, app or API online. Checks that something in the project is listening on its `listen_port`, makes the project public, and checks its URL answers, then returns that URL with status live
add_domainConnect a custom domain the user owns to a project, so the app also answers at that address over HTTPS. Returns the two DNS records the user adds at their DNS provider: a CNAME that points the domain at the project's address, and a TXT record that proves they own it. Nothing is served on the domain
check_domainLook up a custom domain's DNS records now and, when both are right, switch it on: the certificate is issued automatically and the domain starts serving within a few minutes. Returns the domain's status (pending, verified, active or cert_failed) and, while pending, what is still wrong with the record
remove_domainDisconnect a custom domain from a project. It stops serving and its certificate is removed; the project keeps its own address. The DNS records stay at the user's DNS provider until they delete them.
connect_agent_environmentConnect a hosted agent platform's self-hosted environment to a project, so that platform's agent sessions run their tools (shell, files, code) inside the project's folder on this server instead of in the platform's own sandbox. The platforms are Anthropic's Managed Agents (provider anthropic) and Op
list_agent_environmentsList the agent environments connected to a project, with each one's status: connecting, ready (waiting for a session), running (a session is working in the project), paused (the project or server is paused) or error, with the problem in words. Keys are never returned, only their last four characters
disconnect_agent_environmentDisconnect an agent environment from a project. Sessions stop being picked up, any session running in the project is stopped, and the stored key is deleted. The environment itself stays on the platform until the owner deletes it there.
agent_sessionStart or stop the executor for one hosted agent session in a project, for a platform whose sessions each bring their own environment. That is OpenAI's Agents API, so the project needs an openai environment connected. Call start right after your app creates the session, with the environment id and re