webpack-plugin-webmcp-nexus 0.1.9 → 0.1.10
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.en.md +188 -0
- package/README.md +188 -0
- package/package.json +19 -3
package/README.en.md
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
# webpack-plugin-webmcp-nexus
|
|
4
|
+
|
|
5
|
+
**The Webpack plugin for WebMCP Nexus — generates JSON Schema from TypeScript types and injects it into tool functions during the Webpack build.**
|
|
6
|
+
|
|
7
|
+
[](https://www.npmjs.com/package/webpack-plugin-webmcp-nexus)
|
|
8
|
+
[](https://www.npmjs.com/package/webpack-plugin-webmcp-nexus)
|
|
9
|
+
[](https://github.com/alibaba/webmcp-nexus/blob/main/LICENSE)
|
|
10
|
+
|
|
11
|
+
[简体中文](https://github.com/alibaba/webmcp-nexus/blob/main/packages/webpack-plugin-webmcp/README.md) | English
|
|
12
|
+
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Table of Contents
|
|
18
|
+
|
|
19
|
+
- [Introduction](#introduction)
|
|
20
|
+
- [Features](#features)
|
|
21
|
+
- [Why Use It](#why-use-it)
|
|
22
|
+
- [Installation](#installation)
|
|
23
|
+
- [Usage](#usage)
|
|
24
|
+
- [Options](#options)
|
|
25
|
+
- [Ecosystem](#ecosystem)
|
|
26
|
+
- [Links](#links)
|
|
27
|
+
- [License](#license)
|
|
28
|
+
|
|
29
|
+
## Introduction
|
|
30
|
+
|
|
31
|
+
`webpack-plugin-webmcp-nexus` is the **Webpack build plugin** for the [WebMCP Nexus](https://github.com/alibaba/webmcp-nexus) toolchain. It auto-injects an `enforce: 'pre'` Loader into `compiler.options.module.rules`, which calls [`webmcp-nexus-core`](https://www.npmjs.com/package/webmcp-nexus-core) to statically analyse WebMCP tool functions, infer JSON Schema from their **TypeScript types and JSDoc**, and inject that schema as a `__webmcpSchema` field on the function object.
|
|
32
|
+
|
|
33
|
+
Used together with [`webmcp-nexus-sdk`](https://www.npmjs.com/package/webmcp-nexus-sdk): at runtime the SDK reads that field and registers the tools with `navigator.modelContext`, so MCP clients can call them directly.
|
|
34
|
+
|
|
35
|
+
## Features
|
|
36
|
+
|
|
37
|
+
- 📦 **Webpack 5+ support** — auto-injects the Loader into `compiler.options.module.rules`; no manual `use` configuration required.
|
|
38
|
+
- 🔬 **Types as schema** — function signatures + JSDoc are turned into JSON Schema; one source of truth.
|
|
39
|
+
- 🛠️ **Automatic alias merging** — picks up Webpack's `resolve.alias` (object or array form) and lets you extend it.
|
|
40
|
+
- 📂 **Flexible `include` configuration** — accept multiple directory prefixes to scope analysis.
|
|
41
|
+
- 🪶 **Zero runtime overhead** — all work happens at build time.
|
|
42
|
+
- 🔌 **Reserved global hook** — an extension point on `compiler.hooks.done` is reserved for future features (manifest generation, tool-name conflict detection, …).
|
|
43
|
+
|
|
44
|
+
## Why Use It
|
|
45
|
+
|
|
46
|
+
| Dimension | Common practice | webpack-plugin-webmcp-nexus |
|
|
47
|
+
| ------------------ | -------------------------------------------------- | ------------------------------------------------------------------------ |
|
|
48
|
+
| Schema generation | Hand-written JSON Schema | **Automatically inferred from TS types**, with editor-time feedback |
|
|
49
|
+
| Function intrusion | Decorators / wrapper functions | **Non-invasive** — functions are left untouched |
|
|
50
|
+
| Loader setup | Manually configure `use` and ordering | **Auto-injected**, no changes to your existing rules |
|
|
51
|
+
| Toolchain coupling | Tightly bound to a runtime SDK | Decoupled from [`webmcp-nexus-sdk`](https://www.npmjs.com/package/webmcp-nexus-sdk); only injects data into the bundle |
|
|
52
|
+
|
|
53
|
+
## Installation
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
# pnpm (recommended)
|
|
57
|
+
pnpm add -D webpack-plugin-webmcp-nexus
|
|
58
|
+
|
|
59
|
+
# npm
|
|
60
|
+
npm install --save-dev webpack-plugin-webmcp-nexus
|
|
61
|
+
|
|
62
|
+
# yarn
|
|
63
|
+
yarn add -D webpack-plugin-webmcp-nexus
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
> You also need the runtime SDK:
|
|
67
|
+
>
|
|
68
|
+
> ```bash
|
|
69
|
+
> pnpm add webmcp-nexus-sdk
|
|
70
|
+
> ```
|
|
71
|
+
|
|
72
|
+
## Usage
|
|
73
|
+
|
|
74
|
+
### 1. Configure `webpack.config.ts`
|
|
75
|
+
|
|
76
|
+
```ts
|
|
77
|
+
import path from 'node:path';
|
|
78
|
+
import { WebMcpPlugin } from 'webpack-plugin-webmcp-nexus';
|
|
79
|
+
import type { Configuration } from 'webpack';
|
|
80
|
+
|
|
81
|
+
const config: Configuration = {
|
|
82
|
+
entry: './src/main.tsx',
|
|
83
|
+
output: {
|
|
84
|
+
path: path.resolve(__dirname, 'dist'),
|
|
85
|
+
filename: '[name].[contenthash].js',
|
|
86
|
+
},
|
|
87
|
+
module: {
|
|
88
|
+
rules: [
|
|
89
|
+
{
|
|
90
|
+
test: /\.[jt]sx?$/,
|
|
91
|
+
exclude: /node_modules/,
|
|
92
|
+
use: 'babel-loader',
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
},
|
|
96
|
+
plugins: [
|
|
97
|
+
new WebMcpPlugin({
|
|
98
|
+
include: ['src'],
|
|
99
|
+
}),
|
|
100
|
+
],
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export default config;
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### 2. Write a plain TypeScript function
|
|
107
|
+
|
|
108
|
+
```ts
|
|
109
|
+
// src/tools/queries.ts
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Search tasks by keyword.
|
|
113
|
+
* @readonly
|
|
114
|
+
*/
|
|
115
|
+
export async function searchTasks(params: {
|
|
116
|
+
/** Search keyword */
|
|
117
|
+
query: string;
|
|
118
|
+
/** Maximum number of results (default 50) */
|
|
119
|
+
limit?: number;
|
|
120
|
+
}): Promise<{ count: number; tasks: Task[] }> {
|
|
121
|
+
// ... your original business logic
|
|
122
|
+
}
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### 3. Register via the SDK
|
|
126
|
+
|
|
127
|
+
```ts
|
|
128
|
+
// src/main.tsx
|
|
129
|
+
import { registerGlobalTools } from 'webmcp-nexus-sdk';
|
|
130
|
+
import * as queries from './tools/queries';
|
|
131
|
+
|
|
132
|
+
registerGlobalTools(queries);
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
Once the dev server starts, the plugin infers a JSON Schema from `searchTasks`'s TS types + JSDoc and injects it as `__webmcpSchema` on the function object; the SDK reads it in the browser to complete registration.
|
|
136
|
+
|
|
137
|
+
## Options
|
|
138
|
+
|
|
139
|
+
```ts
|
|
140
|
+
interface WebMcpPluginOptions {
|
|
141
|
+
/** File-matching pattern. Default: /\.[jt]sx?$/ */
|
|
142
|
+
test?: RegExp;
|
|
143
|
+
|
|
144
|
+
/** Directory paths (relative to project root or absolute). Default: ['src'] */
|
|
145
|
+
include?: string[];
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Extra module path aliases (merged on top of webpack's resolve.alias).
|
|
149
|
+
* Used to resolve module specifiers like `import * as api from '@alias/xxx'`.
|
|
150
|
+
*/
|
|
151
|
+
alias?: Record<string, string>;
|
|
152
|
+
}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### Full example
|
|
156
|
+
|
|
157
|
+
```ts
|
|
158
|
+
new WebMcpPlugin({
|
|
159
|
+
test: /\.tsx?$/,
|
|
160
|
+
include: ['src/tools', 'src/pages'],
|
|
161
|
+
alias: {
|
|
162
|
+
'@tools': path.resolve(__dirname, 'src/tools'),
|
|
163
|
+
},
|
|
164
|
+
});
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
> **Note**: Webpack's `RuleSetRule.include` uses absolute-path prefix matching and **does not support globs**; relative paths are automatically resolved against `compiler.context`.
|
|
168
|
+
|
|
169
|
+
## Ecosystem
|
|
170
|
+
|
|
171
|
+
| Package | Purpose |
|
|
172
|
+
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------- |
|
|
173
|
+
| [`webmcp-nexus-sdk`](https://www.npmjs.com/package/webmcp-nexus-sdk) | Runtime SDK exposing `registerGlobalTools` / `useWebMcpTools` |
|
|
174
|
+
| [`webmcp-nexus-core`](https://www.npmjs.com/package/webmcp-nexus-core) | Build-time core: TS extraction + JSON Schema generation |
|
|
175
|
+
| [`vite-plugin-webmcp-nexus`](https://www.npmjs.com/package/vite-plugin-webmcp-nexus) | Vite build plugin (if you're on Vite) |
|
|
176
|
+
| **`webpack-plugin-webmcp-nexus`** (this package) | Webpack build plugin |
|
|
177
|
+
|
|
178
|
+
## Links
|
|
179
|
+
|
|
180
|
+
- 📦 **Main repo on GitHub**: [alibaba/webmcp-nexus](https://github.com/alibaba/webmcp-nexus)
|
|
181
|
+
- 📖 **Full documentation**: [README](https://github.com/alibaba/webmcp-nexus#readme)
|
|
182
|
+
- 🎯 **Demo app**: [apps/demo](https://github.com/alibaba/webmcp-nexus/tree/main/apps/demo) — full Vite + Webpack dual-build example
|
|
183
|
+
- 🌐 **WebMCP standard**: [webmcp.org](https://webmcp.org)
|
|
184
|
+
- 🐛 **Issues**: [GitHub Issues](https://github.com/alibaba/webmcp-nexus/issues)
|
|
185
|
+
|
|
186
|
+
## License
|
|
187
|
+
|
|
188
|
+
[MIT](https://github.com/alibaba/webmcp-nexus/blob/main/LICENSE) © Alibaba
|
package/README.md
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
# webpack-plugin-webmcp-nexus
|
|
4
|
+
|
|
5
|
+
**WebMCP Nexus 的 Webpack 插件 —— 在 Webpack 构建过程中自动从 TypeScript 类型生成 JSON Schema 并注入到工具函数。**
|
|
6
|
+
|
|
7
|
+
[](https://www.npmjs.com/package/webpack-plugin-webmcp-nexus)
|
|
8
|
+
[](https://www.npmjs.com/package/webpack-plugin-webmcp-nexus)
|
|
9
|
+
[](https://github.com/alibaba/webmcp-nexus/blob/main/LICENSE)
|
|
10
|
+
|
|
11
|
+
简体中文 | [English](https://github.com/alibaba/webmcp-nexus/blob/main/packages/webpack-plugin-webmcp/README.en.md)
|
|
12
|
+
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## 目录
|
|
18
|
+
|
|
19
|
+
- [简介](#简介)
|
|
20
|
+
- [核心特性](#核心特性)
|
|
21
|
+
- [优势](#优势)
|
|
22
|
+
- [安装](#安装)
|
|
23
|
+
- [使用示例](#使用示例)
|
|
24
|
+
- [配置选项](#配置选项)
|
|
25
|
+
- [生态包](#生态包)
|
|
26
|
+
- [相关链接](#相关链接)
|
|
27
|
+
- [许可证](#许可证)
|
|
28
|
+
|
|
29
|
+
## 简介
|
|
30
|
+
|
|
31
|
+
`webpack-plugin-webmcp-nexus` 是 [WebMCP Nexus](https://github.com/alibaba/webmcp-nexus) 工具链的 **Webpack 构建插件**。它会自动向 Webpack 的 `module.rules` 注入一个 `enforce: 'pre'` 的 Loader,调用 [`webmcp-nexus-core`](https://www.npmjs.com/package/webmcp-nexus-core) 静态分析源码中的 WebMCP 工具函数,从 **TypeScript 类型 + JSDoc** 反推 JSON Schema,并将其作为 `__webmcpSchema` 字段注入到函数对象上。
|
|
32
|
+
|
|
33
|
+
配合 [`webmcp-nexus-sdk`](https://www.npmjs.com/package/webmcp-nexus-sdk) 使用:在运行时,SDK 会读取该字段并向 `navigator.modelContext` 完成注册,让你的工具被 MCP 客户端直接调用。
|
|
34
|
+
|
|
35
|
+
## 核心特性
|
|
36
|
+
|
|
37
|
+
- 📦 **支持 Webpack 5+** —— 通过 `compiler.options.module.rules` 自动注入 Loader,无需手动配置 `use`。
|
|
38
|
+
- 🔬 **类型即 Schema** —— 函数签名 + JSDoc 自动生成 JSON Schema,单一事实源。
|
|
39
|
+
- 🛠️ **Alias 自动合并** —— 自动读取 Webpack 的 `resolve.alias`(对象与数组形式皆可),并允许用户额外配置。
|
|
40
|
+
- 📂 **灵活的 include 配置** —— 可指定多个目录前缀,仅扫描你关心的源码。
|
|
41
|
+
- 🪶 **零运行时开销** —— 所有工作都在构建阶段完成,运行时无任何额外成本。
|
|
42
|
+
- 🔌 **预留全局协调钩子** —— 在 `compiler.hooks.done` 上预留扩展点,未来支持 manifest 生成、工具名冲突检测等。
|
|
43
|
+
|
|
44
|
+
## 优势
|
|
45
|
+
|
|
46
|
+
| 维度 | 业内常见做法 | webpack-plugin-webmcp-nexus |
|
|
47
|
+
| ---------- | ----------------------------- | -------------------------------------------------------- |
|
|
48
|
+
| Schema 生成 | 手写 JSON Schema | **TS 类型自动反推**,编辑器即时反馈 |
|
|
49
|
+
| 函数侵入度 | 装饰器 / 包装函数 | **零侵入**——保持函数原样 |
|
|
50
|
+
| Loader 配置 | 需手动配置 use 与顺序 | **自动注入**,无需修改现有 rules |
|
|
51
|
+
| 工具链耦合 | 通常与 SDK 强绑定 | 与 [`webmcp-nexus-sdk`](https://www.npmjs.com/package/webmcp-nexus-sdk) 解耦,仅在产物注入数据 |
|
|
52
|
+
|
|
53
|
+
## 安装
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
# pnpm(推荐)
|
|
57
|
+
pnpm add -D webpack-plugin-webmcp-nexus
|
|
58
|
+
|
|
59
|
+
# npm
|
|
60
|
+
npm install --save-dev webpack-plugin-webmcp-nexus
|
|
61
|
+
|
|
62
|
+
# yarn
|
|
63
|
+
yarn add -D webpack-plugin-webmcp-nexus
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
> 同时需要安装运行时 SDK:
|
|
67
|
+
>
|
|
68
|
+
> ```bash
|
|
69
|
+
> pnpm add webmcp-nexus-sdk
|
|
70
|
+
> ```
|
|
71
|
+
|
|
72
|
+
## 使用示例
|
|
73
|
+
|
|
74
|
+
### 1. 配置 `webpack.config.ts`
|
|
75
|
+
|
|
76
|
+
```ts
|
|
77
|
+
import path from 'node:path';
|
|
78
|
+
import { WebMcpPlugin } from 'webpack-plugin-webmcp-nexus';
|
|
79
|
+
import type { Configuration } from 'webpack';
|
|
80
|
+
|
|
81
|
+
const config: Configuration = {
|
|
82
|
+
entry: './src/main.tsx',
|
|
83
|
+
output: {
|
|
84
|
+
path: path.resolve(__dirname, 'dist'),
|
|
85
|
+
filename: '[name].[contenthash].js',
|
|
86
|
+
},
|
|
87
|
+
module: {
|
|
88
|
+
rules: [
|
|
89
|
+
{
|
|
90
|
+
test: /\.[jt]sx?$/,
|
|
91
|
+
exclude: /node_modules/,
|
|
92
|
+
use: 'babel-loader',
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
},
|
|
96
|
+
plugins: [
|
|
97
|
+
new WebMcpPlugin({
|
|
98
|
+
include: ['src'],
|
|
99
|
+
}),
|
|
100
|
+
],
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export default config;
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### 2. 编写一个普通的 TS 函数
|
|
107
|
+
|
|
108
|
+
```ts
|
|
109
|
+
// src/tools/queries.ts
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* 根据关键词搜索任务。
|
|
113
|
+
* @readonly
|
|
114
|
+
*/
|
|
115
|
+
export async function searchTasks(params: {
|
|
116
|
+
/** 搜索关键词 */
|
|
117
|
+
query: string;
|
|
118
|
+
/** 返回数量上限(默认 50) */
|
|
119
|
+
limit?: number;
|
|
120
|
+
}): Promise<{ count: number; tasks: Task[] }> {
|
|
121
|
+
// ... 你原本的业务实现
|
|
122
|
+
}
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### 3. 注册到 SDK
|
|
126
|
+
|
|
127
|
+
```ts
|
|
128
|
+
// src/main.tsx
|
|
129
|
+
import { registerGlobalTools } from 'webmcp-nexus-sdk';
|
|
130
|
+
import * as queries from './tools/queries';
|
|
131
|
+
|
|
132
|
+
registerGlobalTools(queries);
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
启动开发服务器后,构建插件会自动从 `searchTasks` 的 TS 类型 + JSDoc 反推 JSON Schema,并通过 `__webmcpSchema` 字段注入函数对象;SDK 在浏览器中读取该字段完成注册。
|
|
136
|
+
|
|
137
|
+
## 配置选项
|
|
138
|
+
|
|
139
|
+
```ts
|
|
140
|
+
interface WebMcpPluginOptions {
|
|
141
|
+
/** 文件匹配规则,默认 /\.[jt]sx?$/ */
|
|
142
|
+
test?: RegExp;
|
|
143
|
+
|
|
144
|
+
/** 包含的目录路径(相对于项目根目录或绝对路径),默认 ['src'] */
|
|
145
|
+
include?: string[];
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* 额外的模块路径 alias(合并到 webpack 的 resolve.alias 之上)。
|
|
149
|
+
* 用于解析 `import * as api from '@alias/xxx'` 形式的模块说明符。
|
|
150
|
+
*/
|
|
151
|
+
alias?: Record<string, string>;
|
|
152
|
+
}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### 完整示例
|
|
156
|
+
|
|
157
|
+
```ts
|
|
158
|
+
new WebMcpPlugin({
|
|
159
|
+
test: /\.tsx?$/,
|
|
160
|
+
include: ['src/tools', 'src/pages'],
|
|
161
|
+
alias: {
|
|
162
|
+
'@tools': path.resolve(__dirname, 'src/tools'),
|
|
163
|
+
},
|
|
164
|
+
});
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
> **注意**:Webpack 的 `RuleSetRule.include` 使用绝对路径前缀匹配,**不支持 glob**;相对路径会自动按 `compiler.context` 解析为绝对路径。
|
|
168
|
+
|
|
169
|
+
## 生态包
|
|
170
|
+
|
|
171
|
+
| 包 | 用途 |
|
|
172
|
+
| ------------------------------------------------------------------------------------------ | ----------------------------------------------------- |
|
|
173
|
+
| [`webmcp-nexus-sdk`](https://www.npmjs.com/package/webmcp-nexus-sdk) | 运行时 SDK,提供 `registerGlobalTools` / `useWebMcpTools` |
|
|
174
|
+
| [`webmcp-nexus-core`](https://www.npmjs.com/package/webmcp-nexus-core) | 构建时核心:TS 类型抽取 + JSON Schema 生成 |
|
|
175
|
+
| [`vite-plugin-webmcp-nexus`](https://www.npmjs.com/package/vite-plugin-webmcp-nexus) | Vite 构建插件(如果你使用 Vite) |
|
|
176
|
+
| **`webpack-plugin-webmcp-nexus`** (本包) | Webpack 构建插件 |
|
|
177
|
+
|
|
178
|
+
## 相关链接
|
|
179
|
+
|
|
180
|
+
- 📦 **GitHub 主仓库**:[alibaba/webmcp-nexus](https://github.com/alibaba/webmcp-nexus)
|
|
181
|
+
- 📖 **完整文档**:[README](https://github.com/alibaba/webmcp-nexus#readme)
|
|
182
|
+
- 🎯 **示例应用**:[apps/demo](https://github.com/alibaba/webmcp-nexus/tree/main/apps/demo) —— Vite + Webpack 双构建完整示例
|
|
183
|
+
- 🌐 **WebMCP 标准**:[webmcp.org](https://webmcp.org)
|
|
184
|
+
- 🐛 **Issues**:[GitHub Issues](https://github.com/alibaba/webmcp-nexus/issues)
|
|
185
|
+
|
|
186
|
+
## 许可证
|
|
187
|
+
|
|
188
|
+
[MIT](https://github.com/alibaba/webmcp-nexus/blob/main/LICENSE) © Alibaba
|
package/package.json
CHANGED
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webpack-plugin-webmcp-nexus",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Webpack plugin for WebMCP - auto-injects
|
|
3
|
+
"version": "0.1.10",
|
|
4
|
+
"description": "Webpack plugin for WebMCP Nexus - auto-generates and injects JSON Schema from TypeScript tool definitions at build time",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"webmcp",
|
|
8
|
+
"mcp",
|
|
9
|
+
"model-context-protocol",
|
|
10
|
+
"webpack",
|
|
11
|
+
"webpack-plugin",
|
|
12
|
+
"ai-tools",
|
|
13
|
+
"typescript",
|
|
14
|
+
"build-plugin"
|
|
15
|
+
],
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/alibaba/webmcp-nexus.git",
|
|
19
|
+
"directory": "packages/webpack-plugin-webmcp"
|
|
20
|
+
},
|
|
5
21
|
"main": "./dist/index.js",
|
|
6
22
|
"module": "./dist/index.mjs",
|
|
7
23
|
"types": "./dist/index.d.ts",
|
|
@@ -21,7 +37,7 @@
|
|
|
21
37
|
"dist"
|
|
22
38
|
],
|
|
23
39
|
"dependencies": {
|
|
24
|
-
"webmcp-nexus-core": "0.1.
|
|
40
|
+
"webmcp-nexus-core": "0.1.10"
|
|
25
41
|
},
|
|
26
42
|
"peerDependencies": {
|
|
27
43
|
"webpack": "^5.0.0"
|