# trust_project_mcp

> **Function** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/mcp_trust/trust_project_mcp)

Persist trust for a project's MCP config.

## Signature

```python
trust_project_mcp(
    project_root: str,
    fingerprint: str,
    *,
    config_path: Path | None = None,
) -> bool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `project_root` | `str` | Yes | Absolute path to the project root. |
| `fingerprint` | `str` | Yes | Fingerprint to store (`sha256:<hex>`). |
| `config_path` | `Path \| None` | No | Path to the trust config file. (default: `None`) |

## Returns

`bool`

`True` if the entry was saved successfully.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/0b13f3e0e2726fdb7bbe1e0cf88dac76dbd43b01/libs/cli/deepagents_cli/mcp_trust.py#L118)