# plugin_mcp_configs

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/plugins/adapters/mcp/plugin_mcp_configs)

Build MCP config layers for enabled plugins.

Default `.mcp.json` files are loaded before manifest `mcpServers`, so manifest
entries win on server-name conflicts.

## Signature

```python
plugin_mcp_configs(
    plugins: tuple[PluginInstance, ...],
    *,
    project_dir: Path | None = None,
) -> list[JsonObject]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `plugins` | `tuple[PluginInstance, ...]` | Yes | Enabled plugin instances. |
| `project_dir` | `Path \| None` | No | Project directory for `${CLAUDE_PROJECT_DIR}` substitution. (default: `None`) |

## Returns

`list[JsonObject]`

MCP config layers ready for dcode's merge path.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/4bfa52000ef65ac623d8ada0cb67f67cbdd663ea/libs/code/deepagents_code/plugins/adapters/mcp.py#L221)