# collect_catalog

> **Function** in `deepagents_code`

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

Collect everything `dcode tools list` renders.

## Signature

```python
collect_catalog(
    *,
    assistant_id: str = 'agent',
    enable_interpreter: bool = False,
    include_mcp: bool = True,
    mcp_config_path: str | None = None,
    trust_project_mcp: bool | None = None,
) -> ToolCatalog
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `assistant_id` | `str` | No | Resolved dcode agent identifier to compile for built-in tools, including any agent-specific subagents. (default: `'agent'`) |
| `enable_interpreter` | `bool` | No | Whether the default agent binds `js_eval`; forwarded to `collect_built_in_tools`. (default: `False`) |
| `include_mcp` | `bool` | No | When `True`, discover MCP servers and append their groups after the built-in group (best-effort). Pass `False` to mirror `--no-mcp`. (default: `True`) |
| `mcp_config_path` | `str \| None` | No | Explicit MCP config path (`--mcp-config`). (default: `None`) |
| `trust_project_mcp` | `bool \| None` | No | Project-level stdio trust decision (`--trust-project-mcp`). (default: `None`) |

## Returns

`ToolCatalog`

A `ToolCatalog` with the built-in group first, then any MCP groups,

---

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