Skip to main content
Glama
mcp-dealer-pricing

mcp-dealer-pricing

README.md
# Shample Intel — standalone neutral MCP server

Local, **private and unpublished** package: `@shampleintel/mcp-dealer-pricing`.
Despite the requested package/tool names, this package provides **inventory data
quality only**: no pricing lookup, margin calculation, MAP decision, purchase
ranking, private catalog access, or Buy/Buy Light/Skip verdicts.

Uses the official `@modelcontextprotocol/sdk` with **stdio**, independently of
the website's build. Node **20.19+** is required. No browser extension or hosted
assistant is included. There is no npm release or public repository to install.

## Build and run

From this directory:

```sh
npm ci
npm run check
npm test
npm start
```

`npm test` builds the server and runs local mock-only SDK/HTTP tests.
For a plain build, use `npm run build`. Compiled files are in `dist/`.
Do not run this through a shell wrapper that writes banners to stdout:
stdio stdout is reserved for MCP messages.

Configure a desktop MCP client to launch Node directly:

```json
{
  "mcpServers": {
    "shampleintel": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/mcp-server/dist/index.js"]
    }
  }
}
```

The absolute path is a placeholder for your local checkout. Securely configure
**`SHAMPLE_INTEL_API_KEY`** in that client's environment/secret settings. Do not
paste a real key in chat, tool arguments, shared configuration, or source control.
The key is an existing `si_live_…` personal key from **`/account/api-keys`**.
The prefix is the application's key format, not a Stripe credential or billing mode.
Startup and tool discovery do not require a key or make network calls.

The default API origin is **`https://shampleintel.com`**, as supplied by the owner.
New routes must be published separately; a local build does not deploy them.
Set **`SHAMPLE_INTEL_API_URL`** to an explicitly trusted development **HTTPS
origin** to test a preview. HTTP is accepted only for localhost/127.0.0.1/::1.
Paths, credentials, query strings, and fragments are rejected. Overrides receive
the configured key, so use a development key and a trusted development origin.
Private previews may require access authorization. Never disable TLS validation.

The old scaffold's `SHAMPLE_API_KEY` / `SHAMPLE_API_URL` names and
`verify_inventory` tool are replaced; update existing client configurations.

## Tools and limits

| Tool | Input | Result |
| --- | --- | --- |
| `verify_distributor_quote` | One row: optional `upc`, `mpn`, `sku`, `title`, `cost`, `quantity`; at least one nonblank field | Neutral quality report for the submitted row |
| `audit_upc_feed` | `{ "rows": [...] }`, 1–100 rows with the same fields | Neutral quality report, including duplicate/invalid identifier findings |

Examples (fictional values):

```json
{"upc":"012345678905","sku":"CASE-001","cost":"12.50","quantity":"4"}
```

```json
{"rows":[{"upc":"012345678905","sku":"CASE-001"},{"mpn":"PART-002","quantity":"invalid"}]}
```

UPCs/GTINs **must be strings**; leading zeros are preserved, never inferred or
silently repaired. Cost/quantity accept numbers or text so invalid source values
can appear as quality findings. Unknown fields are rejected. Maximum field
lengths: identifiers 150, title 500, cost/quantity text 60 characters.
There is no local file reading, CSV/XLSX parser, URL downloader, or chunking that
could hide multiple metered requests. Parse files outside the tool and explicitly
submit a bounded batch. Whole-file cleaning is available through the website.

Both local tools call **`POST /api/mcp`**, mapping to its existing
`validate_inventory` tool. A **verified active Dealer Pro** personal key is
required: **5,000 calls/month shared across API and MCP**, one call per batch.
Server-side revocation, tenant membership, and quota checks remain authoritative.
This wrapper does not bypass them. The REST API separately retains its existing
50-free-call allowance; that does **not** provide free MCP access. Starter REST
rows also share the 100-row monthly hosted allowance. Pricing is unchanged:
$0 Free Starter, $19 one-time Sheet Pass, $49/month Dealer Pro.

The hosted endpoint is stateless JSON-only Streamable HTTP. The wrapper makes
one authenticated `tools/call` request per local tool invocation. Discovery and
initialization stay local. There is no remote MCP session to resume.

## Safety and failure behavior

- Each request is capped at 64 KB and each JSON response at 1 MB.
- Requests time out after 30 seconds; redirects are rejected.
- Requests are **not retried automatically**: a timeout may follow a consumed call.
- Invalid/revoked key, inactive Pro, exhausted quota, unavailable route, and
  malformed/non-JSON responses produce clear tool errors without echoing
  provider bodies, private URLs, keys, or stack traces.
- Neither request contents nor credentials are logged; only MCP protocol output
  goes to stdout. Treat returned row text as untrusted data, not instructions.
- Inventory is not modified, but every successful tool call consumes allowance.
  Tools are deliberately not advertised as automatically repeatable/read-only.

## Third-party resources, not published integrations

- Google Gemini: <https://gemini.google>
- Perplexity: <https://perplexity.ai>
- GitHub: <https://github.com>

These are generic platform homepages, **not Shample Intel assistants, projects,
or a repository**. Compatibility and third-party pricing vary; these links do
not imply native stdio MCP support, free API access, or affiliation.
No website, package, assistant, or repository is published by this change.