@hazeljs/mcp 2.0.3 → 2.0.5
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/README.md +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ npm install @hazeljs/agent
|
|
|
32
32
|
|
|
33
33
|
- **Node.js 20+**
|
|
34
34
|
- **TypeScript 5+** with `experimentalDecorators: true` in your `tsconfig.json` (only when using `@Tool()` decorators)
|
|
35
|
-
- **No `reflect-metadata` import in your application code.** `@hazeljs/
|
|
35
|
+
- **No `reflect-metadata` import in your application code.** `@hazeljs/core` loads it automatically; do not install or import it. In standalone mode (without `@hazeljs/agent` / `@hazeljs/core`), `reflect-metadata` is not used at all.
|
|
36
36
|
- **No `emitDecoratorMetadata` required.** `@Tool()` does not rely on TypeScript's design-time type metadata.
|
|
37
37
|
|
|
38
38
|
---
|
|
@@ -41,7 +41,7 @@ npm install @hazeljs/agent
|
|
|
41
41
|
|
|
42
42
|
### 1. Define tools on an agent class
|
|
43
43
|
|
|
44
|
-
> You do **not** need to import `reflect-metadata` yourself. `@hazeljs/
|
|
44
|
+
> You do **not** need to import `reflect-metadata` yourself. `@hazeljs/core` loads it automatically, so it is already initialized by the time your `@Tool()` runs. Just enable `experimentalDecorators` in your `tsconfig.json`.
|
|
45
45
|
|
|
46
46
|
```typescript
|
|
47
47
|
import { Tool } from '@hazeljs/agent';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hazeljs/mcp",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Expose HazelJS tools as MCP (Model Context Protocol) tools over STDIO",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"@types/node": "^20.19.39",
|
|
44
44
|
"jest": "^29.7.0",
|
|
45
45
|
"ts-jest": "^29.4.9",
|
|
46
|
-
"typescript": "^
|
|
46
|
+
"typescript": "^6.0.3"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@hazeljs/agent": "^2.0.
|
|
49
|
+
"@hazeljs/agent": "^2.0.5"
|
|
50
50
|
},
|
|
51
51
|
"peerDependenciesMeta": {
|
|
52
52
|
"@hazeljs/agent": {
|