@toolgrain/mcp 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.
- package/CHANGELOG.md +16 -0
- package/README.md +19 -5
- package/package.json +3 -2
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,14 +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
|
|
4
|
-
|
|
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
22
|
Install the same `0.1.0` version across Toolgrain libraries.
|
|
9
23
|
|
|
10
24
|
```sh
|
|
11
|
-
npm install @toolgrain/mcp@0.1.0 @toolgrain/node@0.1.0 zod
|
|
25
|
+
npm install @toolgrain/mcp@0.1.0 @toolgrain/node@0.1.0 zod@^4.6.6
|
|
12
26
|
npm install --save-dev typescript @types/node
|
|
13
27
|
```
|
|
14
28
|
|
|
@@ -41,7 +55,7 @@ await server.listen(stdio());
|
|
|
41
55
|
```
|
|
42
56
|
|
|
43
57
|
Save the example as `server.mts`, compile it using TypeScript with
|
|
44
|
-
`--strict --module NodeNext --target ES2022`, then run `node server.mjs`.
|
|
58
|
+
`--strict --module NodeNext --target ES2022 --types node`, then run `node server.mjs`.
|
|
45
59
|
Stdio uses stdin and stdout for MCP; write application logs to stderr. EOF
|
|
46
60
|
closes the connection. An MCP client starts the program and sends requests.
|
|
47
61
|
|
|
@@ -77,7 +91,7 @@ ESM only. Node.js `^24.20.0` or Bun `>=1.4.4 <2`; Zod `^4.6.6`; TypeScript 5.5.4
|
|
|
77
91
|
or later with `strict` enabled. Node stack traces can use the included source
|
|
78
92
|
maps with `node --enable-source-maps server.mjs`. See the
|
|
79
93
|
[support policy](https://github.com/keshavkatwe/toolgrain/blob/main/docs/support-policy.md)
|
|
80
|
-
and [full API guide](https://github.com/keshavkatwe/toolgrain
|
|
94
|
+
and [full API guide](https://github.com/keshavkatwe/toolgrain/blob/main/docs/tools.md).
|
|
81
95
|
|
|
82
96
|
## License
|
|
83
97
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toolgrain/mcp",
|
|
3
|
-
"version": "0.1.
|
|
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": {
|
|
@@ -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.
|
|
62
|
+
"@toolgrain/protocol": "0.1.1"
|
|
62
63
|
},
|
|
63
64
|
"engines": {
|
|
64
65
|
"node": "^24.20.0",
|