stall-row-mcp 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- stall_row_mcp-0.1.2/.dockerignore +6 -0
- stall_row_mcp-0.1.2/.github/workflows/publish.yml +25 -0
- stall_row_mcp-0.1.2/.gitignore +8 -0
- stall_row_mcp-0.1.2/Dockerfile +9 -0
- stall_row_mcp-0.1.2/LICENSE +21 -0
- stall_row_mcp-0.1.2/PKG-INFO +149 -0
- stall_row_mcp-0.1.2/README.md +133 -0
- stall_row_mcp-0.1.2/glama.json +6 -0
- stall_row_mcp-0.1.2/pyproject.toml +33 -0
- stall_row_mcp-0.1.2/server.json +51 -0
- stall_row_mcp-0.1.2/src/stall_row_mcp/__init__.py +7 -0
- stall_row_mcp-0.1.2/src/stall_row_mcp/__main__.py +4 -0
- stall_row_mcp-0.1.2/src/stall_row_mcp/client.py +570 -0
- stall_row_mcp-0.1.2/src/stall_row_mcp/schemas.py +524 -0
- stall_row_mcp-0.1.2/src/stall_row_mcp/server.py +706 -0
- stall_row_mcp-0.1.2/tests/fixtures/guard_example.json +23 -0
- stall_row_mcp-0.1.2/tests/fixtures/payment_required.json +279 -0
- stall_row_mcp-0.1.2/tests/fixtures/pre_trade_guard_example.json +36 -0
- stall_row_mcp-0.1.2/tests/fixtures/pre_trade_guard_payment_required.json +346 -0
- stall_row_mcp-0.1.2/tests/fixtures/score_book_example.json +9 -0
- stall_row_mcp-0.1.2/tests/fixtures/sign_read_example.json +34 -0
- stall_row_mcp-0.1.2/tests/fixtures/toolkit_payment_required.json +279 -0
- stall_row_mcp-0.1.2/tests/fixtures/wallet_verdict_example.json +19 -0
- stall_row_mcp-0.1.2/tests/test_annotations.py +47 -0
- stall_row_mcp-0.1.2/tests/test_client.py +283 -0
- stall_row_mcp-0.1.2/tests/test_server.py +81 -0
- stall_row_mcp-0.1.2/tests/test_toolkit.py +176 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
publish:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
environment: stall-row
|
|
10
|
+
permissions:
|
|
11
|
+
id-token: write
|
|
12
|
+
contents: read
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
- uses: actions/setup-python@v5
|
|
16
|
+
with:
|
|
17
|
+
python-version: "3.12"
|
|
18
|
+
- name: Build stall-row-mcp
|
|
19
|
+
run: |
|
|
20
|
+
python -m pip install --upgrade build
|
|
21
|
+
python -m build
|
|
22
|
+
- name: Publish stall-row-mcp
|
|
23
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
24
|
+
with:
|
|
25
|
+
packages-dir: dist
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Jobfile Studio
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: stall-row-mcp
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary: MCP server for StallRow — the x402 utility row (wallet tools, verdicts, Verdict Index, packs) paid per call in USDC on Base
|
|
5
|
+
Author-email: "Ren, Verdict Row Patrol" <patrol@verdictrow.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Keywords: agents,base,mcp,usdc,wallet,x402
|
|
9
|
+
Requires-Python: >=3.10
|
|
10
|
+
Requires-Dist: eth-account>=0.11
|
|
11
|
+
Requires-Dist: httpx>=0.27
|
|
12
|
+
Requires-Dist: mcp<2,>=1.2
|
|
13
|
+
Provides-Extra: dev
|
|
14
|
+
Requires-Dist: pytest>=8; extra == 'dev'
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
|
|
17
|
+
<!-- mcp-name: io.github.QuincyGB/stall-row-mcp -->
|
|
18
|
+
|
|
19
|
+
# stall-row-mcp
|
|
20
|
+
|
|
21
|
+
> **Standalone home:** [QuincyGB/stall-row-mcp](https://github.com/QuincyGB/stall-row-mcp)
|
|
22
|
+
> — sibling of the fleet's token-verdict-mcp, route-verdict-mcp,
|
|
23
|
+
> list-smith-mcp and lock-smith-mcp wrappers.
|
|
24
|
+
|
|
25
|
+
MCP server for **[StallRow](https://stall-row-production.up.railway.app)**
|
|
26
|
+
— the "Verdict Row" utility stall: 20 pay-per-call tools (plus 3 free
|
|
27
|
+
balance/feed reads) for agents,
|
|
28
|
+
sold over [x402](https://www.x402.org) in **USDC on Base**, no account,
|
|
29
|
+
no API key. Wallet snapshots and verdicts, a buyer-side Pre-Trade
|
|
30
|
+
Guard, web/YouTube/repo utilities, continuous re-checks of catalogued
|
|
31
|
+
x402 listings, the Verdict Index change feed, and the fleet's bulk
|
|
32
|
+
products (Recheck Packs, Fleet Pass, Orchestrate).
|
|
33
|
+
|
|
34
|
+
This package gives any MCP host (Claude Desktop, Cursor, …) native
|
|
35
|
+
tools that handle the full x402 v2 payment flow themselves — 402
|
|
36
|
+
challenge → EIP-3009 `TransferWithAuthorization` signature (USDC on
|
|
37
|
+
Base, EIP-712) → paid retry — using **your** agent wallet.
|
|
38
|
+
|
|
39
|
+
## Tools
|
|
40
|
+
|
|
41
|
+
| Tool | What it does | Price |
|
|
42
|
+
| --- | --- | --- |
|
|
43
|
+
| `stall_wallet_snapshot` | Balances, tx count, age, contract flag for one address | $0.005 |
|
|
44
|
+
| `stall_allowance_audit` | Outstanding ERC-20 approvals with unlimited-approval flags | $0.005 |
|
|
45
|
+
| `stall_tx_decoder` | Decode one Base tx hash into plain English | $0.002 |
|
|
46
|
+
| `stall_gas_oracle` | Current Base gas prices (slow / standard / fast) | $0.001 |
|
|
47
|
+
| `stall_wallet_verdict` | Wallet risk screen: SAFE / CAUTION / AVOID with reasons | $0.02 |
|
|
48
|
+
| `stall_pre_trade_guard` | Screen an x402 payTo *before* paying it: PROCEED / CAUTION / ABORT | $0.005 |
|
|
49
|
+
| `stall_tube_search` | YouTube search with transcripts | $0.01 |
|
|
50
|
+
| `stall_page_to_markdown` | Fetch a web page as clean markdown | $0.01 |
|
|
51
|
+
| `stall_repo_vitals` | GitHub repo health signals | $0.005 |
|
|
52
|
+
| `stall_price_check` | Pricing comps for an x402 listing from the live catalog | $0.05 |
|
|
53
|
+
| `stall_card_smith` | Generate or grade an agent card (agent-card.json) | $0.10 |
|
|
54
|
+
| `stall_job_scout` | Open agent-job digest filtered by capability | $0.05 |
|
|
55
|
+
| `stall_recheck` | Re-check one catalogued x402 URL (payability + drift) | $0.005 |
|
|
56
|
+
| `stall_index_changes` | Verdict Index change feed (new/changed/removed, rotations) | $0.10 |
|
|
57
|
+
| `stall_orchestrate` | Full due-diligence battery on one x402 endpoint | $0.75 |
|
|
58
|
+
| `stall_recheck_pack` | Buy a Recheck Pack — 250 checks for one endpoint | $1.00 |
|
|
59
|
+
| `stall_fleet_pass` | Buy a Fleet Pass — $5.00 prepaid fleet balance (90 days) | $5.00 |
|
|
60
|
+
| `stall_recheck_pack_balance` | Free balance read for a Recheck Pack | free |
|
|
61
|
+
| `stall_fleet_pass_balance` | Free status read for a Fleet Pass | free |
|
|
62
|
+
| `stall_sign_read` | Read one x402 endpoint's 402 sign: both wire formats parsed, exact decimals, declared-vs-live mismatches, Python/TS SDK verdicts | $0.01 |
|
|
63
|
+
| `stall_score_book` | Track record for one resource / origin / payTo from StallRow's own stores | $0.01 |
|
|
64
|
+
| `stall_guard` | Pre-pay verdict for one x402 endpoint (sign + bad-payTo registry + history): PROCEED / CAUTION / ABORT | $0.01 |
|
|
65
|
+
| `stall_recheck_feed` | Free read of the Recheck feed v2 — hash-chained envelopes with a `since_seq` cursor | free |
|
|
66
|
+
|
|
67
|
+
Coverage note (audited 2026-11-19 against the fleet route inventory):
|
|
68
|
+
this wrapper covers 20 of StallRow's 42 priced routes — the original
|
|
69
|
+
utility row plus the inspector toolkit. The 22 newer/niche routes
|
|
70
|
+
(fleet-check, counterparty-report, ledger-dataset, toolkit/pack,
|
|
71
|
+
video/transcript tools, batch variants, and similar) are not yet
|
|
72
|
+
wrapped; they remain callable directly over x402 HTTP, and via
|
|
73
|
+
StallRow's hosted MCP endpoint for routes priced ≤ $0.05.
|
|
74
|
+
|
|
75
|
+
Verdicts are automated checks over public data — sanctions screens,
|
|
76
|
+
catalog history, chain reads — with the evidence attached. A flag is a
|
|
77
|
+
lead to review, not proof of wrongdoing, and no verdict is a guarantee.
|
|
78
|
+
|
|
79
|
+
## Install
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
pip install stall-row-mcp
|
|
83
|
+
# or run without installing:
|
|
84
|
+
uvx stall-row-mcp
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Configuration
|
|
88
|
+
|
|
89
|
+
All configuration is environment variables — set them on the MCP server
|
|
90
|
+
process in your host's config. Your key never leaves your machine; the
|
|
91
|
+
service only ever sees a signed payment authorization.
|
|
92
|
+
|
|
93
|
+
| Variable | Required | Meaning |
|
|
94
|
+
| --- | --- | --- |
|
|
95
|
+
| `AGENT_PRIVATE_KEY` | for paid calls | EVM private key (`0x…`) of **your** wallet holding USDC on Base. Used locally to sign the x402 payment. |
|
|
96
|
+
| `AGENT_KEY_FILE` | alternative | Path to a file containing that key instead. |
|
|
97
|
+
| `STALL_ROW_URL` | no | Service base URL override (default: production). |
|
|
98
|
+
| `STALL_ROW_MAX_AMOUNT_UNITS` | no | Optional global spend-guard ceiling per call, USDC micro-units. Default: each route's known price is its own guard. |
|
|
99
|
+
|
|
100
|
+
**Without a signer the tools never pay.** They return the parsed 402
|
|
101
|
+
challenge as a structured error — `{"error": "payment_required",
|
|
102
|
+
"accepts": […], …}` — so the calling agent can see the exact price,
|
|
103
|
+
asset, network and `payTo` and decide what to do. With a signer,
|
|
104
|
+
charges above the spend guard are likewise refused before signing.
|
|
105
|
+
|
|
106
|
+
## MCP host config
|
|
107
|
+
|
|
108
|
+
```json
|
|
109
|
+
{
|
|
110
|
+
"mcpServers": {
|
|
111
|
+
"stall-row": {
|
|
112
|
+
"command": "uvx",
|
|
113
|
+
"args": ["stall-row-mcp"],
|
|
114
|
+
"env": {
|
|
115
|
+
"AGENT_PRIVATE_KEY": "0xYOUR_AGENT_WALLET_KEY"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## The service being wrapped
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
POST https://stall-row-production.up.railway.app/v1/pre-trade-guard
|
|
126
|
+
{"pay_to": "0x…", "resource": "https://seller.example/v1/thing"}
|
|
127
|
+
→ 200 {"verdict": "PROCEED", "risk_score": 10, "reasons": [...],
|
|
128
|
+
"evidence": {...}}
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
The schemas in `src/stall_row_mcp/schemas.py` are copied verbatim from
|
|
132
|
+
the service's own discovery document (`/.well-known/x402`) — the
|
|
133
|
+
published contract, not a paraphrase.
|
|
134
|
+
|
|
135
|
+
## Development
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
pip install -e ".[dev]"
|
|
139
|
+
pytest
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
Tests mock the HTTP layer and use a throwaway signer generated at test
|
|
143
|
+
time — no network, no real money, no key material in the repo. The 402
|
|
144
|
+
fixtures in `tests/fixtures/` are real: captured from unpaid probes of
|
|
145
|
+
production on 2026-10-27.
|
|
146
|
+
|
|
147
|
+
## License
|
|
148
|
+
|
|
149
|
+
MIT
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
<!-- mcp-name: io.github.QuincyGB/stall-row-mcp -->
|
|
2
|
+
|
|
3
|
+
# stall-row-mcp
|
|
4
|
+
|
|
5
|
+
> **Standalone home:** [QuincyGB/stall-row-mcp](https://github.com/QuincyGB/stall-row-mcp)
|
|
6
|
+
> — sibling of the fleet's token-verdict-mcp, route-verdict-mcp,
|
|
7
|
+
> list-smith-mcp and lock-smith-mcp wrappers.
|
|
8
|
+
|
|
9
|
+
MCP server for **[StallRow](https://stall-row-production.up.railway.app)**
|
|
10
|
+
— the "Verdict Row" utility stall: 20 pay-per-call tools (plus 3 free
|
|
11
|
+
balance/feed reads) for agents,
|
|
12
|
+
sold over [x402](https://www.x402.org) in **USDC on Base**, no account,
|
|
13
|
+
no API key. Wallet snapshots and verdicts, a buyer-side Pre-Trade
|
|
14
|
+
Guard, web/YouTube/repo utilities, continuous re-checks of catalogued
|
|
15
|
+
x402 listings, the Verdict Index change feed, and the fleet's bulk
|
|
16
|
+
products (Recheck Packs, Fleet Pass, Orchestrate).
|
|
17
|
+
|
|
18
|
+
This package gives any MCP host (Claude Desktop, Cursor, …) native
|
|
19
|
+
tools that handle the full x402 v2 payment flow themselves — 402
|
|
20
|
+
challenge → EIP-3009 `TransferWithAuthorization` signature (USDC on
|
|
21
|
+
Base, EIP-712) → paid retry — using **your** agent wallet.
|
|
22
|
+
|
|
23
|
+
## Tools
|
|
24
|
+
|
|
25
|
+
| Tool | What it does | Price |
|
|
26
|
+
| --- | --- | --- |
|
|
27
|
+
| `stall_wallet_snapshot` | Balances, tx count, age, contract flag for one address | $0.005 |
|
|
28
|
+
| `stall_allowance_audit` | Outstanding ERC-20 approvals with unlimited-approval flags | $0.005 |
|
|
29
|
+
| `stall_tx_decoder` | Decode one Base tx hash into plain English | $0.002 |
|
|
30
|
+
| `stall_gas_oracle` | Current Base gas prices (slow / standard / fast) | $0.001 |
|
|
31
|
+
| `stall_wallet_verdict` | Wallet risk screen: SAFE / CAUTION / AVOID with reasons | $0.02 |
|
|
32
|
+
| `stall_pre_trade_guard` | Screen an x402 payTo *before* paying it: PROCEED / CAUTION / ABORT | $0.005 |
|
|
33
|
+
| `stall_tube_search` | YouTube search with transcripts | $0.01 |
|
|
34
|
+
| `stall_page_to_markdown` | Fetch a web page as clean markdown | $0.01 |
|
|
35
|
+
| `stall_repo_vitals` | GitHub repo health signals | $0.005 |
|
|
36
|
+
| `stall_price_check` | Pricing comps for an x402 listing from the live catalog | $0.05 |
|
|
37
|
+
| `stall_card_smith` | Generate or grade an agent card (agent-card.json) | $0.10 |
|
|
38
|
+
| `stall_job_scout` | Open agent-job digest filtered by capability | $0.05 |
|
|
39
|
+
| `stall_recheck` | Re-check one catalogued x402 URL (payability + drift) | $0.005 |
|
|
40
|
+
| `stall_index_changes` | Verdict Index change feed (new/changed/removed, rotations) | $0.10 |
|
|
41
|
+
| `stall_orchestrate` | Full due-diligence battery on one x402 endpoint | $0.75 |
|
|
42
|
+
| `stall_recheck_pack` | Buy a Recheck Pack — 250 checks for one endpoint | $1.00 |
|
|
43
|
+
| `stall_fleet_pass` | Buy a Fleet Pass — $5.00 prepaid fleet balance (90 days) | $5.00 |
|
|
44
|
+
| `stall_recheck_pack_balance` | Free balance read for a Recheck Pack | free |
|
|
45
|
+
| `stall_fleet_pass_balance` | Free status read for a Fleet Pass | free |
|
|
46
|
+
| `stall_sign_read` | Read one x402 endpoint's 402 sign: both wire formats parsed, exact decimals, declared-vs-live mismatches, Python/TS SDK verdicts | $0.01 |
|
|
47
|
+
| `stall_score_book` | Track record for one resource / origin / payTo from StallRow's own stores | $0.01 |
|
|
48
|
+
| `stall_guard` | Pre-pay verdict for one x402 endpoint (sign + bad-payTo registry + history): PROCEED / CAUTION / ABORT | $0.01 |
|
|
49
|
+
| `stall_recheck_feed` | Free read of the Recheck feed v2 — hash-chained envelopes with a `since_seq` cursor | free |
|
|
50
|
+
|
|
51
|
+
Coverage note (audited 2026-11-19 against the fleet route inventory):
|
|
52
|
+
this wrapper covers 20 of StallRow's 42 priced routes — the original
|
|
53
|
+
utility row plus the inspector toolkit. The 22 newer/niche routes
|
|
54
|
+
(fleet-check, counterparty-report, ledger-dataset, toolkit/pack,
|
|
55
|
+
video/transcript tools, batch variants, and similar) are not yet
|
|
56
|
+
wrapped; they remain callable directly over x402 HTTP, and via
|
|
57
|
+
StallRow's hosted MCP endpoint for routes priced ≤ $0.05.
|
|
58
|
+
|
|
59
|
+
Verdicts are automated checks over public data — sanctions screens,
|
|
60
|
+
catalog history, chain reads — with the evidence attached. A flag is a
|
|
61
|
+
lead to review, not proof of wrongdoing, and no verdict is a guarantee.
|
|
62
|
+
|
|
63
|
+
## Install
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
pip install stall-row-mcp
|
|
67
|
+
# or run without installing:
|
|
68
|
+
uvx stall-row-mcp
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Configuration
|
|
72
|
+
|
|
73
|
+
All configuration is environment variables — set them on the MCP server
|
|
74
|
+
process in your host's config. Your key never leaves your machine; the
|
|
75
|
+
service only ever sees a signed payment authorization.
|
|
76
|
+
|
|
77
|
+
| Variable | Required | Meaning |
|
|
78
|
+
| --- | --- | --- |
|
|
79
|
+
| `AGENT_PRIVATE_KEY` | for paid calls | EVM private key (`0x…`) of **your** wallet holding USDC on Base. Used locally to sign the x402 payment. |
|
|
80
|
+
| `AGENT_KEY_FILE` | alternative | Path to a file containing that key instead. |
|
|
81
|
+
| `STALL_ROW_URL` | no | Service base URL override (default: production). |
|
|
82
|
+
| `STALL_ROW_MAX_AMOUNT_UNITS` | no | Optional global spend-guard ceiling per call, USDC micro-units. Default: each route's known price is its own guard. |
|
|
83
|
+
|
|
84
|
+
**Without a signer the tools never pay.** They return the parsed 402
|
|
85
|
+
challenge as a structured error — `{"error": "payment_required",
|
|
86
|
+
"accepts": […], …}` — so the calling agent can see the exact price,
|
|
87
|
+
asset, network and `payTo` and decide what to do. With a signer,
|
|
88
|
+
charges above the spend guard are likewise refused before signing.
|
|
89
|
+
|
|
90
|
+
## MCP host config
|
|
91
|
+
|
|
92
|
+
```json
|
|
93
|
+
{
|
|
94
|
+
"mcpServers": {
|
|
95
|
+
"stall-row": {
|
|
96
|
+
"command": "uvx",
|
|
97
|
+
"args": ["stall-row-mcp"],
|
|
98
|
+
"env": {
|
|
99
|
+
"AGENT_PRIVATE_KEY": "0xYOUR_AGENT_WALLET_KEY"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## The service being wrapped
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
POST https://stall-row-production.up.railway.app/v1/pre-trade-guard
|
|
110
|
+
{"pay_to": "0x…", "resource": "https://seller.example/v1/thing"}
|
|
111
|
+
→ 200 {"verdict": "PROCEED", "risk_score": 10, "reasons": [...],
|
|
112
|
+
"evidence": {...}}
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
The schemas in `src/stall_row_mcp/schemas.py` are copied verbatim from
|
|
116
|
+
the service's own discovery document (`/.well-known/x402`) — the
|
|
117
|
+
published contract, not a paraphrase.
|
|
118
|
+
|
|
119
|
+
## Development
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
pip install -e ".[dev]"
|
|
123
|
+
pytest
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Tests mock the HTTP layer and use a throwaway signer generated at test
|
|
127
|
+
time — no network, no real money, no key material in the repo. The 402
|
|
128
|
+
fixtures in `tests/fixtures/` are real: captured from unpaid probes of
|
|
129
|
+
production on 2026-10-27.
|
|
130
|
+
|
|
131
|
+
## License
|
|
132
|
+
|
|
133
|
+
MIT
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "stall-row-mcp"
|
|
7
|
+
version = "0.1.2"
|
|
8
|
+
description = "MCP server for StallRow — the x402 utility row (wallet tools, verdicts, Verdict Index, packs) paid per call in USDC on Base"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
authors = [{ name = "Ren, Verdict Row Patrol", email = "patrol@verdictrow.com" }]
|
|
13
|
+
keywords = ["mcp", "x402", "base", "usdc", "wallet", "agents"]
|
|
14
|
+
dependencies = [
|
|
15
|
+
# mcp 2.x renamed FastMCP -> MCPServer; this package targets the v1
|
|
16
|
+
# SDK API that current MCP hosts and docs are built against.
|
|
17
|
+
"mcp>=1.2,<2",
|
|
18
|
+
"httpx>=0.27",
|
|
19
|
+
"eth-account>=0.11",
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
[project.optional-dependencies]
|
|
23
|
+
dev = ["pytest>=8"]
|
|
24
|
+
|
|
25
|
+
[project.scripts]
|
|
26
|
+
stall-row-mcp = "stall_row_mcp.server:main"
|
|
27
|
+
|
|
28
|
+
[tool.hatch.build.targets.wheel]
|
|
29
|
+
packages = ["src/stall_row_mcp"]
|
|
30
|
+
|
|
31
|
+
[tool.pytest.ini_options]
|
|
32
|
+
pythonpath = ["src"]
|
|
33
|
+
testpaths = ["tests"]
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
|
+
"description": "MCP server for StallRow \u2014 the x402 utility row: wallet tools, verdicts, Pre-Trade Guard, the inspector toolkit (Sign Reader, Score Book, Guard), the Recheck feed, Verdict Index, packs (USDC on Base)",
|
|
4
|
+
"name": "io.github.QuincyGB/stall-row-mcp",
|
|
5
|
+
"packages": [
|
|
6
|
+
{
|
|
7
|
+
"environmentVariables": [
|
|
8
|
+
{
|
|
9
|
+
"description": "EVM private key (0x...) of a wallet holding USDC on Base. Used locally to sign the x402 EIP-3009 authorization. For paid calls.",
|
|
10
|
+
"format": "string",
|
|
11
|
+
"isRequired": false,
|
|
12
|
+
"isSecret": true,
|
|
13
|
+
"name": "AGENT_PRIVATE_KEY"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"description": "Path to a file containing that key (alternative to AGENT_PRIVATE_KEY).",
|
|
17
|
+
"format": "filepath",
|
|
18
|
+
"isRequired": false,
|
|
19
|
+
"isSecret": false,
|
|
20
|
+
"name": "AGENT_KEY_FILE"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"description": "Service base URL override (default: production).",
|
|
24
|
+
"format": "string",
|
|
25
|
+
"isRequired": false,
|
|
26
|
+
"isSecret": false,
|
|
27
|
+
"name": "STALL_ROW_URL"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"description": "Optional global spend-guard ceiling per call in USDC micro-units. Default: each route's known price is its own guard. The client refuses to sign anything priced above the guard.",
|
|
31
|
+
"format": "number",
|
|
32
|
+
"isRequired": false,
|
|
33
|
+
"isSecret": false,
|
|
34
|
+
"name": "STALL_ROW_MAX_AMOUNT_UNITS"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"identifier": "stall-row-mcp",
|
|
38
|
+
"registryType": "pypi",
|
|
39
|
+
"transport": {
|
|
40
|
+
"type": "stdio"
|
|
41
|
+
},
|
|
42
|
+
"version": "0.1.2"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"repository": {
|
|
46
|
+
"source": "github",
|
|
47
|
+
"url": "https://github.com/QuincyGB/stall-row-mcp"
|
|
48
|
+
},
|
|
49
|
+
"title": "StallRow",
|
|
50
|
+
"version": "0.1.2"
|
|
51
|
+
}
|