# run_mcp_config

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/client/commands/mcp/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/e14e0adcbe78565ed3650e7f24b2a775d5437d25/libs/code/deepagents_code/client/commands/mcp.py#L208)