Cyan Eclipse Ground Truth MCP
Official# Cyan Eclipse Ground Truth MCP
A Model Context Protocol (MCP) server that gives your AI client
checking tools backed by sealed records: sanctions checks, recall
checks, tender search, and legislative-duty lookups. Every match comes
with a seal reference, so the result can be verified against the sealed
source it came from — not just trusted.
The server is a thin, standard-library-only Python client for the Cyan
Eclipse Ground-Truth API. It speaks MCP over stdio (JSON-RPC 2.0,
newline-delimited) and forwards each tool call to the API over HTTPS
with your API key.
## Tools
| Tool | What it does | Price per call (paid tier) |
| --- | --- | --- |
| `sanctions_check` | Check a name (optionally with a country) against the sealed Canada SEMA sanctions sample. | $0.05 |
| `recall_check` | Check a product or brand against recall records. | $0.02 |
| `tender_search` | Search sealed tender records (optionally filtered by country). | $0.01 |
| `duty_get` | Fetch one legislative duty by `duty_id` or `source_instrument_id`. | $0.03 |
| `duty_search` | Search legislative duties by class, obligated class, mechanism, and lifecycle dates. | $0.03 |
| `duty_watch` | Poll a duty watch for lifecycle changes since a cursor. Watches are provisioned on request. | Subscription |
| `verify_source` | Recompute a segmented source's seal references and report PASS or FAIL. | Counts against rate limits |
| `pricing_and_paid_access` | The full price list and how to pay per call with no API key (x402). Answered locally. | Free |
A free pilot tier is available today: 60 calls per minute and 1,000
calls per day per key, at no charge while the pilot runs. The per-call
prices above are the adopted prices for paid use. Failed calls are not
charged; a no-match answer is charged on the paid tier because it is a
citable answer that carries the seal reference for the source searched.
## Pay per call with no API key (x402)
Agent buyers can skip keys entirely on the paid endpoints. Request any
paid endpoint without a key to receive an x402 payment challenge, then
settle per call in USDC on Base mainnet (network `eip155:8453`):
- `POST https://connect.cetech.ai/gt-api/v1/paid/tools/sanctions-check` — $0.05
- `POST https://connect.cetech.ai/gt-api/v1/paid/tools/recall-check` — $0.02
- `POST https://connect.cetech.ai/gt-api/v1/paid/tools/tender-search` — $0.01
- `POST https://connect.cetech.ai/gt-api/v1/paid/tools/duty-get` — $0.03
- `POST https://connect.cetech.ai/gt-api/v1/paid/tools/duty-search` — $0.03
Prepaid tool-specific credit bundles are 20% off at 5,000 credits and
40% off at 100,000 credits (valid 12 months). Subscriptions: Developer
$19/month (1,000 calls), Growth $79/month (5,000 calls), Scale
$199/month (20,000 calls); annual billing is 10× the monthly price.
Duty watch plans: Monitor $249/month, Professional $599/month,
Enterprise $999/month. Full pricing: https://cetech.ai/api.html
## Seal references
Each match includes a `seal_ref` object with the record's `record_hash`,
its position hash in the source's chain, and the segment's Merkle root
(`segment_merkle_root`) and chain head. Together these let you confirm
that the record you received is exactly the record that was sealed, in
the order it was sealed, and that it has not been altered since. Duty
answers carry an `answer_seal_ref` you can verify the same way, and the
`verify_source` tool recomputes a source's seals on demand.
## What the data covers — please read
- **Sanctions** serves the sealed Canada SEMA sample: 726 records. A
no-match result means no match in this sample, not a global clearance.
- **Tenders** serves a verified extract: 10 records drawn from 9 sources.
The full tender baselines are not yet behind the API.
- **Recalls are fixture data in the current deployment.** Recall results
are labelled FIXTURE in every response and demonstrate the response
shape only — they are not real recall data.
- **Duties** serve live legislative-duty records joined across their
lifecycle (bill, public law, rule, codification), sealed per answer.
## Configuration
| Environment variable | Required | Description |
| --- | --- | --- |
| `GT_API_KEY` | Yes | Your Ground-Truth API key, sent as the `X-API-Key` header. The server exits with a clear error if it is unset. Free pilot keys are issued on request: https://cetech.ai/index.html#pilot or info@cetech.ai. |
| `GT_API_BASE_URL` | No | API base URL. Defaults to `https://connect.cetech.ai/gt-api`. |
## Run it
Local (Python 3.12+, no dependencies):
```bash
export GT_API_KEY=<your key>
python3 server.py
```
Docker:
```bash
docker build -t ground-truth-mcp .
docker run -i --rm -e GT_API_KEY=<your key> ground-truth-mcp
```
Then connect it to any MCP client that launches stdio servers, using
`python3 server.py` (or the Docker command) as the server command and
`GT_API_KEY` in the environment.
## Example tool call
Request (one JSON object per line on stdin):
```json
{"jsonrpc": "2.0", "id": 3, "method": "tools/call", "params": {"name": "sanctions_check", "arguments": {"name": "Momeni"}}}
```
Response (abbreviated): the API's JSON is returned as text content,
including `match_count`, the matching records, and a `seal_ref` with
`record_hash`, chain hashes, and `segment_merkle_root` for each match.
## Smoke test
```bash
GT_API_KEY=<your key> python3 smoke_test.py
```
Runs the server as a subprocess and checks the initialize handshake,
the tool list, real sanctions, duty, and verify calls against the live
API, the local pricing answer, and unknown-tool handling. Output is
saved to `smoke-transcript.txt`.
## License
MIT — see `LICENSE`.
TDQS
Scored across 8 tools
Each tool has a clearly distinct purpose: duty_search/duty_get/duty_watch are separated by action, while sanctions_check, recall_check, and tender_search target different datasets. verify_source (seal recomputation) and pricing_and_paid_access (informational) are unambiguous utilities with no overlap.
Seven of eight tools follow a resource_action pattern (duty_get, duty_search, duty_watch, sanctions_check, recall_check, tender_search), but verify_source uses a verb_noun ordering and pricing_and_paid_access is a descriptive noun phrase. The deviations are minor and the intent remains readable.
Eight tools is well-scoped for a multi-dataset regulatory API: a duty trio, three dataset checks, a seal verification utility, and pricing information. Each tool earns its place without bloat or obvious thinness.
Core read workflows are covered, but duty_watch depends on an externally provisioned watch_id with no tool to create or list watches, creating a dead end. There is also no source-listing/discovery tool for verify_source and no retrieval-by-id beyond search for tender, sanctions, and recall datasets.