Deploy configuration reference
This reference is for developers deploying a FastMCP, SDK, or other Python with arcade deploy. It lists every deploy setting, what the server receives as environment values and secrets, and the names Arcade reserves. A FastMCP 4 server that needs no environment values, secrets, or key often needs no settings at all. For the steps to deploy, see Deploy a FastMCP or MCP SDK server.
Where the settings live
Put the deploy settings in pyproject.toml under [tool.arcade.deploy]:
[project]
name = "expense-tools"
version = "1.0.0"
requires-python = ">=3.10"
dependencies = ["fastmcp==4.1.8"]
[tool.arcade.deploy]
environment = { EXPENSES_API_URL = "https://expenses.example.com" }
secrets = ["EXPENSES_API_TOKEN"]A without a pyproject.toml, such as one with only a requirements.txt, puts the same settings under [deploy] in an arcade.toml beside it:
[deploy]
environment = { EXPENSES_API_URL = "https://expenses.example.com" }
secrets = ["EXPENSES_API_TOKEN"]Use one file or the other. arcade deploy refuses a with deploy settings in both.
Settings
| Setting | Type | Default |
|---|---|---|
command | string | Detected |
environment | table of strings | None |
secrets | list of names | None |
api_key | table | None |
oauth_client | table | None |
path | string | /mcp, then / |
apt_packages | list of Debian package names | None |
There’s no port setting. Arcade finds the loopback port the server listens on.
command
The command that starts the server, run from the directory with the project’s environment first on PATH. Set it when arcade deploy can’t find a start command, or when the server needs different arguments:
[tool.arcade.deploy]
command = "uvicorn app:app --host 127.0.0.1 --port $PORT --workers 2"Without command, arcade deploy uses fastmcp run for a fastmcp.json or for the file that creates a single FastMCP(...) or MCPServer(...) object, and then python <file> for an SDK script that calls run("streamable-http").
The server must listen on 127.0.0.1. HOST and PORT hold a suggested address, which the command can pass on as above; a server that picks its own loopback port works too.
environment
Environment values the server starts with, under the names you give them. Use these for settings that aren’t secret, such as URLs, regions, or an OAuth issuer.
[tool.arcade.deploy]
environment = { AWS_REGION = "us-east-1", LOG_LEVEL = "info" }Values are stored and shown as written. Put anything sensitive in secrets.
secrets
Names of secrets the server starts with. arcade deploy takes each value from the environment it runs in, for example your shell or a CI secret, and refuses the deploy, naming the secret, when one has no value.
[tool.arcade.deploy]
secrets = ["EXPENSES_API_TOKEN", "AWS_SECRET_ACCESS_KEY"]A secret’s value never appears in the command’s output, the Servers page, the server’s details, or its release events.
api_key
The static key the server checks on each request. Set it only when the server checks a key; a server with no authentication, or one that verifies OAuth tokens, doesn’t need it.
| Field | Required | Meaning |
|---|---|---|
env | Yes | The environment variable the server reads its key from |
header | Yes | The header the server expects the key in |
scheme | No | A prefix before the key in the header, such as Bearer |
[tool.arcade.deploy]
api_key = { env = "API_KEY", header = "Authorization", scheme = "Bearer" }Arcade starts the server with the key in env and sends header with the key on every call it forwards to the server. The key comes from a secret with the same name as env when you declare one. Otherwise the installation generates a key that only it and the server hold, which suits a server that reads its key from env. When the key is written in the server’s code, declare env as a secret and set it to that key:
[tool.arcade.deploy]
secrets = ["EXPENSE_API_KEY"]
api_key = { env = "EXPENSE_API_KEY", header = "Authorization", scheme = "Bearer" }arcade deploy starts the server locally with the key and refuses the deploy if the server rejects it.
oauth_client
The OAuth client Arcade signs in with, for a server whose authorization server doesn’t support dynamic client registration, such as Microsoft Entra ID.
| Field | Required | Meaning |
|---|---|---|
client_id | Yes | The client ID of the app you registered for Arcade |
client_secret_env | No | The environment variable that holds the client secret when you run arcade deploy. Omit it for a public client. |
[tool.arcade.deploy]
oauth_client = { client_id = "8f2c4e1a-0000-4000-8000-000000000000", client_secret_env = "ENTRA_CLIENT_SECRET" }arcade deploy prints the callback URL to register in the app. Leave oauth_client out for an authorization server that supports dynamic client registration; Arcade registers itself.
path
The path the server answers on, for a server mounted somewhere other than /mcp or /. It must start with /.
[tool.arcade.deploy]
path = "/rpc"A server that answers at none of /mcp, /, or path fails to become ready, with a reason that asks for the path.
apt_packages
Debian packages that provide system libraries the server’s packages load and their wheels don’t include, such as the unixODBC driver manager that pyodbc needs. List up to 64 package names.
[tool.arcade.deploy]
apt_packages = ["unixodbc"]The runner installs them from a pinned Debian trixie snapshot into the server’s environment and puts their libraries on the library search path when it starts the server. Drivers that come from a database vendor rather than from Debian, such as msodbcsql18 or Oracle Instant Client, aren’t supported yet. See System libraries.
Environment values and secrets
A deployed server receives every environment value and secret it declares, under the name it declares. Nothing else from your machine reaches it.
Cloud SDK settings work under their usual names. Declare AWS_, GOOGLE_, and AZURE_ names, such as AWS_REGION, AWS_ACCESS_KEY_ID, GOOGLE_APPLICATION_CREDENTIALS, or AZURE_CLIENT_ID, and the server gets them as declared, even on an installation where the cluster also sets cloud identity variables.
Each arcade deploy sends the full set of environment values and secrets from the deploy settings and replaces what the server had. You can also change environment values and secrets on the server’s page in the Dashboard without deploying again; the next arcade deploy replaces those changes too.
Reserved names
The runtime sets these names itself, so a server can’t declare them as an environment value, a secret, or an api_key env. A deploy that declares one is refused, naming it.
| Reserved | Why |
|---|---|
Any name starting with ARCADE_RUNNER_, such as ARCADE_RUNNER_MODE | The runner’s own settings |
Any name starting with ARCADE_TENANT_ | Reserved for the platform |
Any name starting with ARCADE_TELEMETRY_ or KUBERNETES_ | Set by the platform and the cluster |
ARCADE_BUNDLE_URL, ARCADE_BUNDLE_KEY, ARCADE_BUNDLE_DIR, ARCADE_BUNDLE_NAME, ARCADE_BUNDLE_ENTRYPOINT, ARCADE_ARTIFACT_STORE_URL | Where the runner fetches and unpacks the server |
ARCADE_WORKER_SECRET | The key Arcade signs requests to the runner with |
WORKER_PORT, WORKER_PACKAGES, WORKER_CACHE_ENABLED, WORKER_CACHE_BUCKET, WORKER_BUNDLE_BUCKET, WORKER_BUNDLE_PATHS, WORKER_API_CONFIG_ENABLED | The runner’s older setting names |
PATH, HOME, TMPDIR, FASTMCP_HOME | Set to the server’s environment and writable directories |
UV_PROJECT_ENVIRONMENT, UV_CACHE_DIR, UV_PYTHON_DOWNLOADS, PIP_CACHE_DIR | Set for installing the server’s dependencies |
Change a deployed server
Everything on this page except environment values and secrets is read-only once deployed. The Dashboard and the API don’t edit a deployed server’s command, path, api_key, oauth_client, or apt_packages. Change the deploy settings and run arcade deploy again.
Last updated on
FastMCP and MCP SDK servers
Deploy an existing FastMCP, MCP SDK, or other Python MCP server with arcade deploy, without converting it to the Arcade MCP Framework
Runtime environment
What a FastMCP, MCP SDK, or other Python MCP server deployed with arcade deploy runs on, how its dependencies install, and what each readiness reason means