Skip to content

fix(mcp): show_conversation passes account_id by keyword - #130

Closed
Zernio-Elean wants to merge 1 commit into
developfrom
fix/mcp-show-conversation-account-id
Closed

Zernio-Elean wants to merge 1 commit into
developfrom
fix/mcp-show-conversation-account-id

Conversation

@Zernio-Elean

Copy link
Copy Markdown
Contributor

Why

The hosted MCP tool show_conversation fails on every call with TypeError: get_inbox_conversation_messages() takes 2 positional arguments but 3 ... were given. The regen in 7e04675 (1.4.1911, 2026-11-20) made account_id optional and keyword-only. The MCP App view added in #113 still passed it by position. Production zernio-mcp (b9d9fb0) has the bug. A customer reported it (support ticket SUP-2373).

What

  • apps/tools.py: show_conversation passes account_id=account_id.
  • test_mcp_tool_sdk_signatures.py now also scans apps/tools.py, so a regen that drifts from a hand-written view fails CI. Before this fix the test fails on show_conversation. After it, the test passes (1403 passed, full suite 3463 passed). An AST check of the other 11 client calls in apps/tools.py found no other mismatch.

🤖 Generated with Claude Code

The 1.4.1911 regen made get_inbox_conversation_messages take account_id as
keyword-only, so the MCP App view raised TypeError on every call. The SDK
signature test now also covers apps/tools.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Zernio-Elean

Copy link
Copy Markdown
Contributor Author

Review (fresh Opus): APPROVE on eda8b37

Finding Action
show_conversation fix is complete; no hand-written resource overrides the method none needed
Test collects all 12 client calls in apps/tools.py, lambdas included; reverting the fix fails [show_conversation] none needed
show_inbox passes **scope kwargs the AST scan cannot see (checked by hand: all exist today) note, out of scope
KNOWN_FAILURES["tools_download_tik_tok_video"] no longer matches a collected tool note, existed before this PR
Check Result
test_mcp_tool_sdk_signatures.py without the fix 1 failed (show_conversation)
Same test with the fix 1403 passed
Full suite (integration excluded) 3463 passed, 14 skipped
ruff check / format on changed lines clean (format drift in apps/tools.py already existed)
Metric (Axiom zernio-mcp, tool == "show_conversation") Before Expected after deploy
Calls 2026-11-20..24 76 TypeError, 0 ok (36 users) error_type == "TypeError" drops to 0
Calls 2026-11-18..19 (before the regen) 28 ok similar ok rate

Post-deploy check (pending): once the Railway deployment zernio-mcp / production reports this merge sha, run the same query from the deploy time onward and compare outcome against messages_get_inbox_conversation_messages as the control.

@Zernio-Elean

Copy link
Copy Markdown
Contributor Author

Superseded by #131, which fixes show_conversation plus the other positional call sites in apps/tools.py and is already live (release 1621eb9).

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