Skip to content

Add offline SocialMediaScraper MCP commands - #1318

Draft
shisan12323 wants to merge 2 commits into
nushell:mainfrom
shisan12323:add-socialmediascraper-offline-module
Draft

shisan12323 wants to merge 2 commits into
nushell:mainfrom
shisan12323:add-socialmediascraper-offline-module

Conversation

@shisan12323

Copy link
Copy Markdown

Change

Add original Nushell commands for offline search, schema inspection and request preview through the already installed SocialMediaScraper Node stdio MCP client. I submit on behalf of the product. AI-assisted preparation, code review and automated testing are disclosed, including an Assisted-by: Codex commit trailer. No human review/security certification or maintainer approval is claimed.

This is a small Nu integration, not another SDK, hosted API, new server or copied endpoint catalog. Five files only: the Nu module, its standard-library Node stdio bridge, README, actual procedural Nu tests, and an entry in modules/README.md. Validation workflow/templates stay on a separate own-fork preparation branch and are not proposed here. The existing fxmacrodata module was read as a structural API-wrapper peer; its functionality/content was not copied.

Developer use

Prerequisites: Linux, Nu0.117.0 (tested), Node>=20 and the trusted existing client executable. Older Nu/other OSes are not verified; the bridge explicitly rejects non-Linux. Nothing is installed automatically by the module, and no provider account/key is needed for these commands. The fixed client target is development archive0.1.1/protocol serverInfo0.1.0, with a dated197-operation catalog, not current-provider synchronization.

use modules/socialmediascraper/mod.nu *
socialmediascraper search "instagram profile" --limit 3
socialmediascraper inspect tiktok_profile
socialmediascraper preview tiktok_profile {handle: "synthetic_nu"} --idempotency-key nu-synthetic-example
socialmediascraper search --limit 5 | get operations | select operation_id method summary

These inputs are synthetic. Results are actual local catalog/schema/request-plan records, not fabricated live social-data responses. Preview retains request_sent: false, snapshot pricing/version information and budget_is_enforced: false. Use --server-command /absolute/path/to/socialmediascraper-mcp when the executable is not on PATH. One separately validated client installation route is its public vfox plugin ZIP; that registry request is independent and its short name is not assumed available.

Current provider documentation · 20 existing scenario guides.

Costs and boundaries

Only the existing search_operations, inspect_operation and preview_request tools are exposed. execute_request is rejected by the bridge before launching a client process. The child receives a minimal environment with provider credentials/Node preload settings omitted, paid execution explicitly off and process budget0. It is launched directly without a shell, no implicit pagination/retry, with bounded JSON-RPC output/response timeout and process cleanup. It expects the fixed original serverInfo and offline request_sent: false result.

The MIT client is free software. Real provider data is separately paid/default-off and normally needs the operator's own account/key, prepaid access, explicit opt-in/price confirmation and positive process budget. That optional action is not available through these Nu commands. A local preview budget is not an account-level billing cap. No key, credits or account is included. Verify current provider contracts/prices before any separate opt-in execution.

Actual validation

Public native run47069745353, preparation workflow source b6f75bf591674dc7a32632fab170920c935ae89b, native tested contribution 011fb4c567ff2d1de8a0ec0bc933c6eab35279e3, upstream base 02ad75c09dc62b27b0f5452ddd57bfd9c977d3bb:

  • Actual Ubuntu24.04amd64, Nu0.117.0 (official binary SHA verified), Node22.23.5/npm10.9.9.
  • Required native toolkit check pr --and-exit passed on the changed Nu files. The toolkit's test task is currently a placeholder and is not counted as logic-test evidence.
  • 19 top-level Nu assertions actually executed against the real installed client: all three commands, catalog count/schema, Unicode argument/URL round trip, request count/idempotency and snapshot-budget boundary, invalid operation/parameter/limit, missing executable, malformed JSON and rejection of the paid tool before child launch.
  • The original client's 18 real stdio assertions ran separately. These suites are not summed into37 distinct new cases.
  • The test-only client installation used the original client archive/lock/test and eight official npm tarballs, all SHA256-verified before offline npm. All13 original client file hashes, eight dependency versions/license texts and byte-identical original/compatibility lock were checked. Source, dependencies and actual API execution component were unchanged.
  • Test-only scratch client paths were cleaned; this is not a package-manager uninstall or global Nu-module installation claim. Native Git committed/pushed the tested five-file contribution branch. A subsequent README-only commit records these final facts; runtime code/tests remain byte-identical.

The first run47067495691 stopped at npm public-registry idle timeout while installing the pre-existing client, before module/toolkit/logic tests. It remains failure evidence. The revised test harness front-loads Nu checks, explicitly fetches the same official resources with bounded/no-retry curl, then installs locked dependencies offline. No alternative registry/proxy, integrity bypass or published vfox code change was used. The original client's historical success marker contains HOMEBREW; no Homebrew ran here.

No provider/model/paid requests, real-user data, GUI/hosted OAuth, physical workstation, other distribution/architecture or current-provider contract test is claimed. Source/runtime verification, this new upstream request, merge/index publication and database recording remain separate states.

shisan12323 and others added 2 commits December 3, 2026 08:47
Original Nu integration, native toolkit and real installed-client logic verified on Ubuntu. No paid execution exposed.

Assisted-by: Codex
@fdncred

fdncred commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

You should have your bot port the *.cjs file to nushell first.

@fdncred
fdncred marked this pull request as draft December 3, 2026 12:08
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.

2 participants