@toolgrain/mcp 0.1.0-rc.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 +16 -0
  2. package/README.md +20 -7
  3. package/package.json +4 -3
package/CHANGELOG.md ADDED
@@ -0,0 +1,16 @@
1
+ # @toolgrain/mcp
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/protocol@0.1.1
13
+
14
+ ## 0.1.0
15
+
16
+ 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/mcp
2
10
 
3
- Define reusable, typed MCP tools and servers with Zod validation. Toolgrain
4
- implements MCP directly, independently of `@modelcontextprotocol/sdk`.
11
+ **Define tools once. Compose your MCP server.**
12
+
13
+ Reusable tools, inferred Zod inputs and outputs, rich results, and request context
14
+ from one TypeScript authoring API.
15
+
16
+ [Documentation](https://github.com/keshavkatwe/toolgrain/blob/main/docs/tools.md) ·
17
+ [Examples](https://github.com/keshavkatwe/toolgrain/blob/main/apps/README.md) ·
18
+ [npm](https://www.npmjs.com/package/@toolgrain/mcp)
5
19
 
6
20
  ## Installation
7
21
 
8
- Release candidate for Toolgrain `0.1.0`; use the explicit `next` tag.
9
- A stable Toolgrain release is not yet available.
22
+ Install the same `0.1.0` version across Toolgrain libraries.
10
23
 
11
24
  ```sh
12
- npm install @toolgrain/mcp@next @toolgrain/node@next zod
25
+ npm install @toolgrain/mcp@0.1.0 @toolgrain/node@0.1.0 zod@^4.6.6
13
26
  npm install --save-dev typescript @types/node
14
27
  ```
15
28
 
@@ -42,7 +55,7 @@ await server.listen(stdio());
42
55
  ```
43
56
 
44
57
  Save the example as `server.mts`, compile it using TypeScript with
45
- `--strict --module NodeNext --target ES2022`, then run `node server.mjs`.
58
+ `--strict --module NodeNext --target ES2022 --types node`, then run `node server.mjs`.
46
59
  Stdio uses stdin and stdout for MCP; write application logs to stderr. EOF
47
60
  closes the connection. An MCP client starts the program and sends requests.
48
61
 
@@ -78,7 +91,7 @@ ESM only. Node.js `^24.20.0` or Bun `>=1.4.4 <2`; Zod `^4.6.6`; TypeScript 5.5.4
78
91
  or later with `strict` enabled. Node stack traces can use the included source
79
92
  maps with `node --enable-source-maps server.mjs`. See the
80
93
  [support policy](https://github.com/keshavkatwe/toolgrain/blob/main/docs/support-policy.md)
81
- and [full API guide](https://github.com/keshavkatwe/toolgrain#readme).
94
+ and [full API guide](https://github.com/keshavkatwe/toolgrain/blob/main/docs/tools.md).
82
95
 
83
96
  ## License
84
97
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolgrain/mcp",
3
- "version": "0.1.0-rc.0",
3
+ "version": "0.1.1",
4
4
  "description": "Define reusable, typed MCP tools and servers with Zod validation.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -23,7 +23,7 @@
23
23
  "publishConfig": {
24
24
  "access": "public",
25
25
  "registry": "https://registry.npmjs.org/",
26
- "tag": "next"
26
+ "tag": "latest"
27
27
  },
28
28
  "type": "module",
29
29
  "exports": {
@@ -33,6 +33,7 @@
33
33
  }
34
34
  },
35
35
  "files": [
36
+ "CHANGELOG.md",
36
37
  "dist",
37
38
  "src/**/*.ts"
38
39
  ],
@@ -58,7 +59,7 @@
58
59
  "@toolgrain/repo-tools": "0.0.0"
59
60
  },
60
61
  "dependencies": {
61
- "@toolgrain/protocol": "0.1.0-rc.0"
62
+ "@toolgrain/protocol": "0.1.1"
62
63
  },
63
64
  "engines": {
64
65
  "node": "^24.20.0",