SDK v1.5.1
Highlights
Fixes writing to multi-select dropdown fields. --set and --append now correctly handle the array format required by the API, and --append properly merges with existing selections instead of replacing them.
Bug Fixes
- CLI:
--setand--appendnow work correctly for dropdown-multi fields when V1 API returnsvalue_type="dropdown"withallows_multiple=True. Previously,resolve_dropdown_valueonly checkedvalue_type(notallows_multiple) to determine the payload format, sending{"dropdownOptionId": ID}instead of[{"dropdownOptionId": ID}]. - CLI:
--appendfor dropdown-multi fields now merges with existing values instead of replacing them. The V2 API replaces the entire option array on POST, so--appendnow reads existing selections, adds the new option (deduplicating), and sends the combined array.
Quick Install
SDK only:
pip install affinity-sdkSDK + CLI:
pipx install "affinity-sdk[cli]"MCP Server for Claude Desktop (easiest - MCPB bundle):
- Install CLI:
pipx install "affinity-sdk[cli]" - (Optional) Pre-configure API key:
xaffinity config setup-key- If skipped, Claude Desktop will prompt for your API key during install
- Install xaffinity MCP in Claude Desktop (download and double-click)
Other MCP clients (Cursor, Windsurf, VS Code, etc.) require manual configuration - see MCP docs.