> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://www.getfoundry.sh/api/mcp` to find what you need.
>
> **Have feedback?** Use `submit_feedback` on the same MCP server.

## Configuration

Foundry uses `foundry.toml` for project configuration. This file controls compiler settings, test behavior, formatting rules, and more.

### Quick start

A minimal configuration:

```toml [foundry.toml]
[profile.default]
src = "src"
out = "out"
libs = ["lib"]
solc_version = "0.8.28"
```

View your resolved configuration:

```bash
$ forge config
```

### Key capabilities

| Feature                   | Description                                                       |
| ------------------------- | ----------------------------------------------------------------- |
| **Profiles**              | Switch between configurations for development, CI, and production |
| **Environment variables** | Override settings without modifying files                         |
| **Global config**         | Share settings across all your projects                           |
| **Remappings**            | Customize import paths for dependencies                           |

### Learn more

[Profiles](/config/profiles): Configure different settings for development, CI, and production.

[CI Integration](/config/ci): Set up GitHub Actions and other CI systems.

[Editor Setup](/config/editors): Configure VS Code and other editors for Foundry projects.

[Compiler and optimizer](/config/reference/solidity-compiler): Tune solc settings, via IR, and dynamic test linking.

[Testing configuration](/config/reference/testing): Control fuzzing, invariants, and test behavior.

[MESC](/config/mesc): Manage RPC endpoints across all your crypto tools from a single config file.

[Configuration Reference](/config/reference/overview): Complete reference for all configuration options.
