# format_legacy_ignored_notice

> **Function** in `deepagents_code`

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

Build the CLI-style hint for servers dropped by the legacy-key removal.

Mirrors the `resolve_and_load_mcp_tools` migration message so
non-interactive `dcode mcp login` explains why a previously allowlisted
server stopped loading instead of leaving it to vanish silently.

## Signature

```python
format_legacy_ignored_notice(
    names: tuple[str, ...],
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `names` | `tuple[str, ...]` | Yes | Server names found in a legacy `[mcp].enabled_project_servers` list, now ignored. |

## Returns

`str`

A single-line user-facing string. Empty when `names` is empty.

---

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