Rename mcp-vs-api-calls to mcp-vs-api to match the tutorial slug - #819
stephengruppetta wants to merge 1 commit into
Conversation
The post slug is mcp-vs-api, and materials folders match the post slug (python-mcp, python-mcp-client, python-copy). Also fixes the README's tutorial link, which pointed at a slug that never existed, and pins anthropic in the install command to match the tutorial.
@bartosz-zaczynski flagging for review when you get a chance — Stephen can't approve it since it was opened from his own account. Follow-up needed after this merges: the opt-in for this tutorial ( |
Consolidates the two open PRs on this folder into one. - Renames mcp-vs-api-calls/ to mcp-vs-api/ to match the tutorial slug (supersedes #819, minus its stray root-level uv.lock). - Syncs client.py and client_api.py with the tech-review changes in tutorial-drafts#1184: collect every tool_use block and append the assistant turn once, select the text block by type rather than position, and raise max_tokens to 2048 (supersedes #832). - Repairs the leftover fragments in #832: client_api.py did not parse, and client.py ran its __main__ block twice. - Points the README at the correct tutorial URL and the pinned install command. Code verified line-for-line against the article. ruff check and ruff format pass. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Superseded by #850, which includes this rename alongside the client-code sync from #832, so the folder moves once rather than twice. One thing deliberately left out: this branch also added a root-level 🤖 Posted by Claude Code (RPBot) on Stephen's behalf, with his permission. |
The tutorial's slug is now
mcp-vs-api, and materials folders match the post slug (python-mcp,python-mcp-client,python-copy,python-json). This renames the folder to match.Two README fixes while in here:
realpython.com/mcp-vs-api-calls/, which is a slug that never existed. Now points atrealpython.com/mcp-vs-api/.anthropicunpinned, so it had drifted from the tutorial after today's tech-review fix. Now"anthropic>=1,<2", matching the article.ruff format --check,ruff check, anddircheck.pyall pass on the renamed folder.🤖 Opened by Claude Code (RPBot) from Stephen's account, with his permission, after a discussion with him.