@toolgrain/node 0.1.0 → 0.1.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 (3) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +18 -5
  3. package/package.json +5 -4
package/CHANGELOG.md ADDED
@@ -0,0 +1,18 @@
1
+ # @toolgrain/node
2
+
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 16752a8: Refresh package READMEs with Toolgrain branding, clearer package roles, and direct
8
+ links to the tool, transport, and authorization guides. Clarify the supported Zod
9
+ version in installation commands and explicitly load Node types when compiling
10
+ the Node examples with current TypeScript.
11
+ - Updated dependencies [16752a8]
12
+ - @toolgrain/mcp@0.1.1
13
+ - @toolgrain/http@0.1.1
14
+ - @toolgrain/protocol@0.1.1
15
+
16
+ ## 0.1.0
17
+
18
+ Initial stable release. See the [0.1.0 release notes](https://github.com/keshavkatwe/toolgrain/releases/tag/v0.1.0) for installation instructions and known limitations.
package/README.md CHANGED
@@ -1,15 +1,28 @@
1
+ <a href="https://github.com/keshavkatwe/toolgrain#readme">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/keshavkatwe/toolgrain/main/brand/logo-dark.svg">
4
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/keshavkatwe/toolgrain/main/brand/logo-light.svg">
5
+ <img src="https://raw.githubusercontent.com/keshavkatwe/toolgrain/main/brand/logo-light.svg" alt="Toolgrain" width="200" height="48">
6
+ </picture>
7
+ </a>
8
+
1
9
  # @toolgrain/node
2
10
 
3
- Node.js stdio and HTTP transports for Toolgrain MCP servers. Tools and server
4
- composition live in
5
- [@toolgrain/mcp](https://github.com/keshavkatwe/toolgrain/tree/main/packages/mcp#readme).
11
+ **Choose stdio or HTTP. Keep your tools.**
12
+
13
+ Node.js transports for Toolgrain: process stdio, a managed HTTP listener, and
14
+ handlers for an existing Node application.
15
+
16
+ [Documentation](https://github.com/keshavkatwe/toolgrain/blob/main/docs/transports.md) ·
17
+ [Examples](https://github.com/keshavkatwe/toolgrain/blob/main/apps/README.md) ·
18
+ [npm](https://www.npmjs.com/package/@toolgrain/node)
6
19
 
7
20
  ## Installation
8
21
 
9
22
  Install the same `0.1.0` version across Toolgrain libraries.
10
23
 
11
24
  ```sh
12
- npm install @toolgrain/node@0.1.0 @toolgrain/mcp@0.1.0 zod
25
+ npm install @toolgrain/node@0.1.0 @toolgrain/mcp@0.1.0 zod@^4.6.6
13
26
  npm install --save-dev typescript @types/node
14
27
  ```
15
28
 
@@ -46,7 +59,7 @@ for (const signal of ["SIGINT", "SIGTERM"] as const) {
46
59
  ```
47
60
 
48
61
  Save as `server.mts`, compile with TypeScript using
49
- `--strict --module NodeNext --target ES2022`, and run `node server.mjs`.
62
+ `--strict --module NodeNext --target ES2022 --types node`, and run `node server.mjs`.
50
63
  The endpoint defaults to `http://127.0.0.1:3000/mcp`. `server.close()` closes the
51
64
  owned listener. Toolgrain installs no process signal handlers; the example adds
52
65
  its own shutdown handling.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolgrain/node",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Node.js stdio and HTTP transports for Toolgrain MCP servers.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -33,6 +33,7 @@
33
33
  }
34
34
  },
35
35
  "files": [
36
+ "CHANGELOG.md",
36
37
  "dist"
37
38
  ],
38
39
  "scripts": {
@@ -52,9 +53,9 @@
52
53
  "@toolgrain/repo-tools": "0.0.0"
53
54
  },
54
55
  "dependencies": {
55
- "@toolgrain/mcp": "0.1.0",
56
- "@toolgrain/protocol": "0.1.0",
57
- "@toolgrain/http": "0.1.0"
56
+ "@toolgrain/mcp": "0.1.1",
57
+ "@toolgrain/protocol": "0.1.1",
58
+ "@toolgrain/http": "0.1.1"
58
59
  },
59
60
  "engines": {
60
61
  "node": "^24.20.0",