This repository is a derivative project based on wedecode, focused on MCP usage and Cherry Studio integration.
This repository now includes a stdio MCP server entry at dist/mcp/wedecode-mcp.js.
pnpm install
pnpm buildpnpm mcpOr use the binary after install:
wedecode-mcpWEDECODE_MCP_OUTPUT_ROOT- Optional
- Controls where job output directories are created when
output_diris not passed - Defaults to
<os tmp>/wedecode-mcp
scan_local_miniapps- Scan local WeChat and WXWork cache directories
- Returns a
scan_idplus a list of candidate mini programs
decompile_packages- Decompile one or more local
wxapkgfiles or directories
- Decompile one or more local
decompile_scanned_miniapp- Decompile one item from a previous
scan_local_miniappsresult
- Decompile one item from a previous
list_jobs- List jobs created in the current MCP server session
list_output_files- Inspect generated files for a job or output directory
read_output_file- Read a generated file safely from a job or output directory
decompile_packagesrequires local filesystem paths- If
output_diris provided, it must be empty - The MCP server intentionally does not expose the existing HTTP workspace server or arbitrary command execution
scan_local_miniappsuses best-effort name lookup; if name resolution fails, it falls back toappid
Recommended two-step flow in Cherry Studio:
- Ask it to scan local mini programs:
Scan local miniapps and list them for me.
- Then choose one item from the returned list:
Use scan_id xxx and analyze item 3.
or
Use scan_id xxx and analyze item_id abc123def456.
{
"mcpServers": {
"wedecode": {
"command": "node",
"args": [
"D:/tools/MCP-WEDECODEMCP/dist/mcp/wedecode-mcp.js"
],
"env": {
"WEDECODE_MCP_OUTPUT_ROOT": "D:/tools/wedecode-output"
}
}
}
}