n3fjp-mcp

v0.3.4
io.github.sbrunner-atx/n3fjp-mcp Checked 2 hours ago Published 8 days ago

Log amateur-radio QSOs to N3FJP logging software over its TCP API.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

status

Snapshot: program, version, API version, QSO count, band/mode/frequency, log path. A quick health check that also confirms the connection and which N3FJP program/contest is loaded.

diagnostics

Host + network diagnostics for troubleshooting connectivity. Does NOT connect to N3FJP. Reports the resolved N3FJP_HOST/PORT, this process's Python and hostname, and the host's network interfaces — so you can tell whether the process can even see the target's network (e.g. when running host-side vs. sandboxed). If a LAN host fails, ask again once (macOS checks the Local Network permission on the first connection), then see docs/REMOTE-HOST.md; mcp-host-bridge is the fallback for clients that cannot reach LAN addresses.

query

Read-only program queries. operations: program (name/version/API version), qso_count, next_serial, log_path, settings_path, shared_path, qso_rate (contest stats), band_mode_freq (current band/mode/frequency).

ParameterTypeDescription
operation *string

fields

Read entry-box (text field) values. operations: - read (field=name): read one box. `field` may be a friendly name (call, rst_rcvd, class, section, name, …) or a raw control id (TXTENTRY…). - visible: every field the current contest shows, with values. - all: every field (regardless of visibility), with values. Derived fields (country_worked, cq_zone, itu_zone, continent, prefix) are readable here but are computed by N3FJP from the call — never write them.

ParameterTypeDescription
operation *string
field

log

Logbook entry: set fields, run Call-tab, and ENTER a QSO. The headline tool. operations: - log_qso: the automatic-logging flow. Provide `call` (and usually `exchange`, a dict of friendly field names → values, e.g. {"class": "2A", "section": "CT"}). Sets the call, runs CALLTAB (dupe check + lookups) unless calltab=false, sets the exchange, then ENTER. Returns the number of records added and any dupe response. - set (field, value): write one entry box. - set_many (fields={...}): write several entry boxes. - calltab: run CALLTAB (afte…

ParameterTypeDescription
operation *string
call
calltabboolean
contest
exchange
field
fields
value

bandmode

Change band, mode, and frequency before logging. operations: - change_freq (value=Hz): set the frequency (and thus band) via the rig interface. Use suppress_mode_default=true to keep the current mode rather than letting CW/phone segments flip it. - set_band (value=band, e.g. "20"): write the band box (rig interface OFF only). - set_mode (value=mode, e.g. "DIG"): write the mode box (rig interface OFF only). - ignore_rig_polls (value=bool): pause rig polling so band/mode boxes can be written while a rig is connected. Remember to set it back to…

ParameterTypeDescription
operation *string
suppress_mode_defaultboolean
value

database

Direct database operations on individual records. These are ordinary writes (the *Needs Approval* tier — same as logging), so they can be globally allowed in the client for automation. The ONLY hard block is a whole-database wipe/overwrite, gated by N3FJP_ALLOW_DB_WIPE. operations: - add_direct (fields={fldCall:..., fldBand:...}, exclude_dupes): insert a record directly, bypassing N3FJP's scoring. Prefer log's log_qso/ENTER. - delete (where="fldPrimaryID=123"): delete matching records. A missing or empty WHERE would clear the whole table and is r…

ParameterTypeDescription
operation *string
exclude_dupesboolean
fields
sql
where

notifications

Opt-in push events from N3FJP (field updates, enter/calltab, dupes). operations: - enable: turn on all-field-update notifications. - disable: turn them off. - drain: return and clear the buffered notification blocks received so far. MCP is request/response, so events are buffered and you pull them with drain rather than receiving a live stream.

ParameterTypeDescription
operation *string

n3fjp_call

Escape hatch: send any raw N3FJP command and return the parsed reply. `command` may be a bare command id ("PROGRAM"), a full envelope ("<CMD><PROGRAM></CMD>"), or the inner form ("<PROGRAM>") — it is normalised and CRLF-terminated for you. `expect` is the response id to wait for. This reaches anything not surfaced by a group tool, including newer commands. Like the group tools, it runs at the *Needs Approval* tier; the only hard block is a raw SQL statement that could wipe/overwrite the whole database, which still requires the N3FJP_ALLOW_DB_WIPE switch.

ParameterTypeDescription
command *string
expect