# format_load_errors_notice

> **Function** in `deepagents_code`

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

Build the CLI-style hint for discovered configs that failed to load.

Surfaced by `dcode mcp login` on a partially successful resolution so a
broken `.mcp.json` is reported instead of silently dropped while another
config still loads — matching the runtime loader
(`resolve_and_load_mcp_tools`), which emits the same failures as error rows.

## Signature

```python
format_load_errors_notice(
    load_errors: tuple[tuple[Path, str], ...],
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `load_errors` | `tuple[tuple[Path, str], ...]` | Yes | `(path, error)` pairs for configs that failed to parse or validate. |

## Returns

`str`

A user-facing string, one line per failure. Empty when `load_errors` is
empty.

---

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