npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

flipagent-mcp

v1.2.0

Published

MCP server exposing flipagent's reseller toolchain (eBay search, sold-listing search, evaluate, buy, list, ship, sale fulfillment, finance) to Claude Code and any other MCP-compatible host. Toolsets opt-in via FLIPAGENT_MCP_TOOLSETS for comms, forwarder,

Downloads

677

Readme

flipagent-mcp

MCP server that gives Claude Code (and any MCP-compatible host over stdio) a one-stop reseller API covering the full source → evaluate → buy → list → fulfill → finance loop.

npx -y flipagent-cli init --mcp

The CLI writes the host config in one go. Manual setup is in § Config.


Your first 60 seconds

# 1. Install + register with your MCP host.
npx -y flipagent-cli init --mcp --keys

# 2. Get an api key (or sign in to grab an existing one).
open https://flipagent.dev/dashboard/

# 3. Restart the host. The default toolset appears in any chat.

Ask the agent something concrete:

"Find me three under-$100 Canon EF 50mm lenses worth flipping. Show your math."

The agent chains flipagent_get_capabilitiesflipagent_search_itemsflipagent_evaluate_item (3×) → returns verdicts with bid ceilings, expected net, and 3–5 sold comparables per item as evidence. No eBay account needed for that loop.

To go further (buy / list / ship / payout reads), connect an eBay seller account once via https://api.flipagent.dev/v1/connect/ebay (any sell-side tool's error response will surface that exact URL when OAuth is missing — relay it to your user).


Toolsets — controlling what shows up

Tools group by domain so the host loads only what's needed. Default = core. Set FLIPAGENT_MCP_TOOLSETS (comma-separated, or * for everything) to add more.

| Toolset | Default? | What's in it | |---|:-:|---| | core | ✅ | Sourcing (search, get, evaluate), buy (create_purchase, get_purchase, cancel_purchase, bids), listing essentials (create, update, relist, policies, locations, media), sale fulfillment (list_sales, ship_sale), finance (payouts, transactions), recommendations, programs. | | comms | ⬜ | Buyer messages, Best Offers in/out, disputes/returns, feedback. | | forwarder | ⬜ | Package-forwarder ops via the flipagent extension (Planet Express today). | | notifications | ⬜ | flipagent webhooks + eBay Platform Notifications. | | seller_account | ⬜ | Seller diagnostics (privilege, KYC, subscription, payments program, advertising eligibility, sales tax). | | admin | ⬜ | Ship providers, location detail/delete + state toggles, browser-DOM escape hatch (flipagent_query_browser). |

{
  "mcpServers": {
    "flipagent": {
      "command": "npx",
      "args": ["-y", "flipagent-mcp"],
      "env": {
        "FLIPAGENT_API_KEY": "fa_...",
        "FLIPAGENT_MCP_TOOLSETS": "core,comms"
      }
    }
  }
}

Tool naming + error-handling conventions

Every tool is flipagent_<verb>_<resource> (snake_case, action-leading). The flipagent_ prefix avoids collisions when other MCP servers are loaded alongside.

Errors that the caller can fix carry a next_action: { kind, url, instructions } block. The MCP renders that into isError: true content verbatim — relay the text to the end user and they'll know exactly where to go.


Mock mode

Set FLIPAGENT_MCP_MOCK=1 to return canned responses without calling the real api. Useful when verifying the host config first.

{ "env": { "FLIPAGENT_MCP_MOCK": "1" } }

Self-host / staging

Point the MCP server at a non-production api with FLIPAGENT_BASE_URL. Default is https://api.flipagent.dev.

{
  "env": {
    "FLIPAGENT_API_KEY": "fa_...",
    "FLIPAGENT_BASE_URL": "http://localhost:4000"
  }
}

Config

Add to your MCP host's config:

{
  "mcpServers": {
    "flipagent": {
      "command": "npx",
      "args": ["-y", "flipagent-mcp"],
      "env": { "FLIPAGENT_API_KEY": "fa_..." }
    }
  }
}

Restart the host after editing.


Troubleshooting

| Symptom | Cause | Fix | |---|---|---| | Every tool 401s | FLIPAGENT_API_KEY not set or revoked. | Set in MCP host env; restart host. | | Sell-side tools 401 with ebay_account_not_connected | API key has no eBay OAuth. | The error response carries next_action.url — open it in a browser, authorize, retry. | | flipagent_create_purchase returns 412 transport_unavailable | No REST approval and extension not paired. | Pair the extension (recommended) per next_action.url, or have the api operator set EBAY_ORDER_APPROVED=1. | | Forwarder / query_browser calls 504 | Extension not paired, or user not signed into the target site in the paired browser profile. | Check flipagent_get_capabilities().client.extensionPaired. If true, ensure user is signed into planetexpress.com / ebay.com in that profile. |

Stuck? File an issue at https://github.com/flipagent/flipagent.


License

MIT.