Skip to content

SDK v1.8.1

Choose a tag to compare

@github-actions github-actions released this 16 Mar 10:56
· 83 commits to main since this release

Highlights

InteractionDirection, InteractionLoggingType, and ListRole are now available from affinity.types — previously they could only be imported from the internal affinity.models.types path. The Interaction model now also captures the logging_type field from the API instead of silently dropping it.

Bug Fixes

  • Re-export InteractionDirection, InteractionLoggingType, and ListRole from affinity.types — these were the only public enums missing from the stable import path
  • Add logging_type field to Interaction model — the API returns this field but it was silently discarded

Quick Install

SDK only:

pip install affinity-sdk

SDK + CLI:

pipx install "affinity-sdk[cli]"

MCP Server for Claude Desktop (easiest - MCPB bundle):

  1. Install CLI: pipx install "affinity-sdk[cli]"
  2. (Optional) Pre-configure API key: xaffinity config setup-key
    • If skipped, Claude Desktop will prompt for your API key during install
  3. Install xaffinity MCP in Claude Desktop (download and double-click)

Other MCP clients (Cursor, Windsurf, VS Code, etc.) require manual configuration - see MCP docs.

Full documentation | MCP Server docs