Skip to main content

Testing & Validation

Every QSO Graph server is tested across four independent layers before release. Each layer catches different failure modes. All four must pass before a fleet-wide release.

LayerNameWhat It CatchesBlocking?
L1Security tests (test_security.py)Credential leaks, injection, unsafe patternsHard stop
L2Unit Tests (Mock Mode)Tool logic, parameter handling, return shapesHard stop
L3Integration Tests (Live)API connectivity, auth flows, data correctnessPre-release gate
L4Fleet CompositionTool name collisions, schema conflicts, cross-server consistencyFleet releases

Fleet Overview​

22 servers, 156 tools, 4 test layers. Versions and tool counts are the released packages', collected when the site is built; the CI badge is each repo's live status.

PackageVersionToolsCI
adif-mcp2.2.08CI
eqsl-mcp0.6.26CI
qrz-mcp0.6.46CI
lotw-mcp0.6.26CI
hamqth-mcp0.7.18CI
pota-mcp0.7.111CI
sota-mcp0.4.15CI
solar-mcp0.5.17CI
wspr-mcp0.6.19CI
iota-mcp0.4.17CI
n1mm-mcp0.5.012CI
ionis-mcp1.6.212CI
netlogger-mcp0.3.16CI
omiss-mcp0.4.114CI

L1: Security Audit​

Every package includes test_security.py with 6 source-code audit tests. These scan all Python source files for forbidden patterns — they are not runtime tests.

#TestWhat It Catches
S1test_no_print_credentialsprint() calls containing password, secret, api_key, or token
S2test_no_logging_credentialslogging.*() calls containing credential keywords
S3test_no_subprocessAny use of subprocess or shell=True (command injection)
S4test_all_urls_httpsHardcoded http:// URLs (except localhost)
S5test_error_messages_safeException messages that could expose credentials
S6test_no_eval_execAny use of eval() or exec() (code injection)

These tests run in CI on every push and must pass before any PyPI publish. If the security gate fails, the publish job is blocked. No exceptions.


L2: Unit Tests (Mock Mode)​

Each server supports a mock mode ({SERVER}_MCP_MOCK=1) that replaces HTTP calls with embedded test fixtures. L2 tests verify tool logic, parameter handling, return shapes, parser correctness, and helper functions without making any API calls.

CategoryWhat's TestedExample
Parser/Helper FunctionsADIF parsing, frequency conversion, date normalization, grid validationparse_adif(), freq_to_band(), to_yyyymmddhhmm()
Tool Return ShapesEvery tool returns expected fields, types, and structureseqsl_inbox() returns total, records, by_band
Parameter HandlingFilters, defaults, edge cases, invalid inputBand filter, callsign uppercase, empty string handling
CachingTTL expiry, cache hits, overwrites_cache_set() / _cache_get() with timed expiry
Data ModelsDataclass immutability, field defaults, type conversionsFetchResult(records=[]) is frozen
# Run L2 tests for any server (no network needed)
cd solar-mcp
pytest tests/test_tools.py -v

L3: Live Integration Tests​

L3 tests hit real APIs with known-good reference values. They verify that external services are responding correctly and that our client code handles real-world responses.

Tests are gated behind a --live flag and skipped by default. This keeps CI fast and avoids hammering volunteer-run services.

ServerTestsAPIs HitReference Values
solar-mcp15NOAA SWPCSFI 50-400, Kp 0-9, flare class A-X, 10 HF bands
pota-mcp15POTA APIUS-0001 (Acadia NP), K4SWL, US-ME parks
sota-mcp10SOTA APIW7I/CU-001 (Borah Peak, Idaho)
wspr-mcp12wspr.live ClickHouseDN13→JN48 path, JO62 grid, 20m band activity
iota-mcp12iota-world.orgOC-001 (Australia), 1000+ groups in programme
hamqth-mcp10HamQTH (public)W1AW DXCC=291, DX cluster spots, RBN decodes
# Run L3 live tests (requires network)
cd solar-mcp
pytest tests/test_live.py --live -v
Rate Limiting

WSPR and HamQTH L3 tests include a 1-second pause between requests to respect volunteer-run services. Tests take longer but avoid API bans.


L4: Fleet Composition Tests​

L4 tests verify that all 12 servers work correctly when loaded together. They import every server's MCP object, enumerate all tools, and check for cross-server conflicts.

CategoryTestsWhat's Verified
F1: Tool Name Uniqueness5No unexpected name collisions, snake_case convention, server namespacing, tool counts
F2: Schema Validity7Non-empty descriptions, typed properties, required fields exist, description length bounds
F3: Fleet Inventory5All 12 servers loaded, expected tools present, no empty servers
F4: Cross-Server Consistency3Band parameter types, callsign naming, limit parameter types

Known Findings​

FindingStatusDetail
solar_conditions name collisionResolvedionis-mcp v1.2.8 renamed to solar_history. No more collision.
Null defaults from Optional paramsTrackedFastMCP generates {"default": null} from Python Optional[str] = None. Valid JSON Schema but may affect some local LLM tool parsers.
Band parameter type splitBy designqso-graph servers use string band names ("20M"), ionis-mcp uses integer ADIF band IDs (107).

The L4 fleet suite is not published; its results are the tables above.


adif-mcp Validation​

adif-mcp is the foundation package. Beyond the standard security and unit tests, it carries a comprehensive validation suite against the ADIF 3.1.8 specification:

Test matrix​

The registered validation cases live in the repository, as tests/TEST-CASE-REGISTER.md — each with its input, expected result and the reason it exists. That file is the record; this page used to copy its table and had drifted to a total of 48 against the register's 109, which is what happens to a number kept in two places.

Two figures, both measured on 2026-10-28:

Registered validation cases109, all passing
Full pytest suite186 tests — the registered cases plus unit, security, CLI and packaging tests

Official ADIF test corpus​

The gold standard for ADIF validation: the official test files from G3ZOD's CreateADIFTestFiles, which exercise every enumeration value in the specification. Both the current and previous versions are run, because logs written against 3.1.7 do not stop existing when 3.1.8 publishes:

CorpusQSO records
ADIF 3.1.86,202
ADIF 3.1.76,197
TestRecordsResult
Zero false errors on all official records (3.1.8)6,202PASS — 0 errors
All warnings are correct behavior (3.1.7)6,197PASS — 37 warnings (21 user-defined fields + 16 import-only values)
Enum JSON files match official exports25 filesPASS — all identical

Rule: If our validator rejects an official ADIF test record, our validator is wrong.

KI7MT Forensic Hard Tests​

12 tests derived from forensic analysis of 110,761 real QSO records across three logger dialects (eQSL, QRZ, LoTW). Every test has a documented real-world source — no arbitrary tests.

IDTestSourceWhy It Matters
FRN-001Bread-and-butter FT8 QSO (9 enum fields)QRZ — 15,000+ FT8 QSOsFT8 is 88.7% of PSK Reporter spots. If this fails, everything fails.
FRN-002MODE=FT4 correctly errorsQRZ — 2 of 49,233 recordsFT4 must be MODE=MFSK + SUBMODE=FT4 per spec policy
FRN-003Multi-field contest QSO (8+ enums)QRZ — CQ WW DX CW logsContest logs have highest enum density
FRN-004LoTW uppercase band (15M)LoTW — 37,651 recordsLoTW exports uppercase; case-insensitive matching required
FRN-005QSL_VIA=M import-only warningQRZ — pre-internet QSOsDeprecated "manager" value must warn, not reject
FRN-006Six QSL status fields in one recordQRZ — modern multi-service logsQSL_RCVD + QSL_SENT + EQSL + LOTW — no cross-interference
FRN-007Deleted DXCC entity (Aldabra)DXCC enum — 62 deleted entitiesGeopolitical mergers are valid historical data
FRN-008PROP_MODE=SAT (satellite QSO)QRZ — ISS/satellite contactsPropagation_Mode enum rarely tested but critical
FRN-009Credit:CARD&LOTW (& separator)LoTW DXCC creditsMulti-medium compound format parsing
FRN-010Freeform CONTEST_ID errorseQSL — 470 invalid of 23,877"CQWW 2021" is not a valid Contest_ID
FRN-011SUBMODE without MODE fieldeQSL — incomplete recordsGraceful handling of missing parent field
FRN-012EQSL_AG=Y (Authenticity Guaranteed)eQSL — AG status for DXCC3-value enum critical for DXCC credit eligibility

Running Tests​

Single server — security only​

cd eqsl-mcp
pytest tests/test_security.py -v

Single server — full mock suite​

cd solar-mcp
pytest tests/ -v

Single server — including live API tests​

cd solar-mcp
pytest tests/ -v --live

All servers — security sweep​

for repo in adif-mcp eqsl-mcp qrz-mcp lotw-mcp hamqth-mcp pota-mcp \
sota-mcp solar-mcp wspr-mcp iota-mcp n1mm-mcp ionis-mcp; do
echo "=== $repo ==="
(cd $repo && pytest tests/test_security.py -v) 2>&1
done

Release gate​

Publishing is gated mechanically rather than socially. publish.yml checks that CI passed on the exact commit being published, that the version agrees across pyproject.toml and server.json and is new on PyPI and untagged, that tests/test_security.py passes, that pip-audit --strict reports no known vulnerability, and that no subprocess, plaintext http:// or credential logging appears in src/. The tag is cut last, only after PyPI and the MCP Registry both serve the version.

This page previously described three rounds of human review — a writer and two independent audit/reviewers — as a requirement before any publication. That was retired. It was not what stood between a change and PyPI, and describing reviewers who are not there overstates what a reader is getting.


References​

ResourceURL
ADIF 3.1.8 Specificationadif.org.uk/318
ADIF 3.1.7 Specificationadif.org.uk/317
Official Test Corpus (G3ZOD)adif.org.uk/318
CreateADIFTestFilesgithub.com/g3zod/CreateADIFTestFiles
K1MU ADIF Validatorrickmurphy.net/adifvalidator.html
adif-multitool (flwyd)github.com/flwyd/adif-multitool
MCP Security Best Practicesmodelcontextprotocol.io