# run_mcp_config

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/mcp_commands/run_mcp_config)

Handle `dcode mcp config`.

Prints the MCP config discovery paths in precedence order with a
marker showing which exist on disk. Stat-only; never opens config
files, so config-trust prompts are not triggered.

## Signature

```python
run_mcp_config() -> int
```

## Returns

`int`

Process exit code: always 0.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/0412009c5441bef8d75a427e1da8909e33ab5b56/libs/code/deepagents_code/mcp_commands.py#L179)