Sign In

kaduno-mcp

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kaduno-mcp

MCP server for K-Shop — connect Cursor, Claude, and AI agents to your commerce platform (admin, storefront, or public catalog)

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

kaduno-mcp

MCP server for K-Shop — connect Cursor, Claude Desktop, Codex, Windsurf, and other AI agents directly to your commerce platform.

Three servers, one package — select which one to connect to with KADUNO_SERVER:

ServerKADUNO_SERVERWhat it exposesAuth
AdminadminOrders, catalog, inventory, customers, platform settings, super-admin control plane — grouped into ~25 domain-router tools covering 200+ actionsAPI key (staff/operator/admin/super_admin)
Storefrontstorefront (default)Customer shopping — browse, cart, checkout, orders, returns, B2B company purchasing, bookingsCustomer JWT or agent API key
PublicpublicAnonymous catalog browsing + guest checkout — no account requiredNone (or API key for higher rate limits)

Quick Start

No clone or install needed — run directly via npx:

{
  "mcpServers": {
    "kshop": {
      "command": "npx",
      "args": ["-y", "kaduno-mcp@latest"],
      "env": {
        "KADUNO_API_KEY": "<your-api-key>",
        "KADUNO_SERVER": "storefront"
      }
    }
  }
}

Add multiple entries to connect to more than one server at once (e.g. admin + storefront) — each entry is an independent stdio process:

{
  "mcpServers": {
    "kshop-admin": {
      "command": "npx",
      "args": ["-y", "kaduno-mcp@latest"],
      "env": {
        "KADUNO_API_KEY": "ak_live_...",
        "KADUNO_SERVER": "admin"
      }
    },
    "kshop-store": {
      "command": "npx",
      "args": ["-y", "kaduno-mcp@latest"],
      "env": {
        "KADUNO_API_KEY": "ak_store_...",
        "KADUNO_SERVER": "storefront"
      }
    }
  }
}

Config Snippets by Client

Cursor

Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project):

{
  "mcpServers": {
    "kshop": {
      "command": "npx",
      "args": ["-y", "kaduno-mcp@latest"],
      "env": { "KADUNO_API_KEY": "<your-api-key>", "KADUNO_SERVER": "storefront" }
    }
  }
}

Claude Desktop

Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "kshop": {
      "command": "npx",
      "args": ["-y", "kaduno-mcp@latest"],
      "env": { "KADUNO_API_KEY": "<your-api-key>", "KADUNO_SERVER": "admin" }
    }
  }
}

Windsurf

Add to Windsurf's MCP config (Settings → Advanced → MCP Servers), same JSON shape as Cursor above.

OpenAI Codex CLI

Add to ~/.codex/config.toml:

[mcp_servers.kshop]
command = "npx"
args = ["-y", "kaduno-mcp@latest"]
env = { KADUNO_API_KEY = "<your-api-key>", KADUNO_SERVER = "storefront" }

Generic (any MCP-compatible client)

Run directly over stdio:

KADUNO_API_KEY=<your-api-key> KADUNO_SERVER=storefront npx -y kaduno-mcp@latest

Getting Your API Key

  • Log in to K-Shop admin
  • Navigate to Settings → Agent API Keys (staff/admin) — or use your customer account JWT for the storefront server
  • Create a new key scoped to the store/tenant and permission tier you need
  • public server access does not require a key

Environment Variables

VariableRequiredDefaultDescription
KADUNO_SERVERNostorefrontWhich server to connect to: admin | storefront | public
KADUNO_API_KEYYes, unless KADUNO_SERVER=publicYour K-Shop API key or agent key
KADUNO_API_URLNohttps://kshop.kshop01.kloner.clh.noK-Shop API base URL (override for self-hosted / other tenants)

CLI Flags

npx kaduno-mcp --help      # Show usage help
npx kaduno-mcp --version   # Show version

Available Servers & Tool Counts

  • k-admin (~25 domain-router tools / 200+ actions) — kshop.orders, kshop.catalog, kshop.inventory, kshop.customers, kshop.platform, kshop.control, plus kshop.finance, kshop.cms, kshop.faq, kshop.reports, kshop.reach, kshop.crm, kshop.wms, kshop.purchasing, kshop.notifications, kshop.alerts, kshop.returns, kshop.work_orders, kshop.booking, and more.
  • k-storefront (4 tools / 39 actions) — kshop.storefront (browse/cart/checkout/orders), kshop.storefront.b2b (company purchasing), kshop.storefront.booking.
  • k-public (3 tools / 15 actions) — kshop.public.catalog, kshop.public.checkout, kshop.public.booking.

Features

  • Domain routers: related actions grouped behind one tool with an action parameter — dramatically fewer tools in your agent's context window
  • Guided errors: machine-readable error codes with recovery hints instead of raw exceptions
  • Auto-refresh: tool catalog refreshes every 5 minutes (no restart needed for server-side tool updates)
  • Offline quickstart: built-in kshop://docs/quickstart-local resource works without network
  • Retry on unknown tool: automatically refreshes catalog when a tool is not found (handles server-side deploys mid-session)
  • Clear error messages: auth failures, network issues, and misconfigured server selection are explained in plain language

Self-Hosted / Staging

Override the API URL for self-hosted deployments or staging environments:

{
  "mcpServers": {
    "kshop": {
      "command": "npx",
      "args": ["-y", "kaduno-mcp@latest"],
      "env": {
        "KADUNO_API_KEY": "<your-api-key>",
        "KADUNO_SERVER": "storefront",
        "KADUNO_API_URL": "https://your-store.kloner.clh.no"
      }
    }
  }
}

Troubleshooting

"Failed to connect to K-Shop <server> server" — verify the API is reachable at KADUNO_API_URL, and that KADUNO_API_KEY is valid for the selected KADUNO_SERVER.

"KADUNO_API_KEY is required when KADUNO_SERVER=admin/storefront" — the public server allows anonymous access; admin and storefront require a key.

Tool not found after a server deploy — the proxy automatically retries once after refreshing its catalog; if it still fails, restart your MCP client to force a fresh connection.

Development

git clone <repo-url>
cd publish/mcp
npm install
npm run dev    # Run from source via tsx
npm run build  # Compile with tsup

License

MIT

Keywords

mcp

FAQs

Package last updated on 02 Jul 2026

Related posts