Skip to content

Releases

v0.3.0

Choose a tag to compare

@magifd2 magifd2 released this 28 Nov 13:06

Changed

  • The MCP tools run on the organization's tool-conventions module,
    nlink-jp/mcptool
    (ADR-0002, organization ADR-031): arguments are decoded
    before a tool runs, and the server is run by mcptool's serve.Run. What an
    MCP client sees (the CLI is unchanged):
    • Argument errors are invalid_arguments, naming the argument in
      details.argument
      , in place of invalid_argument — whether the call
      was refused at decoding (an unknown or wrong-typed argument, now worded
      unknown argument "…" / argument "…" must be …), by a tool (an empty
      value, a range, a contradicting combination) or by the engine (an
      internal address, an unknown filter or facet, a port that needs
      transport). A required argument left out is missing_argument. The
      get_usage manual's recovery table has both rows.
    • Results are JSON on one line (no indentation), and <, > and & arrive
      unescaped (a banner's & no longer arrives as \u0026). The values are
      the same.
    • The response budget measures the result as it is sent, so more fits:
      fewer services, rows and facet values are thinned, fewer banners are
      shortened, and a result the 128 KB ceiling withheld may now be returned.
    • With several problems in one call, the first one reported may change
      (unknown → missing → type).

Fixed

  • A field over 1000 characters was named twice in notes (the backstop ran
    inside the tool and again at the ceiling, and a shortened string, at 1001
    characters with its mark, was shortened again). It is now shortened to 1000
    characters, the mark included, and named once.
  • A banner holding an invalid UTF-8 byte was cut in the wrong place when
    lookup_host shortened it: the cut advanced three bytes through the banner
    for a one-byte invalid byte, so it kept up to two bytes past the limit,
    could split a multi-byte character, and failed the call when the invalid
    byte was within two bytes of the end. The cut now follows the banner, and
    the shortening counts exactly the bytes sent (\b and \f as two, an
    invalid byte and U+FFFD as three), where it counted six for each before.

v0.2.1

Choose a tag to compare

@magifd2 magifd2 released this 28 Nov 06:13

Fixed

  • cache clear left behind the temp file a write leaves when the process ends part-way (a SIGTERM past the shutdown grace, a crash); it now removes it too, and counts entries only.

v0.2.0

Choose a tag to compare

@magifd2 magifd2 released this 27 Nov 15:22

Added

  • The MCP server speaks both eras of the protocol (ADR-0001): the
    2026-07-28 revision, whose clients probe with server/discover, as well as
    the earlier initialize handshake (2025-11-25, 2025-06-18, 2024-11-05; it was
    fixed at 2024-11-05). The protocol layer is now the organization's shared
    module nlink-jp/mcp (organization ADR-030); the tools, their arguments and
    their results are unchanged.

Changed

  • An unknown tool is now refused by the protocol (-32602) rather than returned
    as an unknown_tool tool result (with its hint to call get_usage); the code
    leaves the error vocabulary.

  • Protocol details now follow the module:

    • tools/list, tools/call and unknown methods before initialize are
      refused with -32602 (an unknown method was -32601);
    • arguments that is not an object is refused with -32602;
    • a request with "id":null gets -32600 (initialize, ping and
      tools/list used to be answered with a null id), and so does one without
      "jsonrpc":"2.0";
    • a batch gets -32600 (it was a parse error); a parse error is answered
      "parse error" without the decoder's detail;
    • a line over 16 MiB gets -32600 and reading goes on (it ended the server
      with an error);
    • a panic in a tool is answered -32603 and the server goes on (it crashed);
    • up to 256 calls wait behind a running one; more are refused with -32603
      "server busy";
    • notifications/cancelled now cancels the call.

    Requests piped in are still all answered before the server exits at end of
    input.

  • make vuln — and so make package — scans every platform in PLATFORMS,
    with the environment build-all builds each with. It scanned the host's
    build alone, so an advisory in a Linux- or Windows-only package could not
    stop a release.

Fixed

  • An argument spelt in another case ({"IP": ...}, "Ports") was accepted as
    the declared one; it is now refused by name.
  • SIGINT or SIGTERM ended the MCP server by killing the process; a signal now
    ends it through its context, so its cleanup runs.
  • A search whose call was cancelled — by notifications/cancelled, or at
    shutdown — no longer halts every later search for the process: the credits
    it spent are read even after the cancellation.

v0.1.4

Choose a tag to compare

@magifd2 magifd2 released this 14 Nov 04:27

Security

  • Rebuilt with Go 1.27.4, which go.mod now requires (it was go 1.25.0).
    No code of the tool changed. v0.1.3 was built with Go 1.27.2; govulncheck -mode binary finds 2 standard-library advisories in its darwin-arm64 binary,
    in crypto/x509 and net/http: GO-2026-6809, GO-2026-6859. All are fixed by
    Go 1.27.4. Binary mode shows that an affected function is linked into the
    binary, not that the tool calls it; each advisory is described at
    https://pkg.go.dev/vuln/<ID>.

Changed

  • make package runs govulncheck ./... first (make vuln) and stops on a
    finding, so a release cannot be built past one.

v0.1.3

Choose a tag to compare

@magifd2 magifd2 released this 10 Oct 06:56

Fixed

  • get_service compares a port with what could be read of each service it left out. Once any service was left out it answered decode_error for every port without a readable service; now a service whose port was read rules itself out of other ports (not_observed is answered as usual), a service whose transport was read rules itself out of the other transport, and a port asked without a transport that also holds a service whose transport could not be read is ambiguous ("pass transport") instead of answering the one readable service as if it were the only one.

v0.1.2

Choose a tag to compare

@magifd2 magifd2 released this 10 Oct 06:42

Fixed

  • A value of an unexpected type anywhere in a host record, a history, a search page or a count no longer fails the whole answer, the cache and --raw with it. The value is left out — never turned into a zero — and notes name its path (data[].http.status (1)); --raw returns the document as sent.
  • An entry whose identifying field (a service's port or transport, a match's address, a facet value's count) is missing, null or unreadable is left out whole rather than shown as port 0 or count 0; get_service then answers decode_error instead of not_observed for a port it may hold.
  • A count whose breakdown could not be read no longer fails for the cache's lifetime.
  • A history window and its 1,000-banner cap count every banner Shodan returned, the ones left out included.

v0.1.1

Choose a tag to compare

@magifd2 magifd2 released this 10 Oct 06:09

Fixed

  • A host record whose asn arrived as a number failed as a whole with decode_error — --raw included. The string fields the tool reads now accept a string or a number, and a bare AS number is written AS2497 in the projection; --raw keeps Shodan's own value.

v0.1.0

Choose a tag to compare

@magifd2 magifd2 released this 09 Oct 08:51

First release: a read-only CLI and local MCP server answering what an IP address exposes to the Internet — open ports, products and versions, TLS certificates, inferred CVEs and when each was observed — from the Shodan REST API with your own key. Lookups, history and counts spend no query credits; search is the only path that does, and the tool guards it with a configurable floor. Not affiliated with or endorsed by Shodan, LLC. See CHANGELOG.md.