mcp-caller 0.0.1 → 0.0.2

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.
Files changed (2) hide show
  1. package/README.md +20 -5
  2. package/package.json +4 -2
package/README.md CHANGED
@@ -5,8 +5,7 @@
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- cd culled/mcp-caller
9
- npm install
8
+ npm install -g mcp-caller
10
9
  ```
11
10
 
12
11
  ## Usage
@@ -14,23 +13,39 @@ npm install
14
13
  Call a stdio MCP server:
15
14
 
16
15
  ```bash
17
- node index.js \
16
+ npx -y mcp-caller \
18
17
  --server-json '{"type":"stdio","command":"uvx","args":["--from","git+https://github.com/macsymwang/hello-mcp-server.git","hello-mcp-server"]}' \
19
18
  --call-json '{"tool":"say_hello","params":{"name":"world"}}'
20
19
  ```
21
20
 
21
+ PowerShell:
22
+
23
+ ```powershell
24
+ npx -y mcp-caller `
25
+ --server-json '{"type":"stdio","command":"uvx","args":["--from","git+https://github.com/macsymwang/hello-mcp-server.git","hello-mcp-server"]}' `
26
+ --call-json '{"tool":"say_hello","params":{"name":"world"}}'
27
+ ```
28
+
22
29
  Call a remote streamable HTTP MCP server:
23
30
 
24
31
  ```bash
25
- node index.js \
32
+ npx -y mcp-caller \
26
33
  --server-json '{"mcpServers":{"context7":{"type":"streamable-http","url":"https://mcp.context7.com/mcp","headers":{"CONTEXT7_API_KEY":"YOUR_API_KEY"}}}}' \
27
34
  --call-json '{"tool":"resolve-library-id","params":{"query":"Express","libraryName":"Express"}}'
28
35
  ```
29
36
 
37
+ PowerShell:
38
+
39
+ ```powershell
40
+ npx -y mcp-caller `
41
+ --server-json '{"mcpServers":{"context7":{"type":"streamable-http","url":"https://mcp.context7.com/mcp","headers":{"CONTEXT7_API_KEY":"YOUR_API_KEY"}}}}' `
42
+ --call-json '{"tool":"resolve-library-id","params":{"query":"Express","libraryName":"Express"}}'
43
+ ```
44
+
30
45
  Read JSON from files instead of inline values:
31
46
 
32
47
  ```bash
33
- node index.js --server-file server.json --call-file call.json
48
+ npx -y mcp-caller --server-file server.json --call-file call.json
34
49
  ```
35
50
 
36
51
  ## JSON Shapes
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "mcp-caller",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "A small MCP client CLI that can start a server and call a tool from JSON input.",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
- "bin": "./index.js",
7
+ "bin": {
8
+ "mcp-caller": "index.js"
9
+ },
8
10
  "files": [
9
11
  "index.js",
10
12
  "README.md",