list-smith-mcp
An MCP server (stdio transport) that exposes ListSmith as native tools for any MCP host — Claude Desktop, Cursor, or your own agent runtime.
ListSmith grades and repairs the Bazaar discovery metadata of x402
services. /v1/grade ($0.10) itemizes what is broken in a route's
discovery metadata — hollow schemas, failed SDK validation,
over-500-char descriptions, wrong asset addresses. /v1/fix
($0.50) returns a repaired, validator-passed discovery package inferred
from one real sample output. Both are paid in USDC on Base via the
x402 protocol — no accounts, no API keys; the
payment is the authentication.
The tools
list_grade — diagnosis only, no repaired content:
| Input | Type | Notes |
|---|---|---|
resource_url |
string (required) | Full URL of the x402 resource to grade |
sample_output |
any (optional) | One real response body from the endpoint; when supplied, it is also checked against the endpoint's published output schema |
Output: resource_url, graded_at, reachable, http_status,
x402_valid, terms, extension_present, sdk_validation,
schema_quality, defects (with severities), score (0–100), and
fix_available.
list_fix — the repair:
| Input | Type | Notes |
|---|---|---|
resource_url |
string (required) | Full URL of the x402 resource to repair |
sample_output |
any (required) | One real response body from the endpoint. The repaired output schema is inferred from this sample only — nothing is invented |
name |
string (optional) | Display name for the generated description; derived from the URL when omitted |
category |
string (optional) | Category (e.g. token-risk, search, data, media, monitoring) used to phrase the description's use-when sentence |
Output: resource_url, graded_at, ok, failure, score_before,
defects, package (description, repaired Bazaar extension, OpenAPI
and well-known snippets, instructions, validation results — shipped
only if it passes both x402 SDK validators), and notes.
Install
pip install list-smith-mcp # once published; or from a checkout:
pip install ./mcp-list-smith # (this directory, inside token-verdict-tools)
Requires Python ≥ 3.10. The server pins the MCP v1 SDK API
(mcp>=1.2,<2).
Configuration
All configuration is the operator's own environment — whoever runs this server supplies their own wallet. No key material ships in this package, and the package author never sees your key.
| Env var | Required | Purpose |
|---|---|---|
AGENT_PRIVATE_KEY |
for paid calls | EVM private key (0x...) of a wallet holding USDC on Base. Used locally to sign the x402 EIP-3009 authorization. |
AGENT_KEY_FILE |
alternative | Path to a file containing that key. |
LIST_SMITH_URL |
no | Service base URL override (default: production). |
LIST_SMITH_GRADE_MAX_AMOUNT_UNITS |
no | Spend guard for /v1/grade in USDC micro-units (default 100000 = $0.10, the known price). |
LIST_SMITH_FIX_MAX_AMOUNT_UNITS |
no | Spend guard for /v1/fix in USDC micro-units (default 500000 = $0.50, the known price). |
Each route is capped at its own price — the client refuses to sign
anything above the route's guard. Without a signer configured the
tools never pay. On a 402 they return the parsed challenge as a
structured error — error: "payment_required" with the full accepts
array (scheme, network, asset, amount, payTo) — so the calling agent
can see the price and decide what to do, or settle the challenge with
its own x402 client.
MCP host configuration
Claude Desktop (claude_desktop_config.json) — same shape for other
stdio MCP hosts:
{
"mcpServers": {
"list-smith": {
"command": "list-smith-mcp",
"env": {
"AGENT_PRIVATE_KEY": "0xYOUR_OWN_WALLET_KEY"
}
}
}
}
From a checkout instead of an install:
{
"mcpServers": {
"list-smith": {
"command": "python",
"args": ["-m", "list_smith_mcp"],
"env": {
"PYTHONPATH": "/path/to/token-verdict-tools/mcp-list-smith/src",
"AGENT_KEY_FILE": "/path/to/your/agent.key"
}
}
}
}
Prefer AGENT_KEY_FILE over inlining a key in a config file when your
host setup allows it.
How payment works
The client mirrors the standard x402 v2 flow (the same flow used for the fleet's own live cataloging payments):
POST /v1/gradeor/v1/fixunpaid → HTTP 402, challenge base64-encoded in thepayment-requiredheader.- Pick the
exact/eip155:8453entry fromaccepts. - Build an EIP-3009
TransferWithAuthorization(validAfter: 0,validBefore: now + maxTimeoutSeconds, random 32-byte nonce) and sign it as EIP-712 typed data against the USDC domain the challenge advertises (extra.name/extra.version). - Retry the identical POST with the payload in the
PAYMENT-SIGNATUREheader. The service verifies and settles through its facilitator (PayAI) server-side; the settlement receipt comes back in thepayment-responseheader.
Tests
pip install -e ".[dev]"
pytest
All payments mocked (httpx MockTransport, throwaway signer generated
at test time). The 402 fixtures are the real challenges captured from
production; the paid-flow tests verify the EIP-712 signatures actually
recover to the signer address, for both routes.
Security notes
- Your private key is read from your environment at runtime and used only to sign payment authorizations locally. It is never transmitted — the x402 payload contains a signature, not a key.
- The per-route spend guards cap any single call at the configured amounts (defaults: exactly the $0.10 grade and $0.50 fix prices).
- Run this with a dedicated agent wallet holding only working funds, the same way you would fund any agent.
Metadata
Release files for list-smith-mcp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| list_smith_mcp-0.1.1.tar.gz | 19.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| list_smith_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.1 kB
Release files / list_smith_mcp-0.1.1.tar.gz
| Download URL | list_smith_mcp-0.1.1.tar.gz |
|---|---|
| Size | 19.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
670f3726a05bf396f95ed6a9fa1dd81b9fb19417a70da7cd240c7cee17585453
|
|
BLAKE2b-256 checksum How to use checksums |
207de05b6aff4326109eff92cc78973ba7bc3f538d69bc7589edc20ba5348d95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logRelease files / list_smith_mcp-0.1.1-py3-none-any.whl
| Download URL | list_smith_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c972f2352bc05a2deb8baaf4b2c2cc370524fb2ef16131e5e525af63771492bb
|
|
BLAKE2b-256 checksum How to use checksums |
6cf8904dc56cb2e863cfecf77ede151218452bd7d00bf730bde0939c7de556a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logSecurity for list-smith-mcp 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for list_smith_mcp-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.