A deep dive into the .deploxy.json file, managing environment variables, regional settings, and other advanced deployment configurations.
.deploxy.json
File.deploxy.json
file with commonly used options:
authToken
(required): Your Access Token from the Tokens page.defaultDeployRegion
(required): The primary AWS region for deployment. See Regional Configuration.stdioArgsIndex
(optional): A delimiter for command-line arguments. Defaults to --args
. See Distinguishing Arguments with stdioArgsIndex
.packageType
(required): Specifies the package type. Currently, only "js"
(JavaScript/TypeScript) is supported.nodejsRuntime
(optional): Specifies the Node.js runtime for your serverless function (e.g., "nodejs22x"
). Defaults to "nodejs22x"
.memorySizeMB
(optional): Defines the memory allocation for your serverless function in megabytes. This setting affects billing; for details, refer to our Pricing documentation. Defaults to 256
.injectedEnv
(optional): Securely provides environment variables to your server. See Secure Environment Management with injectedEnv
.packageManager
(optional): Specifies the package manager (npm
, pnpm
, yarn
). Defaults to npm
. See Package Manager Configuration.injectedEnv
injectedEnv
property is the primary method for securely providing environment variables to your MCP server. These variables are injected into your serverless environment during deployment and are never exposed to the end-user’s client.
.deploxy.json
file often contains sensitive data like API keys. To prevent it from being committed to version control, you must add this file to your .gitignore
.injectedEnv
object must be strings. These values are read from your .deploxy.json
file at deployment time and made available inside your server code via process.env
.
defaultDeployRegion
sets the primary deployment location for your server. For end-users on the Free Plan, all operations are routed to this region unless they specify a different one using the --region
flag. This routing behavior does not apply to Pay-As-You-Go plans.
stdioArgsIndex
--region
) and your server’s custom parameters.
Deploxy processes all command-line arguments up to the stdioArgsIndex
value. Any arguments appearing after this delimiter are passed directly to your Stdio MCP server’s process.argv
array.
stdioArgsIndex
delimiter and any arguments intended for your MCP server must come after all Deploxy-specific arguments.For instance, if you place a flag like --region
after the stdioArgsIndex
delimiter, it will not be interpreted by Deploxy. Instead, it will be passed directly to your server’s process.argv
array. This is the expected behavior, so always ensure your command-line arguments are ordered correctly..deploxy.json
file. The default is --args
.
npm
, pnpm
, and yarn
. If this property is not set, npm
is used by default.