env key of your mcpServers entry. Changes take effect the next time your MCP host (e.g. Claude Desktop) restarts the server process.
Here is the full MCP config structure as a reminder:
Required
Your Stellar wallet secret key, starting with
S. This key signs all transactions — keep it secret and never commit it to version control. Generate a new keypair on Stellar Lab or with the Stellar CLI.Network
The Stellar network to connect to. Accepted values:
testnet or mainnet. Testnet is the default — switch to mainnet only when you are ready to use real funds.Spending limits
These two variables configure the off-chain spending limit engine. Both are required whenPOLICY_CONTRACT_ID is not set — Nebula will block all transfers until they are provided.
Maximum amount (in XLM or USDC) allowed per individual transfer, x402 payment, or MPP session open. Must be a positive number.
Maximum cumulative amount (in XLM or USDC) allowed across all spend actions in a rolling 24-hour window. Must be a positive number greater than or equal to
MAX_PER_CALL.When
POLICY_CONTRACT_ID is set, MAX_PER_CALL and MAX_PER_DAY are ignored for enforcement. The on-chain Soroban policy contract takes precedence. You can still set them as fallback values if you ever remove POLICY_CONTRACT_ID.On-chain policy
The Soroban contract address (
C...) of a deployed nebula-policy contract. When set, all spend actions are checked and recorded on-chain before any transaction is signed. Deploy a new policy contract with the deploy_policy tool.Absolute path to a custom
policy.wasm file. Use this only if you need to override the WASM bundled inside the nebula-mcp npm package (e.g. for development or custom policy logic).Treasury
The asset managed by the automatic treasury rebalancer. Accepted values:
xlm or usdc.Minimum liquid balance to keep in the wallet. Any balance above this threshold is automatically deposited into Blend to earn yield. Balances below this threshold trigger a Blend withdrawal on the next rebalance cycle.
How often (in seconds) the background treasury rebalancer runs. Lower values mean faster reactions to balance changes; higher values reduce on-chain transaction frequency.
Amount of XLM (in lumens) reserved for transaction fees when
TREASURY_ASSET is xlm. This amount is excluded from Blend deposits to ensure your agent always has enough XLM to pay fees.Optional cap on the amount moved in a single treasury rebalance transaction. When unset or
0, the rebalancer moves the full excess or deficit in one transaction. Set this to limit exposure from large single rebalance moves.MPP
Default recipient Stellar public address (
G...) for MPP payment channel payouts. Required when opening an MPP session if you do not pass recipient directly to mpp_open_session.Absolute path to a custom
channel.wasm file. Use this only if you need to override the bundled MPP channel contract WASM.Agent identity (Stellar8004)
These optional variables set the metadata displayed for your agent’s on-chain identity after callingregister_identity.
Display name for this agent’s on-chain identity, e.g.
"My Research Agent".Short description of this agent’s purpose, shown in the Stellar8004 identity registry.
URL to an avatar image for this agent’s on-chain profile.