ebay-auth

ebay-auth is a command for Claude Code from jbwashington/ebay-mcp. It costs 5 tokens per session (155 once invoked), scanned A, original, MIT.

A command that logs the coding agent into eBay using OAuth, the standard permission-based sign-in method.

In plain words
What is it for?
Use it to authenticate against eBay's production or sandbox environment and save the token in the appropriate environment file.
Why use it?
It creates the refresh token the eBay connection needs to make API calls after you approve access in your browser.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the ebay-listing-automation plugin — 13 commands, 5 agents, 3 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/jbwashington/ebay-mcp/ebay-auth
Clone the repo
git clone --depth 1 https://github.com/jbwashington/ebay-mcp

Made for: Claude Code.

Or install ebay-listing-automation, the plugin that ships this one along with the rest of its 13 commands, 5 agents, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ebay-auth

README.md
[![agentmods](https://agentmods.dev/badge/commands/jbwashington/ebay-mcp/ebay-auth.svg)](https://agentmods.dev/commands/jbwashington/ebay-mcp/ebay-auth)
Your own site
<a href="https://agentmods.dev/commands/jbwashington/ebay-mcp/ebay-auth"><img src="https://agentmods.dev/badge/commands/jbwashington/ebay-mcp/ebay-auth.svg" alt="Measured on agentmods" height="20"></a>
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 155 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00005 $0.00155
Opus 5 $0.00003 $0.00077
Sonnet 5 $0.00001 $0.00031
Haiku 4.5 $0.00001 $0.00015

Measured 6d ago against content hash c41b80afac39, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ebay-auth scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/ebay-auth.md · 31 lines

What it actually says

eBay OAuth Authentication

Authenticate with eBay to get a refresh token for API access.

Instructions

Run the authentication script:

!`bun run auth`

This will:

  1. Start a local web server on port 3000
  2. Open your browser to eBay's authorization page
  3. After you grant access, save the refresh token to .env.production.local
  4. The token is valid for 18 months

If you prefer to use the sandbox environment:

!`EBAY_ENV=sandbox bun run auth`

The refresh token will be automatically used by the eBay MCP server for all API calls.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 31 lines · 5 tokens per session scan A c41b80afac39

Subscribe to this mod's changes

ebay-auth is a command published in the GitHub repository jbwashington/ebay-mcp (13 stars, last pushed 6mo ago), licensed MIT. It adds 5 tokens to every session and 155 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other commands, from other repositories