# normalize_mcp_project_root

> **Function** in `deepagents_code`

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

Normalize an exact project root for persisted MCP trust comparisons.

## Signature

```python
normalize_mcp_project_root(
    project_root: str | Path | None,
) -> str | None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `project_root` | `str \| Path \| None` | Yes | Project root path to normalize. |

## Returns

`str | None`

The resolved absolute project root (or the expanded, unresolved path when

---

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