# format_legacy_env_ignored_notice

> **Function** in `deepagents_code`

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

Build the CLI-style hint for the renamed, now-ignored env var.

Mirrors `format_legacy_ignored_notice` for the env surface so a user who
still exports `DEEPAGENTS_CODE_ENABLED_PROJECT_MCP_SERVERS` learns it was
renamed instead of its servers silently ceasing to pre-approve.

## Signature

```python
format_legacy_env_ignored_notice(
    legacy_env_ignored: bool,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `legacy_env_ignored` | `bool` | Yes | Whether the removed env var is set. |

## Returns

`str`

A single-line user-facing string. Empty when the flag is `False`.

---

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