Skip to content

fix(models): accept telephony platforms (phone, sms, rcs) in SocialAccount - #37

Merged
mikipalet merged 1 commit into
developfrom
fix/accounts-list-phone-platform
Aug 15, 2026
Merged

fix(models): accept telephony platforms (phone, sms, rcs) in SocialAccount#37
mikipalet merged 1 commit into
developfrom
fix/accounts-list-phone-platform

Conversation

@mikipalet

Copy link
Copy Markdown
Member

Why

Public issue zernio-dev/zernio-claude-plugin#3: the MCP core tool accounts_list fails pydantic validation for any user with a connected phone account. GET /v1/accounts also returns telephony accounts (phone, sms, rcs in the DB enum), but the generated SocialAccount platform enum only listed social and ads platforms. The raw passthrough tool (untyped dict) worked, confirming the API response is valid.

What

  • Added sms, phone, rcs to the SocialAccount platform enum in openapi.yaml and regenerated models
  • Regression tests (tests/test_accounts_phone_platform.py): AccountsListResponse validates payloads with telephony accounts; MCP accounts_list returns the full list with fields preserved (verified failing on old models, passing on new)
  • Bumped package to 1.4.508 and SERVICE_VERSION to 1.2.1 (visible at /health) so the deploy is observable

Follow-ups

🤖 Generated with Claude Code

https://claude.ai/code/session_019c8DtXpqqSunXt4rWRQRTy

…count (zernio-claude-plugin#3)

GET /v1/accounts returns every connected SocialAccount, including the
telephony platforms backing the Phone Numbers product. The generated
platform enum only listed social and ads platforms, so the typed
accounts.list() path (and the MCP accounts_list core tool) failed
pydantic validation for any user with a phone account, while the raw
passthrough tool kept working.

- add sms, phone, rcs to the SocialAccount platform enum in openapi.yaml
  and regenerate models (spec fix upstreamed separately so future regens
  keep the values)
- regression tests: AccountsListResponse validates payloads containing
  phone/sms/rcs accounts and the MCP accounts_list tool returns the full
  list with fields preserved
- bump package to 1.4.508 and SERVICE_VERSION to 1.2.1 (visible at
  /health) so the deploy is observable

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019c8DtXpqqSunXt4rWRQRTy
@mikipalet
mikipalet merged commit 853312b into develop Aug 15, 2026
4 checks passed
@mikipalet
mikipalet deleted the fix/accounts-list-phone-platform branch August 15, 2026 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant