@fidacy/mcp 0.5.2 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/core.js +1 -1
- package/dist/index.js +615 -449
- package/dist/lib.js +3 -3
- package/dist/postinstall.d.ts +2 -0
- package/dist/postinstall.js +266 -0
- package/dist/register.d.ts +11 -0
- package/dist/setup.d.ts +27 -0
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix `npx @fidacy/mcp setup` hanging when it has no terminal. The explicit command forced the prompt open regardless of context, so running it with redirected or piped input waited forever for an answer that could never come. The terminal check now covers that path too and prints how to run it properly instead. Also fixes the postinstall hook failing an install inside a source checkout, where the built file it points at does not exist yet.
|
|
8
|
+
|
|
9
|
+
## 0.6.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- Ask for the operator's email in the terminal, at install time. `npm i @fidacy/mcp` now prompts for it right after install, and `npx @fidacy/mcp setup` runs the same prompt on demand. The address registers immediately, so the install is identified from the first moment rather than anonymous until someone stumbles onto a claim link.
|
|
14
|
+
|
|
15
|
+
The prompt only appears when a human is actually there. Under `npx -y` (how MCP hosts launch the server), inside Docker builds, in CI, or with piped input, it exits instantly and silently — an install script that waits for input does not fail, it hangs forever, taking the host or the pipeline with it. `FIDACY_NONINTERACTIVE=1` forces that behaviour for anyone scripting installs. It also never fails an install: any error leaves exit code 0, because a firewall that refuses to install over a prompt is worse than one that never asked. If the network is down when you answer, the address is kept on disk and registers on the next start.
|
|
16
|
+
|
|
3
17
|
## 0.5.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/core.js
CHANGED
|
@@ -488,7 +488,7 @@ function resolveMandateRules(cfg) {
|
|
|
488
488
|
}
|
|
489
489
|
|
|
490
490
|
// src/telemetry.ts
|
|
491
|
-
var CLIENT_VERSION = true ? "0.
|
|
491
|
+
var CLIENT_VERSION = true ? "0.6.1" : "dev";
|
|
492
492
|
function bandOf(amount) {
|
|
493
493
|
if (typeof amount !== "number" || !Number.isFinite(amount) || amount <= 0) return void 0;
|
|
494
494
|
if (amount < 10) return "lt10";
|