Skip to content

tzachbon/srulik-toolkit / plugins/mcporter-plugin/skills/mcporter

mcporter

Verified

Use MCP servers through the mcporter CLI and saved deterministic scripts instead of native MCP tools. Use whenever a task needs an MCP server's tools, when the session hint lists mcporter servers, or when the user asks to script, save, or maintain MCP calls.

examples/.mcporter/scripts/inventory-gold-stock.mjs

View on GitHub
#!/usr/bin/env node
// inventory-gold-stock.mjs [tag]
// Purpose: total stock of every item with <tag> (default "gold") across all pages.
// Servers: inventory (list_items). Output: one integer on stdout. Errors: stderr, exit 1.
// Needs: npm install --save-dev mcporter@0.17.0 (Node resolves the import from node_modules).
// Check: mcporter replay inventory-gold-stock -- node .mcporter/scripts/inventory-gold-stock.mjs
import { createRuntime } from 'mcporter';

const tag = process.argv[2] ?? 'gold';
const runtime = await createRuntime();
try {
  let total = 0;
  for (let page = 1, pages = 1; page <= pages; page++) {
    const { structuredContent: data } = await runtime.callTool('inventory', 'list_items', { args: { page } });
    pages = data.pages;
    total += data.items.filter((item) => item.tag === tag).reduce((sum, item) => sum + item.stock, 0);
  }
  console.log(total);
} catch (error) {
  console.error(error.message);
  process.exitCode = 1;
} finally {
  await runtime.close();
}
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall