# MCPConfigError

> **Class** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/mcp_tools/MCPConfigError)

An MCP configuration file is malformed or structurally invalid.

Subclasses `ValueError` so existing `except ValueError` handlers
keep working; new code can catch this specifically to render a
user-actionable message (typically with a file path and hint).

## Signature

```python
MCPConfigError()
```

## Extends

- `ValueError`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/64d45f67c86edb4df2ced0e7b82f1a8fd158ec8c/libs/cli/deepagents_cli/mcp_tools.py#L115)