@easynet/agent-tool 1.0.93 → 1.0.94

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 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -34,3 +34,29 @@ const tools = createAgentTools({
34
34
 
35
35
  console.log(tools.map((tool) => tool.name));
36
36
  ```
37
+
38
+ ### YAML config
39
+
40
+ Example `tool.yaml`:
41
+
42
+ ```yaml
43
+ apiVersion: easynet.world/v1
44
+ kind: ToolConfig
45
+ metadata:
46
+ name: agent-tool-default
47
+ spec:
48
+ tools:
49
+ sandboxedPath: .
50
+ allowedHosts: []
51
+ blockedHosts: []
52
+ list:
53
+ - npm:@easynet/agent-tool-buildin
54
+ ```
55
+
56
+ Explanation:
57
+
58
+ - `spec.tools.sandboxedPath`: root directory allowed for filesystem tools.
59
+ - `spec.tools.allowedHosts`: allowlist for outbound HTTP tools.
60
+ - `spec.tools.blockedHosts`: denylist for outbound HTTP tools.
61
+ - `spec.tools.list`: tool packages or tool descriptors to load.
62
+ - `npm:@easynet/agent-tool-buildin`: load the built-in tool extension package.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easynet/agent-tool",
3
- "version": "1.0.93",
3
+ "version": "1.0.94",
4
4
  "description": "MCP build: init → build → run. Turn your project (@tool, SKILL, n8n) into a standalone MCP npm server (no framework embedding, no package conflict).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",