• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cameri / nostream / 44933843464
78%
main: 80%

Build:
Build:
LAST BUILD BRANCH: rewrite/main
DEFAULT BRANCH: main
Ran 21 Nov 2026 06:11PM UTC
Jobs 2
Files 321
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Nov 2026 06:08PM UTC coverage: 77.582%. Remained the same
44933843464

push

github

web-flow
feat(mcp): add the relay_status tool over a published status document (#1209)

Slice 2 of #1183: **one tool**, `relay_status` — uptime, worker health,
version, connection count, and the NIP-11 document — plus the two pieces
no other slice needs.

## What ships

- **A published status document.** The tool answers in the `--mcp-stdio`
process; the relay lives in the daemon's, and heartbeats are process
memory. So the daemon writes `<config>/relay-status.json`
(`generatedAt`, `uptimeSeconds`, `activeConnections`, `relayPubkey`,
`workers`) every 5 s with an atomic temp-and-rename, and the stdio
process reads it per call. A fact with no document fresher than 30 s is
`null` **with a reason naming the file** — never a `0` that reads as
"nothing is connected". A `0` only ever comes from a document that says
`0`.
- **`ConnectionCap::live_total()`** — the total the cap could not answer
before; it held per-address counts and a tracked-address count, so a
total was not derivable.
- **`nostream_relay::nip11`** — the document builder, absent until now
(`nip-parity.md` D1 kept the surface shut). Eleven top-level keys and
seventeen `limitation` keys, each from a source the ADR names; seven
keys are dropped with reasons, including the two with no Rust source at
all. This closes `nip-parity.md` item 11, the deferred field-set
decision.
- **The tool** — `TOOL_RELAY_STATUS`, its `TOOLS` row, a handler that
takes no arguments, and its audit line (`mcp.relay_status`).

**The relay's identity is published, not re-derived.** `nip11.self`
comes from the daemon's document — the key the relay actually signs with
— and the MCP process reads no key material at all, so a door started
with a different secret cannot name a key the relay never signs with.

`nostream-cli info` keeps its own assembly: its output is pinned
byte-for-byte by the CLI's acceptance cases and carries no document, so
sharing the builder would buy nothing and risk the pin. The reason is in
the module doc and AD... (continued)

4501 of 6342 branches covered (70.97%)

Branch coverage included in aggregate %.

9792 of 12081 relevant lines covered (81.05%)

759.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Unit - 44933843464.1 21 Nov 2026 06:12PM UTC 321
75.03
GitHub Action Run
2 Integration - 44933843464.2 21 Nov 2026 06:11PM UTC 321
32.99
GitHub Action Run
Source Files on build 44933843464
  • Tree
  • List 321
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44933843464
  • 443cb985 on github
  • Prev Build on rewrite/main (#44907504425)
  • Next Build on rewrite/main (#44952924718)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc