Repository navigation
Releases
v0.3.0
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'sserve.Run. What an
MCP client sees (the CLI is unchanged):- Argument errors are
invalid_arguments, naming the argument in
details.argument, in place ofinvalid_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 ismissing_argument. The
get_usagemanual'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).
- Argument errors are
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_hostshortened 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 (\band\fas two, an
invalid byte and U+FFFD as three), where it counted six for each before.
v0.2.1
v0.2.0
Added
- The MCP server speaks both eras of the protocol (ADR-0001): the
2026-07-28 revision, whose clients probe withserver/discover, as well as
the earlierinitializehandshake (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 anunknown_tooltool result (with its hint to callget_usage); the code
leaves the error vocabulary. -
Protocol details now follow the module:
tools/list,tools/calland unknown methods beforeinitializeare
refused with -32602 (an unknown method was -32601);argumentsthat is not an object is refused with -32602;- a request with
"id":nullgets -32600 (initialize,pingand
tools/listused 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/cancellednow cancels the call.
Requests piped in are still all answered before the server exits at end of
input. -
make vuln— and somake package— scans every platform inPLATFORMS,
with the environmentbuild-allbuilds 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
Security
- Rebuilt with Go 1.27.4, which
go.modnow requires (it wasgo 1.25.0).
No code of the tool changed. v0.1.3 was built with Go 1.27.2;govulncheck -mode binaryfinds 2 standard-library advisories in its darwin-arm64 binary,
incrypto/x509andnet/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 packagerunsgovulncheck ./...first (make vuln) and stops on a
finding, so a release cannot be built past one.
v0.1.3
Fixed
get_servicecompares a port with what could be read of each service it left out. Once any service was left out it answereddecode_errorfor every port without a readable service; now a service whose port was read rules itself out of other ports (not_observedis 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
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
--rawwith it. The value is left out — never turned into a zero — andnotesname its path (data[].http.status (1));--rawreturns 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_servicethen answersdecode_errorinstead ofnot_observedfor 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
Fixed
- A host record whose
asnarrived as a number failed as a whole withdecode_error—--rawincluded. The string fields the tool reads now accept a string or a number, and a bare AS number is writtenAS2497in the projection;--rawkeeps Shodan's own value.
v0.1.0
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.