Repository navigation
SocialMediaScraper: native Typer commands for MCP catalog, schema and offline request preview #2036
aistudio12
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
SocialMediaScraper — socialmediascraper.org · API documentation · Current pricing
I built an original MIT Typer CLI for offline API request planning. It gives developers three commands over a genuine local MCP stdio server: search the operation catalog, inspect an operation's schema, and preview a request from an explicit local JSON parameter file.
The app uses an explicit
Typer()instance,Annotatedarguments/options, a callback for trusted local executable paths, native generated help, JSON output and deliberate exit codes. It follows the official Skill shipped with the installed Typer 0.29.3; it does not use an external Click extension. There is no execution command, account-key option, model or shell-completion installation.Source and install
Recorded versions: Typer 0.29.3, MCP 2.3.0, CPython 3.13.5/macOS arm64 and Node 22.22.3. Node>=20 is declared by the underlying package/SDK, but Node 20 itself was not tested. The provided wheel lock is platform-specific, not a universal Linux/Windows lock.
The fresh private Python install checked every official wheel SHA-256, reused all 35 existing task-cache wheels, downloaded no new dependencies and passed
pip check. The Node adapter reused an existing isolated install after its 13 package files matched the exact public development archive. Setup downloads in a fresh user environment are separate from runtime network counts.Follow the seven-file guide to install the environment and verified Node archive and resolve
$MCP_ENTRY. Global options precede the subcommand:The fixture is
{"handle":"example_creator"}: synthetic input, not a fetched profile. Inspect an operation first; supply its actual fields rather than guessing. Parameter input must be a local JSON object up to 64 KiB. Never put credentials in the file, CLI options, URLs, source or shell history.The Node v0.1.1 asset is a GitHub development release, not npm registry publication. Its SHA-256 is
98d24faf67114de1596645e40f5808fe514c0acec27a0b8c410aa735439fcc0e; unchanged runtime metadata reports 0.1.0. These example files are separate from the immutable archive.Actual behavior and tests
--helphandleschema /request_sent:false--limit 26/ unregisteredexecute_requestpython planner_cli.py ... catalogsubprocess__main__entry pointCliRunner exercised all three commands and four actual MCP sessions; the standard subprocess separately exercised catalog with one more session. All five closed their contexts and exited Node processes with socket-guard count zero. Both parent and child Python network guards observed zero socket attempts. Model/provider/paid calls: zero. No MCP responses were mocked, and the execution tool was never selected.
Native usage errors and returned MCP operation errors both exit 2, but only the latter prints the operation's error JSON on stdout. Other local adapter failures use a generic stderr error and exit 1; every crash, interruption and failure type was not tested. The child Python guard was confined to a temporary test directory/environment, never installed globally. Shell completion, interactive prompts, terminal colors and other operating systems were not tested.
Authentication and cost
Every command independently launches the adapter with execution
false, budget0and an empty key. Fixed mappings select onlysearch_operations,inspect_operationorpreview_request. Command selection is not authorization for the raw adapter's separate execution tool; network guards are verification aids, not a general sandbox.Free MIT installation and offline planning do not include free SocialMediaScraper data. Real API data needs the customer's own account/key, prepaid credits and current per-operation fees through a separate approved execution path. The bundled 197-operation
2026-11-23.2catalog is historical, not a current quote or availability guarantee; snapshot process budgets are not provider-enforced account-wide caps. Current docs and pricing are linked above.Hosted OAuth, live data delivery, model-selected tools and production authentication were not exercised. This is an independent runnable source example, not a separately published Typer/PyPI plugin or framework endorsement. Prepared with AI assistance for the authorized publisher, with claims limited to the recorded install and genuine CLI/MCP checks.
All reactions