MCP
MCP server
jsys exposes a Model Context Protocol server at mcp.jsys.com (or http://localhost:3002 in dev). One shared binary; your X-API-Key scopes everything.
Connect from Claude Code
{
"mcpServers": {
"jsys": {
"transport": "streamable-http",
"url": "https://mcp.jsys.com/mcp",
"headers": { "X-API-Key": "res_live_…" }
}
}
}Test with the inspector
npx @modelcontextprotocol/inspector \
--transport streamable-http \
--url http://localhost:3002/mcp \
--header 'X-API-Key: res_test_…'Tools
list_products— reseller-scoped catalog with selling price and metadata schemaget_wallet_balance— wallet balance, billing mode, credit limitcreate_order— create an order; takesidempotencyKey+customer+lineItemsget_order— fetch by id with fulfillment statuslist_orders— cursor-paginated with status / customerId filterscancel_order— cancel a PENDING order; refunds the wallet
Sessions
The server uses MCP's Streamable HTTP transport with stateful sessions. On the first request the server issues an Mcp-Session-Id response header — include it on subsequent requests in the same conversation. Sessions are evicted after 30 minutes of idle time; reconnect by initializing again.