How to Connect DeepSeek Harness to MewCP
Add MewCP to DeepSeek Harness once, and dsh can use every app you have connected in MewCP: Gmail, Calendar, Slack, GitHub and the rest. DeepSeek Harness connects to MewCP through its built-in @deepseek-ai/dsh-mcp-client plugin over Streamable HTTP and signs in with your MewCP account, so there is nothing extra to install and no API key to paste.
Before you start
- DeepSeek Harness installed and running, for example with
npx @deepseek-ai/dsh web(DeepSeek Harness) - A MewCP account with at least one app connected under Apps
Set up MewCP
DeepSeek Harness keeps its files in ~/.dsh, or in $DSH_HOME if you have set it. Each MCP server is one plugin entry.
-
Open
cordis.ymlOpen
cordis.ymlin your DSH project, or the patch file you mount plugins from. -
Add the plugin entry
One plugin instance is one MCP server. Add this to your plugin list:
CodeIn a patch file, such as
~/.dsh/cordis.patch.yml(every profile) or~/.dsh/profiles/<name>/cordis.patch.yml(one profile), wrap the entry in aninsert, next to any patches already there:CodeFor the web UI started with
dsh web, the profile patch file is~/.dsh/profiles/web/cordis.patch.yml. -
Restart DSH
Stop
dshand start it again. Sign in to MewCP and click Allow access when the browser window opens.
This is the entire configuration. One entry reaches every app you have connected, and connecting another app later needs no change here.
Check it works
Confirm the entry is in the config DeepSeek Harness uses:
Code
Once dsh is running, MewCP's tools register as mcp__mewcp__<tool_name>: mcp__mewcp__search, mcp__mewcp__get_schema, mcp__mewcp__manage_connections and mcp__mewcp__call_tool. That is four tools, not the tools of every app, which is expected. DeepSeek Harness uses them to find and run the right tool for whatever you ask. See How MewCP works.
Then ask for something from an app you have connected:
Code
Use an API key instead
For a machine with no browser, send an API key from Dashboard → API Keys instead of signing in.
Add the key to ~/.dsh/.env:
Code
Then add a headers entry under config:
Code
Keep the backticks inside the quotes. Without them, ${...} is sent as literal text. --dump-config shows the !!js expression, not your key, since it does not evaluate expressions when printing.
Troubleshooting
dsh starts, but no MewCP tools appear
If the first connection to MewCP fails, DeepSeek Harness still starts, logs an error and shows no tools from MewCP. Look for the error in the dsh output. To make a failed connection stop startup instead, add failOnStartupError: true under config. A startup failure names a log file under ~/.dsh/logs/.
MewCP returns 401 or 403
- With sign-in, DeepSeek Harness has not signed in yet or the sign-in has expired. Restart
dshand sign in again. See OAuth Sign-In for errors on the sign-in page. - With an API key, check
MEWCP_API_KEYis in~/.dsh/.envor your shell environment, and holds the whole key, which starts withmewcp_proj_. - A
403that says your plan's billing period has ended means your MewCP plan needs renewing under Billing.
The entry fails to load with a name error
Each MCP entry needs a unique id and serverName. If another entry already uses mewcp, the later one fails to load. Rename one of them.
MewCP's tools disappeared after a network outage
DeepSeek Harness reconnects on its own, waiting longer each time up to 30 seconds. After 10 failed attempts in a row it removes MewCP's tools and stops trying. Restart dsh to connect again.
Last updated on 29 November 2026.