Code mode (preview): the AI writes a script against a typed foundry.* API and runs it in a sandbox.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add --transport http foundry-code-mode https://foundry-mcp.com/mcp/code~/.codex/config.toml
[mcp_servers.foundry-code-mode]
url = "https://foundry-mcp.com/mcp/code"
# codex mcp add foundry-code-mode --url https://foundry-mcp.com/mcp/code~/.cursor/mcp.json
{
"mcpServers": {
"foundry-code-mode": {
"url": "https://foundry-mcp.com/mcp/code"
}
}
}.vscode/mcp.json
{
"servers": {
"foundry-code-mode": {
"type": "http",
"url": "https://foundry-mcp.com/mcp/code"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"foundry-code-mode": {
"httpUrl": "https://foundry-mcp.com/mcp/code"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"foundry-code-mode": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://foundry-mcp.com/mcp/code"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"foundry-code-mode": {
"url": "https://foundry-mcp.com/mcp/code"
}
}
}