# is_project_mcp_trusted

> **Function** in `deepagents_code`

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

Check whether a project's MCP config is trusted with the given fingerprint.

## Signature

```python
is_project_mcp_trusted(
    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 | Expected fingerprint string (`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 stored fingerprint matches.

---

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