
DeXe DAO governance
io.github.edward-arinin-web-dev由 GitHub 账号 edward-arinin-web-dev 发布v0.37.1更新于 Oct 27, 2026
DeXe Protocol DAOs for AI agents: create DAOs, proposals, votes, OTC token sales, on-chain reads.
概览
面向 BNB Chain 上 DeXe Protocol DAO 治理的本地 MCP 服务器:读取 DAO 数据、构建提案与投票,并可选择签名和广播交易。
- 可以做什么
- 读取 DAO、提案、投票、投票人、金库、成员、委托、验证者、质押与协议统计,并可用一次调用生成含增量对比的 DAO 报告
- 通过自由查询与 schema 内省访问 subgraph
- 创建 DAO 与提案(覆盖 33 种 DeXe 提案类型),以及 OTC 代币销售、merkle 白名单和 IPFS 元数据上传
- 把投票、委托、执行、领取和质押操作构建为 calldata 载荷,可先模拟,再选择通过 WalletConnect、加密 keystore 或 Safe 多签广播
- 支持外部 OpenZeppelin 与 Compound-Bravo Governor DAO,并可运行带资金上限与账本的多角色代理密钥环
- 适用场景
- 适合需要查看或操作 BNB Chain 上 DeXe DAO 的场景:尽职调查与金库报告、起草并模拟提案、投票与执行流程、OTC 销售,或定时治理监控。若客户端不应具备签名能力,可改用只读版本。
- 运行要求
- 需要 Node.js 20.12 或更高版本及 npm,以本地 stdio 进程方式通过 npx 或全局安装启动。读取功能无需配置,默认使用公共 RPC、subgraph 与 IPFS 网关。可选变量:DEXE_RPC_URL_MAINNET 或 DEXE_RPC_URL_TESTNET 指定专用节点,DEXE_PINATA_JWT 用于 IPFS 上传,DEXE_SIGNER_MODE 与 DEXE_WALLETCONNECT_PROJECT_ID 用于签名,DEXE_TOOLSETS 选择工具集。仅可选开发工具集需要 Git。
安装
在 SourceWeft 中
- 打开 控制台中的 DeXe DAO governance,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[npm] [node] [license] [MCP-compatible]
dexe-mcp
An MCP (Model Context Protocol) server for DeXe Protocol governance on BNB Chain, with an additional generic surface for OpenZeppelin and Compound-Bravo Governor DAOs (Uniswap, Compound, Optimism).
It exposes 170 typed tools in 19 groups: DAO deployment, all 33 DeXe proposal types, voting, delegation, execution, OTC token sales, treasury and subgraph reads, one-call DAO reporting, IPFS metadata, transaction simulation, multi-agent orchestration, and diagnostics. Any MCP client that can launch a local command can use it — Claude Code, Claude Desktop, Cursor, Codex CLI, or a custom agent. The package also ships a read-only edition, dexe-mcp-read (54 tools that only read, on stdio or over HTTP for remote clients) — see Read-only edition.
Writes are calldata-first: tools return a { to, data, value, chainId } payload for your own wallet to sign. Broadcasting from the server is opt-in, and a human confirms every transaction: through WalletConnect (approved on your phone; no key on disk — the default) or an encrypted local keystore (each batch approved with its password on a local page). A plaintext hot key that signs unattended exists for bots and CI only, testnet by default. docs/SIGNING.md explains the modes and what each protects against.
Install · Quickstart · Tool catalog · Environment · Docs
Install in Claude Code
Two commands, typed inside Claude Code:
Then ask:
"Show the treasury of
0x…on BSC."
Reads work with no configuration: on-chain data, subgraphs, the DeXe backend, and IPFS all have public defaults, and WalletConnect signing is available immediately (dexe_wc_connect). Eight skills install with the plugin — dexe-setup, dexe-create-dao, dexe-create-proposal, dexe-vote-execute, dexe-otc, dexe-staking, dexe-report (zero-config), and dexe-agent-team (needs DEXE_TOOLSETS=core,agents and hot keys in DEXE_SIGNER_MODE=unattended).
To create DAOs or proposals, or to broadcast transactions, run /dexe-setup — it walks through the two keys that unlock those paths (a Pinata token for IPFS uploads, a signer) and writes them to the .env the server actually loads (~/.dexe-mcp/.env for a plugin install).
Using Cursor, Claude Desktop, Codex CLI, another local MCP client, or the terminal? See docs/INSTALL.md.
Read-only edition (dexe-mcp-read)
A second binary in the same package serves only the 54 tools that read: DAOs, proposals, votes and voters, treasury, members, delegation, validators and experts, token sales, staking, protocol statistics, and external Governors. It cannot sign, send, upload or build transactions — that code is not even loaded into its process — and it keeps nothing between calls. It reads with zero configuration, and ignores and drops any signing or upload key it finds in a shared .env.
dexe-mcp-read serve-http serves the same tools over MCP Streamable HTTP for remote clients (Claude.ai custom connectors, ChatGPT developer mode); it ships as a Docker image recipe and is pre-release. Operators: docs/REMOTE.md.
Quickstart (other MCP clients)
Reads need no environment at all. The steps below set up uploads and signing.
Wizard path:
--help and --version print and exit without loading any environment. init writes ~/.dexe-mcp/.env (a source checkout writes the repo-root .env) and prints a client-config snippet to paste. doctor checks every recognized DEXE_* variable and reports pass/warn/fail with remediation hints; warnings are normal on a zero-config install and it exits 0 — pass --strict (or set DEXE_DOCTOR_STRICT=1) to make warnings exit 1 in CI, and expect 2 on a real failure. Full runbook: docs/SETUP.md; check reference: docs/DOCTOR.md; upgrade notes: docs/MIGRATION.md.
Already installed globally? Use dexe-mcp init instead — do not mix the two. A global install shadows npx dexe-mcp@<version>, which then silently runs the old code (docs/INSTALL.md).
Manual path — register with your MCP client (.mcp.json, claude_desktop_config.json, Cursor settings):
With a global install, the same block is { "command": "dexe-mcp" }. Add an env block only if you want to override the defaults:
The env block is optional — without it the server falls back to a public BSC RPC, which is rate-limited and suitable for evaluation; set your own endpoint for production use.
Windows: if your MCP client can't resolve the
dexe-mcpshim on PATH, point it at the script directly:{ "command": "node", "args": ["<npm root -g>/dexe-mcp/dist/index.js"] }
Example calls (all four are in the default profile — no DEXE_TOOLSETS, no env):
dexe_proposal_create covers every on-chain catalog type; the single-purpose dexe_proposal_build_* builders (raw calldata, one tool per type) need DEXE_TOOLSETS=core,proposals.
Each write tool returns a TxPayload you pass to your wallet. To let the server broadcast instead, connect a wallet over WalletConnect (dexe_wc_connect), or create an encrypted key with npx dexe-mcp key create and set DEXE_SIGNER_MODE=keystore — each batch (and each off-chain login or Safe signature) then opens a local approval page that asks for its password, or you approve in a terminal with npx dexe-mcp approve. That enables the composite flows dexe_proposal_create, dexe_proposal_vote_and_execute, and dexe_tx_send. A hot DEXE_PRIVATE_KEY signs only with DEXE_SIGNER_MODE=unattended (bots, CI); see docs/SIGNING.md.
Requirements
- Node.js ≥ 20.12 with a working
npm(process.loadEnvFile, used to read.env, needs 20.12+). Check withnode -v. - Git — only for the optional dev toolset (
dexe_compile/dexe_test/dexe_lint), which shallow-clones DeXe-Protocol on first use. SetDEXE_PROTOCOL_PATHto use an existing checkout. Reads, builders, and deploys do not use it.
Features
- DeXe governance coverage: the 33 proposal types (24 external, 4 internal validator, 5 off-chain), validator chamber, expert delegation, multi-tier OTC sales with merkle whitelists.
- Calldata-first key model: no private key is required for any build tool. Broadcasting is a separate, explicit opt-in.
- Zero-config reads: public RPC, subgraph, backend, and IPFS gateway defaults let read tools work out of the box — including
dexe_dao_report, which returns a whole DAO (identity, treasury, membership, delegation, turnout, deadlines) in one call, and can diff itself against its own previous run. docs/REPORTING.md - External Governor support: 18
dexe_gov_*tools read, build, simulate, and decode against OpenZeppelin and Bravo Governors; new DAOs are a config entry. - Multi-agent orchestration: run several wallets as personas against one DAO.
signerKeyon the write composites (dexe_dao_create,dexe_proposal_create,dexe_proposal_vote_and_execute,dexe_tx_send, the OTC buyer composites) chooses which keyring wallet signs;dexe_agents_fundpreviews a funding plan and only moves value onconfirm: true, under an enforced per-agent cap and a rolling 24-hour spend budget;dexe_agents_ledgerreports which persona did what and what it cost. A fleet of hot keys sitting in.envis a loaded gun — read docs/AGENTS.md for the safety model, what enforces versus what only advises, and the testnet-first workflow, before pointing personas at a DAO that holds real money. - Tested on-chain: a 69-scenario multi-agent harness exercises the builders against BSC-testnet fixture DAOs — build-only checks for all proposal types, full propose → vote → execute lifecycles for the broadcast paths.
- MIT-licensed, no telemetry, no hosted dependency — requests go only to endpoints you configure.
Example applications
Verified, prompt-level scenarios live in docs/USE_CASES.md — each with the exact tools it exercises and on-chain evidence. Highlights:
- Basics — create a DAO with its own token in one call; propose → vote → execute; join an existing DAO.
- Q&A over live data — "does DAO X have validators?", whale maps, TVL charts, delegation graphs, per-proposal voter lists. (Since v0.31.0 the reporting reads are in the default profile and need no keys:
dexe_dao_report,dexe_graph_query,dexe_graph_schema, DAO list/members/stats, token holders, delegation map.dexe_dao_report'sturnoutsection already carries per-proposal voter counts. The long-tail reads — named voter lists (dexe_proposal_voters), validator rosters, per-user activity, local experts, protocol stats, NFTs, inbox/forecast/risk — still live in thereadprofile: setDEXE_TOOLSETS=core,read(orfull), or askdexe_contextwhich sets are off and how to enable them.) - Automation — pair reads with your agent's scheduler (
/loop,/schedule): a scheduleddexe_dao_reportwithsince: "last"reports only what moved since its own previous run, plus proposal watchdogs, daily governance digests (dexe_user_inbox), quorum trackers, treasury monitors, policy-based delegate agents. - Analysis — decode + risk-assess any proposal (quorum safety, treasury at risk, who profits); due-diligence a DAO before buying in; simulate before broadcasting.
- Advanced ops — make the DAO call ANY external contract (
custom_abi), OTC sales, cross-DAO delegation (one DAO voting inside another — live on mainnet), external Governor DAOs, Safe multisig.
Tool catalog
170 tools in 19 groups. Full per-tool reference with required env vars: docs/TOOLS.md.
A default session loads the core profile — 46 tools, ~94 KB of tools/list. That is orientation (dexe_context, dexe_write_context, dexe_guide, dexe_doctor), the one-call composites (dexe_dao_create, dexe_proposal_create, dexe_proposal_vote_and_execute, the four dexe_otc_* composites with the token-sale reads dexe_read_token_sale_position / dexe_read_token_sales), signing (dexe_tx_send, dexe_tx_approval_status, WalletConnect, the key vote builders), the IPFS upload trio plus dexe_ipfs_fetch, dexe_dao_info / dexe_dao_registry_lookup / dexe_dao_predict_addresses, dexe_proposal_state / _list / _catalog, dexe_read_treasury / _settings, and the zero-config reporting reads (dexe_dao_report, dexe_graph_query, dexe_graph_schema, DAO list/members/stats, token holders, delegation map). Which profile to run, and what each costs: docs/PROFILES.md.
Changed in v0.31.0: the ~30 single-purpose dexe_proposal_build_* builders are no longer loaded by default — dexe_proposal_create covers every on-chain catalog type from proposalType + params, and dexe_proposal_catalog still enumerates them. Set DEXE_TOOLSETS=core,proposals to restore the pre-0.31 default exactly. Add profiles (proposals, read, vote, agents, governor, dev) or DEXE_TOOLSETS=full for everything — see docs/PROFILES.md. Note before reaching for full: it registers all 170, and some hosts (VS Code / GitHub Copilot) cap a chat request at 128 enabled tools per request and reject the session above that; the server prints a startup note when you cross it. Call dexe_context first in a session: it returns the active chain, env readiness, which profiles are off and what each unlocks, and DAOs/proposals recorded in prior sessions. Since v0.36.0 the signer, the agent keyring and the Pinata / WalletConnect / Safe posture are dexe_write_context.
New in v0.32.0: agents, a seventh profile for running a multi-persona fleet — dexe_agents_list (who is in the keyring, and their balances), dexe_agents_fund (top them up, preview-then-confirm, inside the enforced caps), and dexe_agents_ledger (who did what, and what it cost). Set DEXE_TOOLSETS=core,agents and restart; add vote (core,agents,vote) when the scenario needs the raw delegation and validator builders. dexe_agents_list / dexe_agents_fund also remain in vote, so an existing core,vote session keeps exactly the surface it had. Details and the safety model: docs/AGENTS.md.
The Tools column counts the whole group, not what a default session loads — most groups sit behind a profile. docs/TOOLS.md names the profile at the top of every section.
Environment variables
No variable is required to start the server; tools that need a missing one fail with a message naming what to set. Full matrix: docs/ENVIRONMENT.md.
Documentation
- docs/USE_CASES.md — verified use-case catalog: what to say to your agent, what happens, on-chain evidence.
- docs/PLAYBOOK.md — the AI playbook: intent → exact call, per-type params, error → remedy. Also served as the MCP resource
dexe://playbook. - docs/TOOLS.md — all 170 tools, grouped, with one-line descriptions, the toolset profile each section needs, and required env vars. Also served as the MCP resource
dexe://tools. - docs/REPORTING.md —
dexe_dao_report: the one-call DAO report, its sections, thesincediff, and running it on a schedule. - docs/USAGE.md — worked examples with copy-pasteable JSON.
- docs/ENVIRONMENT.md — full env-var reference and common pitfalls.
- docs/INSTALL.md — install instructions per MCP client.
- docs/PROFILES.md — which
DEXE_TOOLSETSprofile to run, what each costs intools/list, and the host tool-count cap. - docs/SETUP.md / docs/DOCTOR.md — setup wizard and diagnostic reference.
- docs/AGENTS.md — multi-persona agent teams: the safety model for a hot-key fleet, the
agentstoolset, funding guards, the run sequence that works on-chain, and the attribution ledger. - docs/SKILLS.md — the Claude Code skills shipped with the package.
- docs/GRAPH.md — subgraph entity reference for
dexe_graph_query(pools / interactions / validators). Also served as the MCP resourcedexe://graph-schema. - docs/GOVERNOR.md — the external OZ/Bravo Governor surface.
- docs/SIGNING.md — signer modes (WalletConnect, encrypted keystore, read-only, unattended), the approval page, and the threat model.
- docs/WALLETCONNECT.md — phone-approved signing without a hot key.
- docs/OTC.md — multi-tier OTC sale flows for owners and buyers.
- docs/PROFILE.md — DAO profile and avatar pipeline.
- docs/SIMULATOR.md — preflight simulation with revert decoding.
- docs/INBOX.md — cross-DAO inbox and proposal forecast.
- docs/MIGRATION.md — per-version upgrade notes.
- docs/REMOTE.md — the read-only edition
dexe-mcp-read: stdio setup, and hosting it over HTTP (serve-http, Docker) for remote clients.
Swarm test harness
tests/swarm/ is a multi-agent harness that exercises the tool surface against real BSC-testnet DAOs: 69 JSON scenarios covering delegation chains, the validator chamber, build-only checks for every proposal type, OTC flows, and full broadcast lifecycles. The orchestrator resolves agent wallets and runs each step through an inline ethers dispatcher or the dexe-mcp stdio bridge.
Setup runbook: tests/swarm/README.md · scenario schema: tests/swarm/scenarios/_schema.md · agent prompts: tests/swarm/prompts/.
Contributing
Issues, PRs, and proposal-type requests: GitHub issues.
Security
See SECURITY.md for the threat model, policy, and how to report a vulnerability. In short:
- Release tags are GPG-signed;
release.ymlrunsgit verify-tagbefore publishing. Verify locally withgit verify-tag <tag>(e.g.v0.19.0) after importing the maintainer key. - npm releases publish with
--provenance; verify withnpm audit signatures. - CI installs strictly from the committed lockfile and fails on drift.
- CodeQL, OSSF Scorecard, and Dependency Review run on PRs and on a schedule.
License
MIT. See LICENSE.
Independent open-source integration for the DeXe Protocol governance stack. Not affiliated with DeXe Network.
来源:README.md,提交 32b2614
工具
0版本历史
3- v0.37.1最新Oct 13, 2026
- v0.37.0Oct 12, 2026
- v0.35.0Oct 12, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分