rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
PROJECT README
Connect your hosted Zapier MCP server to DeepSeek Harness — paste one token in Settings, and Zapier's tools become agent tools in every session.
MIT · DSH 0.2.x · Node ≥ 22.19 · No build step
Zapier's hosted MCP server exposes your connected apps behind a single endpoint. Wiring that endpoint into a harness usually means editing config files and restarting, and it usually means leaving a secret lying in YAML.
This bundle does neither. It adds one row to a DSH profile, adds a Zapier MCP page to the harness Web UI, and stores the token where secrets belong: the profile credential store. On save it re-connects immediately and tells you what happened. While connected, it also briefs the model on how Zapier's meta-tool surface works, so the model reaches for an app you have not enabled yet instead of claiming it is unavailable.
https://mcp.zapier.com/api/v1/connect with your token. No local MCP server, no bridge process.Connected — N tools available with the refreshed tool name list, or Token rejected with the server's message.mcp__<serverName>__* names, and lists which apps are enabled right now. See System-prompt intelligence.npm test needs no install.credentialRef; configuration carries only the reference name.| Requirement | Version |
|---|---|
| DeepSeek Harness (DSH) | 0.2.x — built and tested against 0.2.1-rc.2 |
| Node.js | >= 22.19 |
| Zapier account with a hosted MCP server | mcp.zapier.com |
The bundle depends on the shipped package @deepseek-ai/dsh-mcp-client at exactly 0.2.1-rc.2, which performs the MCP connection and tool registration. When your harness version changes, that pin must be raised in lockstep — see Compatibility.
Install the bundle into a DSH profile with dsh plugin. The command forwards its remaining arguments verbatim to pnpm in the profile directory, so add, remove, and why are the pnpm verbs:
Usage: dsh plugin [options] [args...]
manage a profile's plugins by forwarding the remaining arguments to pnpm in the
profile directory
Arguments:
args pnpm arguments, forwarded verbatim (add <pkg>, remove <pkg>,
why <pkg>, ...)
Options:
--profile <name> the profile whose plugins to manage (initialized on first
use)
-h, --help show this help
The normal path is a GitHub spec, because the package's dependencies come with it:
dsh plugin --profile web add https://github.com/parolkar/dsh-zapier-mcp
A local path is a local directory link, not a packed copy: pnpm records the
checkout in place and does not install that checkout's own dependencies for
it. The bundle imports @deepseek-ai/dsh-mcp-client and
@deepseek-ai/schemastery, so a plain local link will not work until those
resolve. Either install the checkout's dependencies first:
cd /absolute/path/to/dsh-zapier-mcp
pnpm install
dsh plugin --profile web add /absolute/path/to/dsh-zapier-mcp
or install with a file: spec, which brings the checkout's dependencies along:
dsh plugin --profile web add file:/absolute/path/to/dsh-zapier-mcp
cordis.patch.yml, which inserts the
one zapier-mcp row — that row is what mounts both halves of the plugin.Replace
webwith whichever profile you run (dsh plugin --profile <name> ...).dsh plugin --helpshows the same summary;dsh --helplists the launcher flags and confirms the plugin command form.
Go to mcp.zapier.com and create a server, or open an existing one.
Select the tools (Zapier actions) you want the model to have quick access to. You can enable more later — a tool that is not listed yet is never a missing capability (see How Zapier MCP actually works).
Copy the server's connect URL or token. The URL has this shape:
https://mcp.zapier.com/api/v1/connect?token=<USER_ZAPIER_MCP_TOKEN>
In the harness, open Settings → Zapier MCP and paste only the token
— the token query parameter value, not the whole URL — into the token
field, then choose Save & verify.
Settings → Zapier MCP sits directly below Models. It lets you:
Connected — N tools available plus the refreshed list of tool names (the
first 25; if there are more, the page says how many are shown). On failure it
shows Token rejected together with the server's message — for example, an
invalid token returns Invalid OAuth token - please re-authenticate. The page
also shows when it was last checked.https://mcp.zapier.com/api/v1/connect; the
page shows which endpoint is in use. This is the field to use for a
self-hosted endpoint or the local test server.The page only ever learns whether a token is configured. It never receives the token value back.
Once connected, the tools bridged from Zapier appear to the model as ordinary agent tools named:
mcp__zapier__<tool>
The zapier part is the tool-name namespace and is configurable via
serverName. Because the row mounts at the harness root, these tools are
available in every session and agent, including DS Bot.
If you change which actions are enabled in Zapier, use Re-check on the Settings page to refresh the list; the harness does not poll Zapier on its own.
This is the part that surprises people, and the reason this plugin injects a system-prompt section at all.
Zapier's hosted MCP server returns a fixed set of about 16 meta-tools from
tools/list, no matter which apps you have connected. They are the plumbing:
discover / enable / disable / inspect, execute read / execute write, list and
manage connections, auto_provision, write_code_action, skills, feedback and
the configuration URL. It is the same list whether you connected one app or
eighty.
The real surface — 9,000+ apps — is virtual, and is resolved at call time.
A missing tool never means an app is unavailable. If there is no
mcp__zapier__<some_app> tool listed, that is expected: the model is meant to
discover and enable the action through the meta-tools.
Three layers, from broadest to narrowest:
selected_api value.All names below are shown bare; call them as mcp__zapier__<name> (or
mcp__<serverName>__<name> if you changed serverName):
mcp__zapier__inspect_zapier_actions — see what is currently enabled.mcp__zapier__discover_zapier_actions to find it, thenmcp__zapier__enable_zapier_action to turn it on. Enabling may return an
auth URL the user must open to connect the app.mcp__zapier__inspect_zapier_actions again, this time with selected_api
and tool_name, to get the exact parameters for the action. Dynamic options
arrive through enum_property / params.mcp__zapier__execute_zapier_read_action for reads, or
mcp__zapier__execute_zapier_write_action for writes.A connection_id is only needed to override the default account for an app.
Skills cache a resolved multi-step procedure so the same sequence does not
have to be rediscovered.
While the connection is live, the plugin registers one bounded
system-prompt section (zapier-mcp, placed just behind the MCP server
instructions). It contains four things:
mcp__<serverName>__* names.Enabled now: Gmail — 1 action, 2 accounts. App names and counts
only: never account ids, account titles or emails.execute_zapier_write_action acts on real external systems.The section is rebuilt on every re-check and is absent while disconnected
(no token, rejected token, or connection down adds no context at all). Set
systemPrompt: false to disable it entirely. Separately, dsh-mcp-client
injects Zapier's own server instructions verbatim; maxInstructionBytes
bounds that block (see Configuration).
All fields are optional and live in the row config:
| Field | Default | Meaning |
|---|---|---|
serverName |
zapier |
Tool-name namespace. Tools are registered as mcp__<serverName>__<tool>. |
endpoint |
https://mcp.zapier.com/api/v1/connect |
Hosted Zapier MCP endpoint the token is appended to. |
credentialRef |
ZAPIER_MCP_TOKEN |
Key in the profile credential store that holds the token. |
toolCallTimeoutMs |
60000 |
Timeout, in milliseconds, for a single tool call (also used for the inventory probe). |
maxInstructionBytes |
131072 |
Cap on the server-instructions block dsh-mcp-client accepts on the first connect attempt. |
instructionRetryBytes |
1048576 |
Larger cap used for one automatic retry when the first attempt failed only because the instructions exceeded maxInstructionBytes. |
systemPrompt |
true |
Whether the plugin contributes its Zapier system-prompt section. Set false to opt out. |
endpointOverride |
"" (empty) |
Advanced. Alternate/self-hosted MCP endpoint. Empty means "use endpoint". |
The row also carries runtime volatile fields, written by the Host half and
read by the Settings page: status, toolCount, toolNames, lastError,
checkedAt, inventory, and checkNonce. checkNonce and endpointOverride
are the user-facing triggers — bumping them (which is what the page's Re-check
and Advanced buttons do) schedules a fresh check. You do not set any of these by
hand.
To override a field, target the existing zapier-mcp row from your profile
patch. A patch entry with an id and no insert replaces that row's fields, and
config is replaced wholesale, not deep-merged — so list every field you
want to keep. Fields you omit fall back to the defaults above. Leave the
volatile fields out: the harness settings service owns them and writes them
back.
# profile patch (e.g. your profile's cordis.patch.yml)
- id: zapier-mcp
name: 'dsh-zapier-mcp' # asserts the existing plugin name
config:
serverName: zapier
endpoint: https://mcp.zapier.com/api/v1/connect
credentialRef: ZAPIER_MCP_TOKEN
toolCallTimeoutMs: 120000
maxInstructionBytes: 131072
instructionRetryBytes: 1048576
systemPrompt: true
# endpointOverride: '' # Advanced; set it from the Settings page instead
For everyday changes prefer the Settings page over hand-editing the patch: token, re-check and endpoint override all have controls there, and they write through the harness settings service.
The harness decides how to compose patches; the @deepseek-ai/dsh-mcp-client
package does the MCP work, and this bundle pins it at exactly 0.2.1-rc.2 to
match DSH 0.2.1-rc.2. If your DSH version differs, the symptom is usually that
the row fails to mount or the tools never register. The fix is to raise the pin
to the @deepseek-ai/dsh-mcp-client version shipped with your DSH release.
The bundle is one row with two halves:
index.js, with testable logic in
lib/host-logic.js and prompt text in
lib/prompt.js. It resolves the token from the credential
service per connection attempt (never caching a rotated or removed token),
reads the effective endpoint per attempt (so an override applies without a
reload), mounts @deepseek-ai/dsh-mcp-client, and re-connects when the
credential changes or the page asks for a re-check. Results are published into
the volatile config fields above; the system-prompt section is a pure read of
the same facts.client.js. It registers the
settings.section page named Zapier MCP, positioned directly below
Models, and talks to the settings service to save, re-check and remove the
token and to set the endpoint override.Both halves are mounted by the single row inserted by
cordis.patch.yml. See the repository files for the
implementation details.
| Symptom | Likely cause | Fix |
|---|---|---|
Settings page says Token rejected with Invalid OAuth token - please re-authenticate |
Token is invalid, expired, or from a deleted Zapier server | Copy a fresh token from mcp.zapier.com and save it again. |
| Connection returns HTTP 401 | Same as above — the endpoint rejects the credential | Re-issue the token in Zapier; re-check. |
Valid token rejected with a message like server instructions exceed maxInstructionBytes |
Zapier's own instruction block is larger than the cap. The plugin already retries once with instructionRetryBytes (1048576), so a remaining failure means the block is even larger than that. |
Raise maxInstructionBytes / instructionRetryBytes. Tradeoff: those instructions are injected into every prompt, so a very large cap costs context on every request. |
| The page says Re-check forever and never settles | Endpoint unreachable from the harness, or the request hangs | Check network/proxy access to mcp.zapier.com, then Re-check. |
| Tool list looks stale after changing enabled actions in Zapier | The list is fetched at connect time; the harness does not poll | Use Re-check on the Settings page to refresh the list and the prompt inventory. |
| A tool you expected is not in the list | Zapier's tools/list is a fixed meta-tool set; actions are virtual |
Not a bug — the model discovers and enables actions through the meta-tools. See How Zapier MCP actually works. |
| You want to point at a different MCP endpoint (self-hosted, testing) | — | Settings → Zapier MCP → Advanced → MCP endpoint override, then save the endpoint. |
| Offline or flaky network | No route to mcp.zapier.com |
Restore connectivity and Re-check; tool calls will fail until then. |
| Row fails to mount or no tools ever register after a DSH upgrade | @deepseek-ai/dsh-mcp-client pin no longer matches your DSH version |
Raise the pin to the version shipped with your DSH release and restart. |
| You want the bundle gone | — | Remove token on the Settings page, then remove the bundle from the profile (dsh plugin --profile <name> remove dsh-zapier-mcp) and disable it in the Plugins UI. |
~/.dsh/.credentials.yaml
(file mode 600) under credentialRef (default ZAPIER_MCP_TOKEN).status, toolCount,
toolNames, lastError, checkedAt, inventory, checkNonce), which the
harness settings service writes back.endpoint, or endpointOverride when you set one. If you point the override
at a server you do not control, your token goes there.npm test
That is exactly:
node --check index.js && node --check client.js && node --check lib/host-logic.js && node --check lib/prompt.js && node test/host.test.mjs && node test/prompt.test.mjs && node test/client.test.mjs
There is no install required for the test script, and the package has no build
step. index.js, client.js and lib/ are plain ESM.
test/fake-mcp-server.mjs is a stand-in for the
Zapier endpoint that speaks just enough MCP Streamable HTTP — initialize,
tools/list and tools/call — so the success path can be exercised offline:
node test/fake-mcp-server.mjs [--port 8765] [--reject]
8765.--reject answers every request the way Zapier answers an invalid token
(HTTP 401, Invalid OAuth token - please re-authenticate), exercising the
failure path.It is a test helper and is excluded from the published file list in
package.json. To use it against a live harness, start it and set
Settings → Zapier MCP → Advanced → MCP endpoint override to
http://127.0.0.1:8765, then save the endpoint.
See CONTRIBUTING.md for development setup, code style, and the pull request checklist.
MIT © 2026 parolkar.
Not affiliated with, endorsed by, or sponsored by Zapier. "Zapier" is a trademark of its owner and is used here only to describe what this plugin connects to.
See CHANGELOG.md.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: mcp、mcp-client、mcp-tools、deepseek-harness。