@agentnext/webmcp 0.1.1 → 0.1.2

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 +30 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # AgentNext WebMCP
2
+
3
+ Bridge AgentNext actions into browser-exposed WebMCP tool interfaces.
4
+
5
+ ## Overview
6
+ Expose AgentNext actions as browser tools that AI clients can discover and invoke.
7
+
8
+ ## Features
9
+ - Tool registration with document.modelContext
10
+ - JSON schema generation from Zod
11
+ - Safe execution wrapper for browser runtimes
12
+
13
+ ## Installation
14
+ ```bash
15
+ npm install @agentnext/webmcp @agentnext/core
16
+ ```
17
+
18
+ ## Usage
19
+ ```ts
20
+ import { action } from "@agentnext/core";
21
+ import { registerActionWithWebMCP } from "@agentnext/webmcp";
22
+
23
+ const ping = action({
24
+ name: "ping",
25
+ input: z.object({ text: z.string() }),
26
+ execute: async ({ text }) => ({ text }),
27
+ });
28
+
29
+ registerActionWithWebMCP(ping);
30
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentnext/webmcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "WebMCP adapter for AgentNext — registers actions with document.modelContext",
5
5
  "license": "MIT",
6
6
  "author": "AgentNext",
@@ -34,7 +34,7 @@
34
34
  "prepublishOnly": "npm run build"
35
35
  },
36
36
  "dependencies": {
37
- "@agentnext/core": "^0.1.0",
37
+ "@agentnext/core": "^0.1.2",
38
38
  "zod-to-json-schema": "^3.23.0"
39
39
  },
40
40
  "devDependencies": {