@sellhapi/mcp
v0.2.0
Published
SellHapi MCP server — build and manage SellHapi storefronts from AI tools
Maintainers
Readme
@sellhapi/mcp
MCP server for SellHapi — build and manage storefronts from AI tools.
Two modes
Stdio (Claude Code, Cursor, Windsurf) — runs locally, authenticates with API key.
Hosted HTTP (ChatGPT, Claude web) — runs as a service, authenticates via OAuth 2.1.
Setup — stdio
1. Install
npm install -g @sellhapi/mcp2. Get an API key
Go to sellhapi.com → Settings → API Keys → Create Key.
3. Configure your AI tool
Claude Code — add to ~/.claude/claude_desktop_config.json:
{
"mcpServers": {
"sellhapi": {
"command": "sellhapi-mcp",
"args": ["--api-key", "sk_live_your_key_here"]
}
}
}Cursor — add to MCP settings:
{
"mcpServers": {
"sellhapi": {
"command": "npx",
"args": ["-y", "@sellhapi/mcp@latest", "--api-key", "sk_live_your_key_here"]
}
}
}Or set the environment variable instead of --api-key:
export SELLHAPI_API_KEY=sk_live_your_key_hereSetup — hosted (ChatGPT, Claude web)
The SellHapi MCP server is hosted at:
https://sellhapi-mcp.onrender.com/mcpNo installation required — just connect your AI client.
Claude web
- Go to claude.ai → Settings → Integrations → Add integration
- Enter:
https://sellhapi-mcp.onrender.com/mcp - Click Connect — you'll be redirected to SellHapi to authorise access
- Once authorised, all SellHapi tools are available in your Claude conversations
ChatGPT
- Go to chatgpt.com → your profile → My GPTs → Create a GPT (or edit an existing one)
- In the GPT editor → Configure → Actions → Add action
- Set the server URL to:
https://sellhapi-mcp.onrender.com/mcp - Authentication: OAuth 2.0 — the server handles the full flow automatically
sell_api env vars
The sell_api server needs these for OAuth:
| Variable | Description |
|----------|-------------|
| MCP_OAUTH_SECRET | JWT signing secret for MCP access tokens. Falls back to JWT_VENDOR_SECRET if not set. |
| SELLHAPI_VENDOR_URL | Base URL for consent pages (default: https://sellhapi.com) |
Tools
Studio (15)
list_projects— list vendor's Studio projectsget_project— get project details with codecreate_project— create a new project (returns workflow guide + build rules)apply_design_direction— store a full DesignDirection (colors, fonts, pages) — zero creditsset_design_direction— ask SellHapi's Claude to generate a direction from a brief (costs credits)analyze_design_reference— extract design DNA from an image, website URL, or Pinterest pinsimport_website_content— scrape existing website copy into the projectanalyze_reference— fetch OG metadata + theme color from any URLapply_wireframe— store approved mid-fidelity wireframes per page — zero creditspush_code— push React code (validated by BuildGuard) — zero creditspatch_code— push only changed files, merged into existing code — zero creditsdeploy_website— publish project to live storefrontget_preview— get current sandbox preview URLlist_revisions— list revision historyget_revision— get a specific revision's coderestore_revision— restore project to a previous revision
Context
get_vendor_context— call this first — returns capabilities, store slug, product/service counts in one callsuggest_capabilities— given a business brief, returns ranked capability IDs to activate
Commerce (8)
list_products,list_digital_products,list_service_listingslist_events,list_membership_tiers,list_donation_campaignslist_appointment_services,list_capabilities
Content (4)
list_content,list_forms,list_collections,list_articles
Intelligence (2)
list_orders,get_wallet_balance
Reference
get_build_rules— full BuildGuard validation rules (call when push_code fails)get_runtime_hooks— complete @sellhapi/studio-runtime hook reference
Resources
sellhapi://runtime-hooks— available React hooks from @sellhapi/studio-runtimesellhapi://build-rules— BuildGuard validation rulessellhapi://capability-patterns— UX patterns per capability
Auth
API key (sk_live_...) — for stdio clients. Create at sellhapi.com → Settings → API Keys.
OAuth 2.1 — for web clients. The hosted server proxies OAuth to sell_api. Supports dynamic client registration (RFC 7591) and PKCE (S256).
Development
npm run dev # watch mode (tsc --watch)
npm run build # compile
npm start # stdio mode
npm run start:hosted # hosted HTTP mode