@honkio/mcp 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +26 -34
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -28,28 +28,11 @@ Live sending also requires that the account owner has completed phone verificati
28
28
 
29
29
  ---
30
30
 
31
- ## 2. Install
31
+ ## 2. Connect your AI tool
32
32
 
33
- > **The package is not on npm yet**, so `npx @honkio/mcp` will not work. Until it is published, install from source. It takes about thirty seconds.
33
+ There is nothing to install. `npx` fetches the server on first use and caches it.
34
34
 
35
- ```sh
36
- git clone https://github.com/jeffcaldwellca/honkio
37
- cd honkio/mcp
38
- npm install
39
- npm run build
40
- ```
41
-
42
- That produces `dist/index.js`, which is the server entry point. Note its absolute path — you will need it in the next step:
43
-
44
- ```sh
45
- pwd # e.g. /Users/you/code/honkio/mcp
46
- ```
47
-
48
- ---
49
-
50
- ## 3. Connect your AI tool
51
-
52
- In every example below, replace `/ABSOLUTE/PATH/TO/honkio/mcp` with the path from `pwd`, and put your own key in `HONKIO_API_KEY`.
35
+ In every example below, put your own key in `HONKIO_API_KEY`.
53
36
 
54
37
  ### Claude Code
55
38
 
@@ -58,7 +41,7 @@ From inside your project:
58
41
  ```sh
59
42
  claude mcp add honkio \
60
43
  --env HONKIO_API_KEY=mk_test_YOUR_KEY_HERE \
61
- -- node /ABSOLUTE/PATH/TO/honkio/mcp/dist/index.js
44
+ -- npx -y @honkio/mcp
62
45
  ```
63
46
 
64
47
  Or commit a `.mcp.json` at the project root to share it with your team (keep the real key out of git — see [Keeping your key out of git](#keeping-your-key-out-of-git)):
@@ -67,8 +50,8 @@ Or commit a `.mcp.json` at the project root to share it with your team (keep the
67
50
  {
68
51
  "mcpServers": {
69
52
  "honkio": {
70
- "command": "node",
71
- "args": ["/ABSOLUTE/PATH/TO/honkio/mcp/dist/index.js"],
53
+ "command": "npx",
54
+ "args": ["-y", "@honkio/mcp"],
72
55
  "env": { "HONKIO_API_KEY": "mk_test_YOUR_KEY_HERE" }
73
56
  }
74
57
  }
@@ -83,8 +66,8 @@ Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) o
83
66
  {
84
67
  "mcpServers": {
85
68
  "honkio": {
86
- "command": "node",
87
- "args": ["/ABSOLUTE/PATH/TO/honkio/mcp/dist/index.js"],
69
+ "command": "npx",
70
+ "args": ["-y", "@honkio/mcp"],
88
71
  "env": { "HONKIO_API_KEY": "mk_test_YOUR_KEY_HERE" }
89
72
  }
90
73
  }
@@ -101,8 +84,8 @@ Edit `.cursor/mcp.json` in your project, or `~/.cursor/mcp.json` globally:
101
84
  {
102
85
  "mcpServers": {
103
86
  "honkio": {
104
- "command": "node",
105
- "args": ["/ABSOLUTE/PATH/TO/honkio/mcp/dist/index.js"],
87
+ "command": "npx",
88
+ "args": ["-y", "@honkio/mcp"],
106
89
  "env": { "HONKIO_API_KEY": "mk_test_YOUR_KEY_HERE" }
107
90
  }
108
91
  }
@@ -118,8 +101,8 @@ Edit `.vscode/mcp.json` in your workspace:
118
101
  "servers": {
119
102
  "honkio": {
120
103
  "type": "stdio",
121
- "command": "node",
122
- "args": ["/ABSOLUTE/PATH/TO/honkio/mcp/dist/index.js"],
104
+ "command": "npx",
105
+ "args": ["-y", "@honkio/mcp"],
123
106
  "env": { "HONKIO_API_KEY": "mk_test_YOUR_KEY_HERE" }
124
107
  }
125
108
  }
@@ -128,7 +111,7 @@ Edit `.vscode/mcp.json` in your workspace:
128
111
 
129
112
  ---
130
113
 
131
- ## 4. Confirm it works
114
+ ## 3. Confirm it works
132
115
 
133
116
  Ask your agent:
134
117
 
@@ -142,7 +125,7 @@ List my HonkIO phone numbers.
142
125
  To check the server outside any AI tool:
143
126
 
144
127
  ```sh
145
- HONKIO_API_KEY=mk_test_YOUR_KEY node dist/index.js
128
+ HONKIO_API_KEY=mk_test_YOUR_KEY npx -y @honkio/mcp
146
129
  ```
147
130
 
148
131
  It should start and wait silently on stdin — an MCP server speaks JSON-RPC over stdio, so no output is the healthy state. Press Ctrl-C to exit. If it exits immediately with an error, the message tells you what is wrong.
@@ -310,8 +293,9 @@ Agents act on instructions that can be vaguer than you intended. If you are expl
310
293
  | Symptom | Cause and fix |
311
294
  |---|---|
312
295
  | `Error [UNAUTHORIZED]` | Key is wrong, revoked, or `HONKIO_API_KEY` never reached the server. Check the `env` block in your config. |
313
- | Tools do not appear in the agent | The client did not start the server. Confirm the path in `args` is absolute and that `dist/index.js` exists — run `npm run build` if it does not. Restart the client. |
314
- | `Cannot find module …/dist/index.js` | You skipped `npm run build`, or the path is wrong. |
296
+ | Tools do not appear in the agent | The client did not start the server. Restart the client, and check that `npx` is on its `PATH` — GUI apps do not always inherit your shell's `PATH`. |
297
+ | First start is slow, or times out once | `npx` downloads the package on first use. Run `npx -y @honkio/mcp` once in a terminal to warm the cache, then restart your client. |
298
+ | `npm ERR! 404 @honkio/mcp` | Usually an npm registry override or a private proxy. Check `npm config get registry`. |
315
299
  | `Error [PAYMENT_REQUIRED]` | The account needs an initial top-up before live use. |
316
300
  | `Error [ACCOUNT_NOT_VERIFIED]` | Live sending needs the account owner's phone verified. Do it in the dashboard. |
317
301
  | `501 DNCL_COMING_SOON` | Expected. DNCL checking is not live yet. |
@@ -321,13 +305,21 @@ Agents act on instructions that can be vaguer than you intended. If you are expl
321
305
 
322
306
  ## Development
323
307
 
308
+ To work on the server rather than just use it:
309
+
324
310
  ```sh
311
+ git clone https://github.com/jeffcaldwellca/honkio
312
+ cd honkio/mcp
313
+ npm install
314
+
325
315
  npm run dev # run from source with tsx, no build step
326
316
  npm run typecheck # types only
327
317
  npm run build # compile to dist/
328
318
  ```
329
319
 
330
- Point the server at a local API with `HONKIO_API_URL=http://localhost:3000`.
320
+ Point a local checkout at your own API with `HONKIO_API_URL=http://localhost:3000`, and at a local build by using `node /path/to/honkio/mcp/dist/index.js` as the `command` in your client config instead of `npx`.
321
+
322
+ `dist/` is gitignored and the published tarball is built from it, so `prepublishOnly` rebuilds on every `npm publish` — never publish without letting it run.
331
323
 
332
324
  ## License
333
325
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@honkio/mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "HonkIO MCP server — lets AI coding agents send SMS, manage Canadian phone numbers, and handle CASL/DNCL compliance",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",