@fetchmcp-net/cli 0.0.0-stage → 0.0.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Teneo Labs Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,76 @@
1
- # Temporary Holding Version
1
+ # FetchMCP CLI
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Fetch MCP setup, client by client, checked and dated.
4
+
5
+ `fetchmcp` fetches live web pages as clean Markdown, text or HTML, straight from your terminal or your agent's shell.
6
+ It is the command line client for the [Live Web Data API](https://fetchmcp.net) by FetchMCP.
7
+
8
+ ## Quick start
9
+
10
+ ```bash
11
+ npx @fetchmcp-net/cli login # paste your API key (not echoed)
12
+ npx @fetchmcp-net/cli fetch https://example.com -o text # the page as Markdown
13
+ ```
14
+
15
+ Get a key at [fetchmcp.net](https://fetchmcp.net). Node.js 18 or later.
16
+
17
+ ## Install
18
+
19
+ ```bash
20
+ npm install -g @fetchmcp-net/cli
21
+ fetchmcp --help
22
+ ```
23
+
24
+ ## Use
25
+
26
+ ```bash
27
+ fetchmcp fetch https://example.com/a https://example.com/b # up to 10 URLs; JSON with results[] and statuses[]
28
+ fetchmcp fetch https://example.com -o text # just the content (Markdown, else text, else HTML)
29
+ fetchmcp fetch https://example.com -o html --html # the page HTML
30
+ fetchmcp fetch https://example.com --country-code de --render # from Germany, rendered in a real browser
31
+ fetchmcp fetch --data @request.json # the whole request body from a file (- for stdin)
32
+ fetchmcp account # plan, credits and rate limit
33
+ fetchmcp fetch --help # every option, with the API's own descriptions
34
+ ```
35
+
36
+ A fetch that is still running after about 100 seconds is collected automatically with the same
37
+ `Idempotency-Key`, so it is charged once.
38
+
39
+ ## The commands follow the live API
40
+
41
+ `fetchmcp` builds its commands and options from the API's OpenAPI document at
42
+ [https://livewebdata.com/openapi.json](https://livewebdata.com/openapi.json), cached for an hour. When the API gains a field or an endpoint, the
43
+ option or command is there on your next run, without updating the CLI. Offline, it uses the last cached
44
+ copy, then the copy bundled with the installed version (`fetchmcp spec` shows which one; `--offline` skips the
45
+ download). A daily job here publishes a new version whenever the API spec changed.
46
+
47
+ ## Configuration
48
+
49
+ | Setting | Option | Environment | Default |
50
+ |---|---|---|---|
51
+ | API key | `--api-key` | `LIVE_WEB_DATA_API_KEY` | the key saved by `fetchmcp login` (`~/.config/fetchmcp/config.json`, mode 0600) |
52
+ | API base URL | `--base-url` | `LIVE_WEB_DATA_API_BASE_URL` | `https://livewebdata.com/api` |
53
+ | API spec URL | `--spec-url` | `LIVE_WEB_DATA_SPEC_URL` | `https://livewebdata.com/openapi.json` |
54
+ | Output | `-o json\|text\|<field>` | | `json` |
55
+ | Update notice | | `FETCHMCP_NO_UPDATE_NOTIFIER=1` turns it off | once a day, terminals only |
56
+
57
+ Requests and your key only ever go to the base URL, never to a server named in the spec.
58
+
59
+ ## Exit codes
60
+
61
+ | Code | Meaning |
62
+ |---|---|
63
+ | 0 | OK |
64
+ | 1 | The API answered with an error (JSON on stderr, with its `requestId`), every URL failed with `-o text`, or the fetch was still running at `--max-wait` |
65
+ | 2 | Usage: unknown command or option, a value the API does not accept |
66
+ | 3 | Network: no answer. The error carries the `Idempotency-Key` to collect the result without a new charge |
67
+
68
+ ## Links
69
+
70
+ - [fetchmcp.net](https://fetchmcp.net)
71
+ - [Docs](https://fetchmcp.net/docs)
72
+ - [API spec](https://livewebdata.com/openapi.json)
73
+
74
+ ## License
75
+
76
+ MIT, © Teneo Labs Inc.
package/bin/cli.js ADDED
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+ // @ts-check
3
+ import { main } from "../src/main.js";
4
+
5
+ main(process.argv.slice(2), { env: process.env, stdin: process.stdin, stdout: process.stdout, stderr: process.stderr }).then(
6
+ (code) => {
7
+ process.exitCode = code;
8
+ },
9
+ (e) => {
10
+ process.stderr.write(`${e?.stack ?? e}\n`);
11
+ process.exitCode = 1;
12
+ },
13
+ );
package/brand.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "FetchMCP",
3
+ "tagline": "Fetch MCP setup, client by client, checked and dated.",
4
+ "domain": "fetchmcp.net",
5
+ "bin": "fetchmcp",
6
+ "npm": "@fetchmcp-net/cli",
7
+ "org": "fetchmcp-net",
8
+ "repo": "cli",
9
+ "siteUrl": "https://fetchmcp.net",
10
+ "docsUrl": "https://fetchmcp.net/docs",
11
+ "apiName": "Live Web Data API",
12
+ "apiBaseUrl": "https://livewebdata.com/api",
13
+ "specUrl": "https://livewebdata.com/openapi.json"
14
+ }