# trust_project_mcp

> **Function** in `deepagents_code`

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

Persist trust for a project's MCP config.

## Signature

```python
trust_project_mcp(
    project_root: str,
    fingerprint: str,
    *,
    store_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>`). |
| `store_path` | `Path \| None` | No | Path to the trust store file. Defaults to `~/.deepagents/.state/mcp_trust.json`. (default: `None`) |

## Returns

`bool`

`True` if the entry was saved successfully.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/0412009c5441bef8d75a427e1da8909e33ab5b56/libs/code/deepagents_code/mcp_trust.py#L152)