---
outline: deep
---

# DF0046: Connector Requires the MCP SDK

## Message

> `devframe connect` requires the optional peer dependency @modelcontextprotocol/server: `{reason}`

## Cause

`devframe connect` was started but `@modelcontextprotocol/server` could not be imported. The SDK is an optional peer dependency of `devframe` — the MCP surface stays opt-in, so it only needs to be installed where MCP features are used.

## Fix

Install the SDK next to devframe and run the connector again:

```sh
npm install @modelcontextprotocol/server
devframe connect
```

## Source

- [`packages/devframe/src/cli/connect.ts`](https://github.com/devframes/devframe/blob/main/packages/devframe/src/cli/connect.ts) — `startConnectServer()` throws this when the dynamic SDK import fails.
