Skip to main content
Glama

Server Details

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

Ownership verified
Status
Healthy
Uptime
100.0% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
Repository
Server4Agent/server4agent-mcp
GitHub Stars
0
Server Listing
Server4Agent
ChatGPT
–
Claude
–

TDQS

A3.7/5.0

Scored across 41 tools

Disambiguation4/5

Most tools target a clearly distinct resource+action, and the descriptions actively disambiguate pairs like cleanup_project vs delete_project, deploy vs start_app, and import vs init. The main soft spot is the agent-run family (prompt, start_build, init_project, agent_session, connect_agent_environment), where boundaries take several sentences of prose to explain and an agent could still pick the wrong entry point.

Naming Consistency4/5

The dominant pattern is consistent snake_case verb_noun (create_project, get_server, list_secrets, delete_file, update_project). A handful of deviations weaken it: bare verbs deploy, prompt, exec, a noun-only agent_session, and the vague control_server whose action set (start/stop/restart) is hidden in the name.

Tool Count2/5

41 tools is well beyond the 3-15 sweet spot and heavy even for a broad hosting platform spanning servers, projects, files, secrets, domains, builds, runs and agent sessions. Several families (project lifecycle, secret binding, agent environments) inflate the surface, and a single flat namespace makes selection harder.

Completeness4/5

Coverage is strong: servers and projects have full CRUD plus lifecycle (deploy, cleanup, export/import), files have read/write/list/delete, secrets have set/attach/list/delete, and domains have add/check/remove. Minor gaps remain, e.g. no explicit stop_app or list_builds/list_runs to recover ids for get_build and get_run, forcing agents to remember returned identifiers.

Publisher details

Operator
Server4Agent · Publisher source
Vendor relationship
Not applicable
Privacy policy
Not provided
Trust center
Not applicable
Restrictions
No setup restrictions

Available Tools

41 tools
add_domainAdd a custom domainAInspect

Connect 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 until check_domain finds both. Custom domains are on paid plans; the allowance is counted across the account. The project still has to be public (deploy) for the domain to serve.

Inputs: domain (required), project_id (required). Returns: url, domain, status, problem, +2 more

agent_sessionStart or stop an agent sessionA
Destructive
Inspect

Start 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 remote URL the session returned: the server wakes and the session's tool calls run in the project's folder. The executor stops when you call stop, or after max_minutes. Anthropic sessions need no call: they are picked up on their own.

Inputs: action (required), project_id (required), remote_url, max_minutes, +1 more. Returns: action, status, project_id, max_minutes, +1 more

attach_secretBind a secret to a scopeA
DestructiveIdempotent
Inspect

Bind 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: passing value here changes it for every server and project that key is bound to. Give a project that needs its own value a key of its own.

Inputs: key (required), server_id (required), value, project_id. Returns: id, key, masked, created_at, +4 more

check_domainCheck a custom domainA
Idempotent
Inspect

Look 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 records. DNS changes can take a while to spread, so a pending result is normal right after adding the records; call it again later.

Inputs: domain (required), project_id (required). Returns: url, domain, status, problem, +2 more

cleanup_projectClean up ephemeral projectA
DestructiveIdempotent
Inspect

Clean 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.

Inputs: project_id (required). Returns: cleaned_up, project_id

connect_agent_environmentConnect an agent environmentA
Idempotent
Inspect

Connect 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 OpenAI's Agents API (provider openai). The owner creates the environment and its environment key in the platform's console, and can connect it on the project's page in the dashboard instead. An account API key is refused. anthropic needs environment_id as well: sessions are then picked up on their own, and the server sleeps between them. openai needs only the key: each session brings its own environment, which you start with agent_session. The key is stored encrypted and no tool returns it. Connecting again for the same provider replaces the key.

Inputs: key (required), provider (required), project_id (required), environment_id. Returns: replaced, environment

control_serverStart, stop, or restart serverA
Destructive
Inspect

Pause 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.

Inputs: action (required), server_id (required). Returns: id, status

create_projectCreate projectAInspect

Create a project on a server: the home for one web page, site, app, API or bot, with its own URL at .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_project after); default is "persistent" for long-lived monitors / dashboards / tools. Pass template (see list_templates) to apply a starter's defaults, or a source to seed the workspace from your own code (kind git/archive); name is derived from the repo/archive when omitted. Pass secrets to set project-scoped env vars at creation (values are write-only). Explicit fields override the template. Fails if the server is at its tier's project cap. Returns listen_port, the port inside the box that this project's URL is routed to: a project serves only while a process is listening there, so bind that rather than a port of your own choosing.

Inputs: server_id (required), name, access, source, +6 more. Returns: id, url, name, note, +16 more

create_serverCreate serverAInspect

Provision 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 server); values are write-only. Pass kind: "browser" for a box with a screen and a browser on it. Returns the server id. A new server takes about a minute to start: poll get_server until provisioning reads ready before writing files or starting apps.

Inputs: kind, task, tier, region, +2 more. Returns: id, url, kind, tier, +2 more

delete_fileDelete workspace fileB
DestructiveIdempotent
Inspect

Delete 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.

Inputs: path (required), server_id (required), project_id. Returns: path, deleted, project_id

delete_projectDelete projectA
DestructiveIdempotent
Inspect

Delete a project. The public URL stops working immediately.

Inputs: project_id (required). Returns: deleted

delete_secretDelete a secretA
DestructiveIdempotent
Inspect

Delete a secret and all of its bindings.

Inputs: secret_id (required). Returns: deleted

delete_serverDelete serverA
DestructiveIdempotent
Inspect

Tear down a server and every project on it.

Inputs: server_id (required). Returns: deleted

deployDeploy to a live URLAInspect

Deploy a project to its live public URL at .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 (or publishing, when it is public but has not answered yet). It builds and starts nothing: when nothing is listening it refuses and leaves the project as it was, so start the app first with start_app (after write_file, for code you write yourself), or have the on-server agent build and start it with start_build or prompt. Pass project_id; a server with exactly one project deploys that one without it.

Inputs: server_id (required), project_id. Returns: url, name, note, access, +5 more

disconnect_agent_environmentDisconnect an agent environmentA
DestructiveIdempotent
Inspect

Disconnect 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.

Inputs: provider (required), project_id (required). Returns: deleted

execRun a shell commandA
Destructive
Inspect

Run 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 workspace user, the same one the agent and the apps run as, so what it creates stays editable by both; prefix a command with sudo when it needs root. A project command also gets the project's secrets as env. The command's session ends with the call, so do not use it to start an app or any other long-running process: use start_app, which keeps it running, brings it back after a restart, and tells you whether it answered. Output comes back for about 20 seconds: a command that runs longer keeps going on the server, but its output does not return, and the server's other commands wait for it. Start long work (a big install, a long build) in the background with its output in a file, then read the file.

Inputs: command (required), server_id (required), project_id. Returns: stdout

export_projectExport project to a bundleA
Idempotent
Inspect

Package 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 bundle never carries a secret value. Hand the file to import_project on this deployment or any other Server4Agent deployment to recreate the project there.

Inputs: project_id (required), ttl_seconds. Returns: env, url, bytes, filename, +2 more

get_buildGet build statusA
Read-only
Inspect

Get 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, and when run_status is awaiting_input, answer its question with prompt and follow_up_of set to that run_id.

Inputs: build_id (required), server_id (required). Returns: url, error, steps, run_id, +4 more

get_download_urlGet file download linkAInspect

Mint 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 has it, so only mint it for files that are OK to share.

Inputs: path (required), server_id (required), project_id, ttl_seconds. Returns: url, path, expires_at, project_id

get_logsGet server logsA
Read-only
Inspect

Read 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/.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, or paused), you get the tails saved earlier with stale: true and a note saying how old they are. An app keeps the same log file across restarts. Pass project_id to get only that project's logs. Use this to debug a crashing app or check what a background process is doing.

Inputs: server_id (required), lines, project_id. Returns: note, files, stale, updated_at

get_projectGet project detailsA
Read-only
Inspect

Get 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 null on a project created before the field existed, and on a box old enough to predate the in-pod proxy the published port (8080) is reached directly instead, so treat those two as the fallback when an app that binds listen_port still cannot be reached. url_status covers only whether the address and its certificate are ready, so it reads "active" for a public project with nothing listening; it is not a health check. run_plan is how bring-up installs and starts it, or null if no plan has been settled yet; a run_plan whose port is null means the project isn't a server.

Inputs: project_id (required). Returns: id, url, name, slug, +16 more

get_runGet run statusA
Read-only
Inspect

Get 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.

Inputs: run_id (required), server_id (required). Returns: log, goal, usage, change, +8 more

get_serverGet server detailsB
Read-only
Inspect

Get 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.

Inputs: server_id (required). Returns: id, url, kind, task, +11 more

get_usageGet spend & budgetA
Read-only
Inspect

Get 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 reached. Only agent runs stop: write_file, exec, start_app and deploy keep working, so the code can still be written and run by hand.

Inputs: no named parameters. Returns: plan, reason, blocked, servers, +7 more

import_projectImport project from a bundleAInspect

Recreate 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 bundle_url, which carries bundles up to 25 MB. The new project is always private, gets its own slug and URL, and starts bringing itself up right away (the bundle only reaches the server as part of that run). Env vars the bundle names are bound only where this account already holds a value, and no .env file travels: the result lists what is still missing in missing_env, and the app will not run until you set those with set_secret.

Inputs: server_id (required), name, bundle, bundle_url. Returns: id, url, name, slug, +20 more

init_projectStart a project's bring-upA
Destructive
Inspect

Start 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 wrote yourself: start that one with start_app.

Inputs: project_id (required), proceed. Returns: init_phase, project_id, init_run_id

list_agent_environmentsList agent environmentsA
Read-only
Inspect

List 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.

Inputs: project_id (required). Returns: environments

list_filesList workspace filesA
Read-only
Inspect

List 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.

Inputs: server_id (required), project_id. Returns: files, project_id

list_projectsList projectsA
Read-only
Inspect

List projects. Optionally filter by server_id to see what's already on a particular server before creating a new one.

Inputs: server_id. Returns: projects

list_secretsList secretsA
Read-only
Inspect

List the account's secrets: keys, notes, and where each is bound (servers/projects). Never returns values; only a masked hint.

Inputs: no named parameters. Returns: secrets

list_serversList serversA
Read-only
Inspect

List 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.

Inputs: no named parameters. Returns: servers

list_templatesList project templatesA
Read-only
Inspect

List 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_kind null). Pass the id as template to create_project to pre-pick sensible defaults for that use case.

Inputs: no named parameters. Returns: templates

promptPrompt the on-server agentA
Destructive
Inspect

Send 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_app and deploy cost nothing. Returns a run_id to poll with get_run. Each call starts a new conversation unless you pass follow_up_of: the run_id of an earlier run to continue, so the agent remembers what it did there. Use it to answer a run that is awaiting_input, or to ask for changes to what a run built. Pass project_id to work inside one project's workspace, or omit it to work across the whole server workspace (e.g. scaffolding a new project).

Inputs: prompt (required), server_id (required), project_id, follow_up_of. Returns: run_id, status, resumed, project_id, +1 more

read_fileRead workspace fileA
Read-only
Inspect

Read 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.

Inputs: path (required), server_id (required), encoding, project_id. Returns: path, content, encoding, project_id

remove_domainRemove a custom domainA
DestructiveIdempotent
Inspect

Disconnect 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.

Inputs: domain (required), project_id (required). Returns: deleted

set_secretSet a secretA
DestructiveIdempotent
Inspect

Create 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.

Inputs: key (required), value (required), description. Returns: id, key, masked, created_at, +4 more

start_appStart or restart a project's appA
DestructiveIdempotent
Inspect

Start 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 to about 10 seconds for the port to answer. Calling it again with the same name restarts it, which is how you pick up changed code. Returns whether the app is answering, its log tail, and the URL. A project's URL serves only while its visibility is public, so set that with update_project when the app should be reachable. For static files, put them under public/ and serve that folder, e.g. "python3 -m http.server $PORT --bind 0.0.0.0 --directory public". Never serve the project folder itself, which holds the project's secrets in .server4agent/env.

Inputs: command (required), project_id (required), name. Returns: url, name, notes, access, +8 more

start_buildStart a buildA
Destructive
Inspect

Have 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 through each stage in order: plan, scaffold, write the code, install, build and test, then start it on the project's port. Returns a build_id to poll with get_build, and the run_id of the run doing the work. Pass project_id to build inside that project's workspace folder, then deploy it to put the result online; omit project_id to build at the server workspace root.

Inputs: goal (required), server_id (required), project_id. Returns: run_id, status, build_id, project_id

update_projectUpdate projectA
DestructiveIdempotent
Inspect

Rename 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.

Inputs: project_id (required), name, access, run_plan, +4 more. Returns: id, url, name, access, +5 more

update_serverUpdate serverB
DestructiveIdempotent
Inspect

Update a server's nickname, or how much its projects may see of each other.

Inputs: server_id (required), task, region, project_sharing. Returns: id, task, region, project_sharing

write_fileWrite or overwrite fileA
DestructiveIdempotent
Inspect

Write 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 binary bytes. One call carries up to 512 KB of content; write anything larger in pieces, or fetch it on the server with exec. Writing a file does not serve it: a project's URL is answered by a running app, so after writing the files call start_app (a changed server needs start_app again to pick the change up).

Inputs: path (required), content (required), server_id (required), encoding, +1 more. Returns: path, written, encoding, project_id

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.