### Example MCP Server Configuration (JSON) Source: https://kiro.dev/docs/autonomous-agent/sandbox/mcp This JSON object demonstrates how to configure an AWS knowledge MCP server. It specifies the command to run and its arguments, allowing the agent to access external data sources during task execution. The configuration is loaded when the sandbox starts. ```json { "mcpServers": { "aws-knowledge-mcp-server": { "command": "uvx", "args": [ "fastmcp", "run", "https://knowledge-mcp.global.api.aws" ], "env": {} } } } ``` -------------------------------- ### Dockerfile Configuration for Node.js Application Source: https://kiro.dev/docs/autonomous-agent/sandbox/devfile This Dockerfile sets up a Node.js application environment. It uses the `node:18` image, installs dependencies using `npm`, copies application code, sets the environment to production, exposes port 3000, and defines the start command. Requires `npm` and Node.js. ```dockerfile FROM node:18 WORKDIR /app # Install dependencies COPY package*.json ./ RUN npm install # Copy application code COPY . . # Set environment variables ENV NODE_ENV=production # Expose port EXPOSE 3000 # Start command CMD ["npm", "start"] ``` -------------------------------- ### MCP Configuration with Environment Variables and Secrets (JSON) Source: https://kiro.dev/docs/autonomous-agent/sandbox/mcp This JSON configuration illustrates how to securely pass credentials and configuration values to MCP servers using environment variables and secrets. The `${key_name}` syntax is used to reference these values, which are resolved when the sandbox starts. ```json { "mcpServers": { "server-name": { "command": "executable", "args": ["arg1", "arg2"], "env": { "ENV_VAR_KEY": "${my_env_var_key}", "SECRET_KEY": "${my_secret_key}" } } } } ``` -------------------------------- ### DevFile Configuration for Node.js Project Source: https://kiro.dev/docs/autonomous-agent/sandbox/devfile This DevFile configures a Node.js project environment. It specifies the container image, memory limits, source mounting, and commands for installing dependencies, running the application, and testing. It requires `npm` to be available in the `node:18` image. ```yaml schemaVersion: 2.2.0 metadata: name: nodejs-app version: 1.0.0 components: - name: runtime container: image: node:18 memoryLimit: 1024Mi mountSources: true commands: - id: install exec: component: runtime commandLine: npm install workingDir: ${PROJECT_SOURCE} - id: run exec: component: runtime commandLine: npm start workingDir: ${PROJECT_SOURCE} - id: test exec: component: runtime commandLine: npm test workingDir: ${PROJECT_SOURCE} ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.