@kurlo/cli 0.0.0-stage → 2.2.5

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 Kurlo
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,59 @@
1
- # Temporary Holding Version
1
+ # @kurlo/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
+ The command line of [Kurlo](https://kurlo.dev), a free, open-source desktop API client. It runs the requests and test scripts of a Kurlo workspace, and serves a workspace to AI agents as an MCP server. You don't need the desktop app installed to use it.
4
+
5
+ ```bash
6
+ npm install -g @kurlo/cli
7
+ kurlo --version
8
+ ```
9
+
10
+ ## Connect an AI agent
11
+
12
+ Claude Code:
13
+
14
+ ```bash
15
+ claude mcp add kurlo -- npx -y @kurlo/cli mcp --env Staging
16
+ ```
17
+
18
+ Codex:
19
+
20
+ ```bash
21
+ codex mcp add kurlo -- npx -y @kurlo/cli mcp --env Staging
22
+ ```
23
+
24
+ Cursor, Claude Desktop and other clients with a JSON config:
25
+
26
+ ```json
27
+ {
28
+ "mcpServers": {
29
+ "kurlo": {
30
+ "command": "npx",
31
+ "args": ["-y", "@kurlo/cli", "mcp", "--env", "Staging"]
32
+ }
33
+ }
34
+ }
35
+ ```
36
+
37
+ The agent can list your requests and environments, run a saved request or a whole collection with its tests, and send one-off calls that use your `{{variables}}`. Secret values are sent to your API and masked as `[secret]` in everything the model sees.
38
+
39
+ With no workspace argument, `kurlo mcp` serves the workspace the desktop app has open. Pass the folder that contains `kurlo.yml` to serve a Git-backed workspace instead:
40
+
41
+ ```bash
42
+ npx -y @kurlo/cli mcp ./api --env Staging
43
+ ```
44
+
45
+ ## Run collections in CI
46
+
47
+ ```bash
48
+ npx -y @kurlo/cli run ./api --env CI --reporters cli,junit
49
+ ```
50
+
51
+ The run exits non-zero when a request fails or a test does not pass.
52
+
53
+ ## Docs
54
+
55
+ - [MCP server](https://kurlo.dev/docs/guides/mcp-server/)
56
+ - [CLI runner](https://kurlo.dev/docs/guides/cli-runner/)
57
+ - [Git-backed workspaces](https://kurlo.dev/docs/guides/git-workspaces/)
58
+
59
+ Prebuilt binaries are published for macOS, Linux and Windows on x64 and arm64. MIT licensed.
package/bin/kurlo.js ADDED
@@ -0,0 +1,39 @@
1
+ #!/usr/bin/env node
2
+ import { spawnSync } from 'node:child_process';
3
+ import { createRequire } from 'node:module';
4
+
5
+ const require = createRequire(import.meta.url);
6
+
7
+ const platforms = {
8
+ 'darwin arm64': '@kurlo/darwin-arm64',
9
+ 'darwin x64': '@kurlo/darwin-x64',
10
+ 'linux arm64': '@kurlo/linux-arm64',
11
+ 'linux x64': '@kurlo/linux-x64',
12
+ 'win32 arm64': '@kurlo/win32-arm64',
13
+ 'win32 x64': '@kurlo/win32-x64',
14
+ };
15
+
16
+ const target = `${process.platform} ${process.arch}`;
17
+ const pkg = platforms[target];
18
+ if (!pkg) {
19
+ console.error(`kurlo: there is no prebuilt binary for ${target}. Supported: ${Object.keys(platforms).join(', ')}.`);
20
+ process.exit(1);
21
+ }
22
+
23
+ let binary;
24
+ try {
25
+ binary = require.resolve(`${pkg}/bin/kurlo${process.platform === 'win32' ? '.exe' : ''}`);
26
+ } catch {
27
+ console.error(`kurlo: ${pkg} is not installed. It is an optional dependency of @kurlo/cli, so reinstall without --no-optional or --omit=optional.`);
28
+ process.exit(1);
29
+ }
30
+
31
+ const result = spawnSync(binary, process.argv.slice(2), { stdio: 'inherit', windowsHide: true });
32
+ if (result.error) {
33
+ console.error(`kurlo: could not start ${binary}: ${result.error.message}`);
34
+ process.exit(1);
35
+ }
36
+ if (result.signal) {
37
+ process.kill(process.pid, result.signal);
38
+ }
39
+ process.exit(result.status ?? 1);
package/package.json CHANGED
@@ -1,6 +1,45 @@
1
1
  {
2
2
  "name": "@kurlo/cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "2.2.5",
4
+ "description": "Kurlo's command line: run API collections in CI and serve them to AI agents over MCP.",
5
+ "keywords": [
6
+ "api",
7
+ "api-client",
8
+ "http",
9
+ "mcp",
10
+ "mcp-server",
11
+ "postman",
12
+ "cli",
13
+ "testing"
14
+ ],
15
+ "homepage": "https://kurlo.dev",
16
+ "bugs": "https://github.com/stormhop/kurlo/issues",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/stormhop/kurlo.git",
20
+ "directory": "npm/cli"
21
+ },
22
+ "license": "MIT",
23
+ "type": "module",
24
+ "bin": {
25
+ "kurlo": "bin/kurlo.js"
26
+ },
27
+ "files": [
28
+ "bin"
29
+ ],
30
+ "engines": {
31
+ "node": ">=18"
32
+ },
33
+ "publishConfig": {
34
+ "registry": "https://registry.npmjs.org/",
35
+ "access": "public"
36
+ },
37
+ "optionalDependencies": {
38
+ "@kurlo/darwin-arm64": "2.2.5",
39
+ "@kurlo/darwin-x64": "2.2.5",
40
+ "@kurlo/linux-arm64": "2.2.5",
41
+ "@kurlo/linux-x64": "2.2.5",
42
+ "@kurlo/win32-arm64": "2.2.5",
43
+ "@kurlo/win32-x64": "2.2.5"
44
+ }
45
+ }