# ConfigResolutionError

> **Class** in `deepagents_code`

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

Structured error returned when a login target cannot be resolved.

## Signature

```python
ConfigResolutionError(
    self,
    kind: ConfigErrorKind,
    message: str,
    untrusted_project_paths: tuple[Path, ...] = (),
    legacy_ignored: tuple[str, ...] = (),
    policy_error: str | None = None,
    legacy_env_ignored: bool = False,
    malformed_approvals: int = 0,
)
```

## Constructors

```python
__init__(
    self,
    kind: ConfigErrorKind,
    message: str,
    untrusted_project_paths: tuple[Path, ...] = (),
    legacy_ignored: tuple[str, ...] = (),
    policy_error: str | None = None,
    legacy_env_ignored: bool = False,
    malformed_approvals: int = 0,
) -> None
```

| Name | Type |
|------|------|
| `kind` | `ConfigErrorKind` |
| `message` | `str` |
| `untrusted_project_paths` | `tuple[Path, ...]` |
| `legacy_ignored` | `tuple[str, ...]` |
| `policy_error` | `str \| None` |
| `legacy_env_ignored` | `bool` |
| `malformed_approvals` | `int` |


## Properties

- `kind`
- `message`
- `untrusted_project_paths`
- `legacy_ignored`
- `policy_error`
- `legacy_env_ignored`
- `malformed_approvals`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/2069079e09546060f5b52b2cd4f0e3c813e820f3/libs/code/deepagents_code/mcp_login_service.py#L51)