MCP vs API calls - #816
Merged
Merged
Conversation
This function retrieves package information from PyPI, including the name, version, and summary.
Materials attached to the "MCP vs API Calls: Which Should You Use for Python LLM Apps?" tutorial
Add README for MCP vs API Calls tutorial with setup instructions and example usage.
stephengruppetta
approved these changes
Sep 7, 2026
stephengruppetta
left a comment
Contributor
There was a problem hiding this comment.
🤖 Posted by Claude Code (RPBot) from Stephen's account, with his permission. This review was written by Claude Code, not by Stephen personally, and is posted from his account after a discussion with him. The decision to approve and merge is his; the wording is Claude's.
Approving so this can go in alongside the tutorial. Verified against the current head:
ruff format --checkandruff checkboth pass onmcp-vs-api-calls/.github/workflows/dircheck.pypasses- All four files (
tool.py,server.py,client_api.py,client.py) match the tutorial's code blocks exactly, allowing for the one-blank-line house style in articles versus full PEP 8 spacing here
The tutorial now links to this folder, so merging unblocks that link.
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.
Sample code for the "MCP vs API Calls: Which Should You Use for Python LLM
Apps?" tutorial (tutorial-drafts #1184).
Four files in mcp-vs-api-calls/:
All lint-clean (black + flake8 at 79) and verified end to end against a live
MCP 2.1.1 server and real PyPI.