Repository navigation
fix(mcp): posts_list_posts stops sending view=summary when the agent picks fields - #97
Merged
Merged
Conversation
…picks fields py#90 made view=summary the agents' default for listPosts, and the API answers 400 to fields and view=summary together. Since 13:21 UTC Nov 12, 19-30% of the MCP's GET /v1/posts calls failed that way (78 sessions in 70 minutes). The default view is now left out whenever fields is set. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
Review (code-review high --fix)
QA
Metrics
Post-deploy check: rerun |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
py#90 made
view=summarythe default for agents onposts_list_posts, and the API rejectsfieldsandview=summarytogether (Send either fields or view=summary, not both, 400). Since py#90 deployed (Nov 12, ~13:21 UTC) the MCP'sGET /v1/posts400 rate went from 0.1-0.4% to 19-30% (Worker, SJC,late-python-sdk): 693 failed calls from 78 sessions in 70 minutes (Axiomzernio-mcp). Reproduced through the hosted MCP.What
viewout of the request whenever the operation hasfieldsand the agent set it (view=None if fields else view). OnlylistPostshas both today.posts_list_posts: the call and one sentence of its description change.fieldsnoviewis sent; without itview=summarystill is. The first fails on develop.🤖 Generated with Claude Code