Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Decode and encode Uniswap Universal Router calldata (V2, V3, V4). Read-only: never signs or sends.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
RPC_URLต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"uniswap-universal-router-decoder": {
"command": "uvx",
"args": [
"uniswap-universal-router-decoder"
],
"env": {
"RPC_URL": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add uniswap-universal-router-decoder --env RPC_URL='ใส่ค่าของคุณ' -- uvx uniswap-universal-router-decoderเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"uniswap-universal-router-decoder": {
"command": "uvx",
"args": [
"uniswap-universal-router-decoder"
],
"env": {
"RPC_URL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"uniswap-universal-router-decoder": {
"type": "stdio",
"command": "uvx",
"args": [
"uniswap-universal-router-decoder"
],
"env": {
"RPC_URL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
RPC_URL envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub Elnaril ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (4.0.0) เข้า registry 9 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Draugr
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Security scanning for AI agents: SAST, SCA, secrets, IaC, DAST, ranked by real risk.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Many thanks to everyone who has ☕️ offered some coffees! ☕️
or ⭐ starred this project! ⭐
It is greatly appreciated! :)
See the release notes page
revert_on_fail to the encoder methods for the commands whose failure the UR can toleratetrailing_data, and re-append them when rebuilding the calldata, so a decoded call can be rebuilt byte-for-byteencoder & decoder modulespublish.yml GitHub Actions workflow that automatically publishes the package to PyPI and the MCP Registry with OIDC Trusted PublishingEncoder.function_input() / AsyncEncoder.function_input() to rebuild the calldata from a decoded calldecoded_input_to_dict() and transaction_to_dict() to render the decoder output as JSON-friendly dictsur-decode and ur-encode command line tools, including ur-encode v3-path and its encode_v3_path MCP counterpartur-mcp MCP server (optional mcp extra) so AI agents can drive the codec, including encode_calldata to rebuild the calldata from a decoded callur-encode list / describe and the list_commands / describe_command MCP tools) now describe the decoded call format and its ABI parameters, instead of the encoder methodsserver.json) to make the ur-mcp server discoverableAGENTS.md and llms.txt for AI agents, plus a mcp PyPI keywordtests/test_version_consistency.py to keep the packaging version, server.json and the README mcp-name: marker in syncThe object of this library is to decode & encode transactions sent to the Uniswap Universal Router (UR) on Ethereum Mainnet, though it would work on any compatible chain where the UR is deployed. See Version Mapping below. This Python SDK is based on, and intended to be used with web3.py
The target audience is Python developers who are familiar with the Ethereum blockchain concepts and web3.py, and how DEXes work. The same codec is also available without Python, through the ur-decode / ur-encode command line tools and the optional ur-mcp MCP server (see "Command line interface" and "MCP server" below): both print JSON, so shell scripts and AI agents can drive it too.
⚠ Before using this library, ensure you are familiar with general blockchain concepts. The Python API also expects web3.py knowledge in particular.
⚠ Not all UR functions supported by this SDK are available through the CLI or MCP tools: run ur-encode list and look for the "rebuildable" flag.
| Command Id | Universal Router Function | Underlying Action - Function | Supported |
|---|---|---|---|
| 0x00 / 0 | V3_SWAP_EXACT_IN | ✅ | |
| 0x01 / 1 | V3_SWAP_EXACT_OUT | ✅ | |
| 0x02 / 2 | PERMIT2_TRANSFER_FROM | ✅ | |
| 0x03 / 3 | PERMIT2_PERMIT_BATCH | ✅ | |
| 0x04 / 4 | SWEEP | ✅ | |
| 0x05 / 5 | TRANSFER | ✅ | |
| 0x06 / 6 | PAY_PORTION | ✅ | |
| 0x07 / 7 | PAY_PORTION_FULL_PRECISION | ✅ | |
| 0x08 / 8 | V2_SWAP_EXACT_IN | ✅ | |
| 0x09 / 9 | V2_SWAP_EXACT_OUT | ✅ | |
| 0x0a / 10 | PERMIT2_PERMIT | ✅ | |
| 0x0b / 11 | WRAP_ETH | ✅ | |
| 0x0c / 12 | UNWRAP_WETH | ✅ | |
| 0x0d / 13 | PERMIT2_TRANSFER_FROM_BATCH | ✅ | |
| 0x0e / 14 | BALANCE_CHECK_ERC20 | ✅ | |
| 0x0f / 15 | placeholder | N/A | |
| 0x10 / 16 | V4_SWAP | ✅ | |
| 0x06 - SWAP_EXACT_IN_SINGLE | ✅ | ||
| 0x07 - SWAP_EXACT_IN | ✅ | ||
| 0x08 - SWAP_EXACT_OUT_SINGLE | ✅ | ||
| 0x09 - SWAP_EXACT_OUT | ✅ | ||
| 0x0b - SETTLE | ✅ | ||
| 0x0c - SETTLE_ALL | ✅ | ||
| 0x0e - TAKE | ✅ | ||
| 0x0f - TAKE_ALL | ✅ | ||
| 0x10 - TAKE_PORTION | ✅ | ||
| 0x11 / 17 | V3_POSITION_MANAGER_PERMIT | ✅ | |
| 0x12 / 18 | V3_POSITION_MANAGER_CALL | ✅ | |
| 0x13 / 19 | V4_INITIALIZE_POOL | ✅ | |
| 0x14 / 20 | V4_POSITION_MANAGER_CALL | ✅ | |
| 0x02 - MINT_POSITION | ✅ | ||
| 0x0b - SETTLE | ✅ | ||
| 0x0d - SETTLE_PAIR | ✅ | ||
| 0x0e - TAKE | ✅ | ||
| 0x11 - TAKE_PAIR | ✅ | ||
| 0x12 - CLOSE_CURRENCY | ✅ | ||
| 0x13 - CLEAR_OR_TAKE | ✅ | ||
| 0x14 - SWEEP | ✅ | ||
| 0x15 - WRAP | ✅ | ||
| 0x16 - UNWRAP | ✅ | ||
| 0x15 - 0x20 | placeholders | N/A | |
| 0x21 / 33 | EXECUTE_SUB_PLAN | ✅ | |
| 0x22 - 0x3f | placeholders | N/A | |
| 0x40 / 64 | ACROSS_V4_DEPOSIT_V3 | ❌ |
All the ✅ commands can be decoded and encoded. V4_SWAP, V4_POSITION_MANAGER_CALL and EXECUTE_SUB_PLAN can also be decoded, but they cannot be rebuilt from a decoded call (see "How to rebuild the calldata from a decoded call").
Here is the mapping between the Universal Router versions and the SDK ones
| UR Version | UR address on Ethereum | Python SDK version |
|---|---|---|
| v2.1.2 | 0x23617e59A5925b2A4Bf75d73ff6711cD0b29De85 | v3.1.0 & v4.0.0 |
| v2.1.1 | 0x4C82D1fBFe28C977cBB58D8C7FF8FCF9F70a2cCA | v3.0.0 |
| v2 | 0x66a9893cC07D91D95644AEDD05D03f95e1dBA8Af | v2.0.0 & v2.1.0 |
| v1.2 | 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD | v0.9.0 to v1.2.1 |
| v1 | 0xEf1c6E67703c7BD7107eed8303Fbe6EC2554BF6B | v0.8.0 |
A good practice is to use Python virtual environments, here is a tutorial.
The library can be pip installed from pypi.org as usual:
# update pip to latest version if needed
pip install -U pip
pip install uniswap-universal-router-decoder
To install it from source:
pip install .
or for contributors:
pip install -e '.[mcตัดมาแค่ช่วงต้น อ่านต่อใน repo