Skip to content

v4.0.0 - UR & Agent-Friendly Features

Latest

Choose a tag to compare

@Elnaril Elnaril released this 29 Oct 09:55
· 19 commits to master since this release
b87377f
  • Update COMMAND_TYPE_MASK to 0x7f to match UR
  • Add support for the PAY_PORTION_FULL_PRECISION command (0x07)
  • Add support for the BALANCE_CHECK_ERC20 command (0x0e)
  • Add support for the V3_POSITION_MANAGER_PERMIT command (0x11)
  • Add support for the V3_POSITION_MANAGER_CALL command (0x12)
  • Add support for the EXECUTE_SUB_PLAN command (0x21)
  • Add revert_on_fail to the encoder methods for the commands whose failure the UR can tolerate
  • Capture the bytes some callers append after the UR arguments as trailing_data, and re-append them when rebuilding
    the calldata, so a decoded call can be rebuilt byte-for-byte
  • Make the chained function builders public and expose the encoder & decoder modules
  • Reduce CI time
  • Add a publish.yml GitHub Actions workflow that automatically publishes the package to PyPI and the MCP Registry with OIDC
    Trusted Publishing
  • Agent-friendly changes:
    • Add Encoder.function_input() / AsyncEncoder.function_input() to rebuild the calldata from a decoded call
    • Add decoded_input_to_dict() and transaction_to_dict() to render the decoder output as JSON-friendly dicts
    • Add the ur-decode and ur-encode command line tools, including ur-encode v3-path and its encode_v3_path MCP
      counterpart
    • Add the ur-mcp MCP server (optional mcp extra) so AI agents can drive the codec, including encode_calldata
      to rebuild the calldata from a decoded call
    • Annotate the MCP tools as read-only so a host can auto-approve them, and give them human-readable titles
    • The command descriptions (ur-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 methods
    • Add the MCP Registry metadata (server.json) to make the ur-mcp server discoverable
    • Add AGENTS.md and llms.txt for AI agents, plus a mcp PyPI keyword
    • Add tests/test_version_consistency.py to keep the packaging version, server.json and the README mcp-name:
      marker in sync