webmcp-nexus-core 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 +178 -0
- package/README.md +178 -0
- package/package.json +18 -1
package/README.en.md
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
# webmcp-nexus-core
|
|
4
|
+
|
|
5
|
+
**The build-time core of WebMCP Nexus — a `ts-morph`-powered engine for TypeScript type extraction and JSON Schema generation.**
|
|
6
|
+
|
|
7
|
+
[](https://www.npmjs.com/package/webmcp-nexus-core)
|
|
8
|
+
[](https://www.npmjs.com/package/webmcp-nexus-core)
|
|
9
|
+
[](https://github.com/alibaba/webmcp-nexus/blob/main/LICENSE)
|
|
10
|
+
|
|
11
|
+
[简体中文](https://github.com/alibaba/webmcp-nexus/blob/main/packages/webmcp-core/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
|
+
- [API Overview](#api-overview)
|
|
25
|
+
- [Ecosystem](#ecosystem)
|
|
26
|
+
- [Links](#links)
|
|
27
|
+
- [License](#license)
|
|
28
|
+
|
|
29
|
+
## Introduction
|
|
30
|
+
|
|
31
|
+
`webmcp-nexus-core` is the **build-time core** of the [WebMCP Nexus](https://github.com/alibaba/webmcp-nexus) toolchain. It is responsible for:
|
|
32
|
+
|
|
33
|
+
1. Statically analysing source code via [`ts-morph`](https://ts-morph.com/) to find functions intended as WebMCP tools;
|
|
34
|
+
2. Inferring [JSON Schema](https://json-schema.org/)-compliant tool descriptions from each function's **TypeScript types and JSDoc**;
|
|
35
|
+
3. Generating injection code that attaches a `__webmcpSchema` field to each tool function — at runtime the SDK reads that field and registers the tools with `navigator.modelContext`.
|
|
36
|
+
|
|
37
|
+
This package is **not intended to be consumed directly by application authors**. It is the shared engine behind [`vite-plugin-webmcp-nexus`](https://www.npmjs.com/package/vite-plugin-webmcp-nexus) and [`webpack-plugin-webmcp-nexus`](https://www.npmjs.com/package/webpack-plugin-webmcp-nexus). If you are building a **custom build-tool integration** (Rspack, Rollup, esbuild, …) you can reuse this package directly.
|
|
38
|
+
|
|
39
|
+
## Features
|
|
40
|
+
|
|
41
|
+
- 🔬 **`ts-morph`-driven static type analysis** — function signature *is* the JSON Schema; one source of truth.
|
|
42
|
+
- 🪶 **Zero runtime overhead** — schemas are generated at build time; no reflection or parsing at runtime.
|
|
43
|
+
- 📦 **Bundler-agnostic and reusable** — exposes a pure functional `transformCode(code, filePath, options?)` interface.
|
|
44
|
+
- 🔁 **Reverse tracing** — traces back from `registerGlobalTools` / `useWebMcpTools` call sites to the function definitions; tool functions themselves require no markers.
|
|
45
|
+
- 🧩 **Rich TypeScript support** — primitives, literal unions (→ `enum`), optional properties, nested objects (recursion ≤ 3 levels), and more.
|
|
46
|
+
- 🛠️ **Alias resolution** — handles `import * as api from '@alias/xxx'` style module specifiers (compatible with webpack `$` exact-match syntax).
|
|
47
|
+
|
|
48
|
+
## Why Use It
|
|
49
|
+
|
|
50
|
+
| Dimension | Common practice | webmcp-nexus-core |
|
|
51
|
+
| ---------------------- | ---------------------------------------------- | ------------------------------------------------------------------ |
|
|
52
|
+
| Schema source | Hand-written JSON Schema + TS types in sync | **Inferred from TS types automatically** — one source of truth |
|
|
53
|
+
| Runtime cost | Decorators / reflection / wrappers | **Zero runtime cost** — all schemas are injected at build time |
|
|
54
|
+
| Bundler coupling | Tightly coupled to a specific bundler | **Bundler-agnostic** — pure-functional core, reusable across tools |
|
|
55
|
+
| Type drift | Manual sync between TS types and JSON Schema | TS types are authoritative; the editor catches drift in real time |
|
|
56
|
+
|
|
57
|
+
## Installation
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# pnpm (recommended)
|
|
61
|
+
pnpm add webmcp-nexus-core
|
|
62
|
+
|
|
63
|
+
# npm
|
|
64
|
+
npm install webmcp-nexus-core
|
|
65
|
+
|
|
66
|
+
# yarn
|
|
67
|
+
yarn add webmcp-nexus-core
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
> Most users **don't** need to install this package directly; it is pulled in automatically as a dependency of [`vite-plugin-webmcp-nexus`](https://www.npmjs.com/package/vite-plugin-webmcp-nexus) and [`webpack-plugin-webmcp-nexus`](https://www.npmjs.com/package/webpack-plugin-webmcp-nexus).
|
|
71
|
+
|
|
72
|
+
## Usage
|
|
73
|
+
|
|
74
|
+
### Calling from a custom build tool
|
|
75
|
+
|
|
76
|
+
> **Important**: `transformCode` only processes source files that **contain a `registerGlobalTools` / `useWebMcpTools` call** — it traces back from those calls to the tool function definitions. The injected code is inserted before the first registration call, not into the tool function's own file.
|
|
77
|
+
|
|
78
|
+
```ts
|
|
79
|
+
import { transformCode } from 'webmcp-nexus-core';
|
|
80
|
+
|
|
81
|
+
// Example: contents of an entry file like src/main.ts
|
|
82
|
+
const code = `
|
|
83
|
+
import { registerGlobalTools } from 'webmcp-nexus-sdk';
|
|
84
|
+
import * as queries from './tools/queries';
|
|
85
|
+
|
|
86
|
+
registerGlobalTools(queries);
|
|
87
|
+
`;
|
|
88
|
+
|
|
89
|
+
const result = transformCode(code, '/abs/path/to/project/src/main.ts', {
|
|
90
|
+
projectRoot: '/abs/path/to/project',
|
|
91
|
+
alias: { '@': '/abs/path/to/project/src' },
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
if (result.transformed) {
|
|
95
|
+
// result.code now has __webmcpSchema injected for each queries.* tool, before the registerGlobalTools call
|
|
96
|
+
console.log(result.code);
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Sample injection output (from [`generateSchemaInjectionCode`](https://github.com/alibaba/webmcp-nexus/blob/main/packages/webmcp-core/src/schema-generator.ts)):
|
|
101
|
+
|
|
102
|
+
```ts
|
|
103
|
+
import { registerGlobalTools } from 'webmcp-nexus-sdk';
|
|
104
|
+
import * as queries from './tools/queries';
|
|
105
|
+
|
|
106
|
+
// [webmcp-nexus-core] build-time injected schema metadata
|
|
107
|
+
queries.searchTasks.__webmcpSchema = {
|
|
108
|
+
"description": "Search tasks by keyword.",
|
|
109
|
+
"inputSchema": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"properties": {
|
|
112
|
+
"query": { "type": "string", "description": "Search keyword" },
|
|
113
|
+
"limit": { "type": "number", "description": "Maximum number of results (default 50)" }
|
|
114
|
+
},
|
|
115
|
+
"required": ["query"]
|
|
116
|
+
},
|
|
117
|
+
"readOnly": true
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
registerGlobalTools(queries);
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
> The injected schema contains only three fields: `description`, `inputSchema`, and `readOnly`. At runtime, [`webmcp-nexus-sdk`](https://www.npmjs.com/package/webmcp-nexus-sdk) reads it and translates it into the format expected by `navigator.modelContext.registerTool()` (e.g. `readOnly` → `annotations.readOnlyHint`).
|
|
124
|
+
|
|
125
|
+
## API Overview
|
|
126
|
+
|
|
127
|
+
```ts
|
|
128
|
+
// High-level API: extract + inject in one call
|
|
129
|
+
export function transformCode(
|
|
130
|
+
code: string,
|
|
131
|
+
filePath: string,
|
|
132
|
+
options?: TransformOptions
|
|
133
|
+
): TransformResult;
|
|
134
|
+
|
|
135
|
+
// Low-level API (advanced users)
|
|
136
|
+
export function extractToolsFromFile(
|
|
137
|
+
fileContent: string,
|
|
138
|
+
filePath: string,
|
|
139
|
+
projectRoot?: string,
|
|
140
|
+
alias?: AliasMap
|
|
141
|
+
): ExtractionResult | null;
|
|
142
|
+
|
|
143
|
+
export function generateSchema(
|
|
144
|
+
properties: PropertyInfo[],
|
|
145
|
+
description?: string
|
|
146
|
+
): JsonSchema;
|
|
147
|
+
|
|
148
|
+
export function generateSchemaInjectionCode(
|
|
149
|
+
injectionTarget: string,
|
|
150
|
+
description: string,
|
|
151
|
+
properties: PropertyInfo[],
|
|
152
|
+
readOnly: boolean
|
|
153
|
+
): string;
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
See [packages/webmcp-core/src/index.ts](https://github.com/alibaba/webmcp-nexus/blob/main/packages/webmcp-core/src/index.ts) for the full surface.
|
|
157
|
+
|
|
158
|
+
## Ecosystem
|
|
159
|
+
|
|
160
|
+
`webmcp-nexus-core` is part of the WebMCP Nexus toolchain. The full set of published packages:
|
|
161
|
+
|
|
162
|
+
| Package | Purpose |
|
|
163
|
+
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------- |
|
|
164
|
+
| [`webmcp-nexus-sdk`](https://www.npmjs.com/package/webmcp-nexus-sdk) | Runtime SDK exposing `registerGlobalTools` / `useWebMcpTools` |
|
|
165
|
+
| **`webmcp-nexus-core`** (this package) | Build-time core: TS extraction + JSON Schema generation |
|
|
166
|
+
| [`vite-plugin-webmcp-nexus`](https://www.npmjs.com/package/vite-plugin-webmcp-nexus) | Vite build plugin (built on this package) |
|
|
167
|
+
| [`webpack-plugin-webmcp-nexus`](https://www.npmjs.com/package/webpack-plugin-webmcp-nexus) | Webpack build plugin (built on this package) |
|
|
168
|
+
|
|
169
|
+
## Links
|
|
170
|
+
|
|
171
|
+
- 📦 **Main repo on GitHub**: [alibaba/webmcp-nexus](https://github.com/alibaba/webmcp-nexus)
|
|
172
|
+
- 📖 **Full documentation**: [README](https://github.com/alibaba/webmcp-nexus#readme)
|
|
173
|
+
- 🌐 **WebMCP standard**: [webmcp.org](https://webmcp.org)
|
|
174
|
+
- 🐛 **Issues**: [GitHub Issues](https://github.com/alibaba/webmcp-nexus/issues)
|
|
175
|
+
|
|
176
|
+
## License
|
|
177
|
+
|
|
178
|
+
[MIT](https://github.com/alibaba/webmcp-nexus/blob/main/LICENSE) © Alibaba
|
package/README.md
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
# webmcp-nexus-core
|
|
4
|
+
|
|
5
|
+
**WebMCP Nexus 的构建时核心 —— 基于 `ts-morph` 的 TypeScript 类型抽取与 JSON Schema 生成引擎。**
|
|
6
|
+
|
|
7
|
+
[](https://www.npmjs.com/package/webmcp-nexus-core)
|
|
8
|
+
[](https://www.npmjs.com/package/webmcp-nexus-core)
|
|
9
|
+
[](https://github.com/alibaba/webmcp-nexus/blob/main/LICENSE)
|
|
10
|
+
|
|
11
|
+
简体中文 | [English](https://github.com/alibaba/webmcp-nexus/blob/main/packages/webmcp-core/README.en.md)
|
|
12
|
+
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## 目录
|
|
18
|
+
|
|
19
|
+
- [简介](#简介)
|
|
20
|
+
- [核心特性](#核心特性)
|
|
21
|
+
- [优势](#优势)
|
|
22
|
+
- [安装](#安装)
|
|
23
|
+
- [使用示例](#使用示例)
|
|
24
|
+
- [API 概览](#api-概览)
|
|
25
|
+
- [生态包](#生态包)
|
|
26
|
+
- [相关链接](#相关链接)
|
|
27
|
+
- [许可证](#许可证)
|
|
28
|
+
|
|
29
|
+
## 简介
|
|
30
|
+
|
|
31
|
+
`webmcp-nexus-core` 是 [WebMCP Nexus](https://github.com/alibaba/webmcp-nexus) 工具链的**构建时核心包**,负责:
|
|
32
|
+
|
|
33
|
+
1. 使用 [`ts-morph`](https://ts-morph.com/) 静态分析源码中标记为 WebMCP 工具的函数;
|
|
34
|
+
2. 从函数的 **TypeScript 类型 + JSDoc** 反推出符合 [JSON Schema](https://json-schema.org/) 的工具描述;
|
|
35
|
+
3. 生成注入代码,在每个工具函数对象上挂载 `__webmcpSchema` 字段,供运行时 SDK 读取并注册到 `navigator.modelContext`。
|
|
36
|
+
|
|
37
|
+
它本身**不是给最终用户直接使用的包**,而是被 [`vite-plugin-webmcp-nexus`](https://www.npmjs.com/package/vite-plugin-webmcp-nexus) 与 [`webpack-plugin-webmcp-nexus`](https://www.npmjs.com/package/webpack-plugin-webmcp-nexus) 共享的底层引擎。如果你正在编写**自定义的构建工具集成**(如 Rspack、Rollup、esbuild 插件),可以直接复用这个包。
|
|
38
|
+
|
|
39
|
+
## 核心特性
|
|
40
|
+
|
|
41
|
+
- 🔬 **基于 `ts-morph` 的静态类型分析** —— 函数签名 = JSON Schema,单一事实源。
|
|
42
|
+
- 🪶 **零运行时开销** —— 所有 schema 在构建时生成,运行时无任何反射 / 解析成本。
|
|
43
|
+
- 📦 **独立可复用** —— 与具体打包器解耦,提供纯函数式 `transformCode(code, filePath, options?)` 接口。
|
|
44
|
+
- 🔁 **逆向追踪** —— 从 `registerGlobalTools` / `useWebMcpTools` 的调用点向上追溯到函数定义,工具函数本身不需要任何标记。
|
|
45
|
+
- 🧩 **支持丰富的 TypeScript 类型** —— 基础类型、字面量联合(→ `enum`)、可选属性、嵌套对象(递归 ≤3 层)等。
|
|
46
|
+
- 🛠️ **Alias 解析** —— 支持 `import * as api from '@alias/xxx'` 形式的模块说明符解析(兼容 webpack `$` 精确匹配语法)。
|
|
47
|
+
|
|
48
|
+
## 优势
|
|
49
|
+
|
|
50
|
+
| 维度 | 业内常见做法 | webmcp-nexus-core |
|
|
51
|
+
| ---------- | ----------------------------- | ----------------------------------------- |
|
|
52
|
+
| Schema 来源 | 手写 JSON Schema 与 TS 类型双源维护 | **基于 TS 类型自动反推**,单一事实源 |
|
|
53
|
+
| 运行时成本 | 装饰器 / 反射 / 包装函数 | **零运行时开销**——所有 schema 构建期注入 |
|
|
54
|
+
| 生态绑定 | 通常与某一打包器深度耦合 | **打包器无关**——核心算法纯函数式可复用 |
|
|
55
|
+
| 类型变更同步 | 需手动维护类型与 schema 一致 | TS 类型即权威源,编辑器即时反馈 |
|
|
56
|
+
|
|
57
|
+
## 安装
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# pnpm(推荐)
|
|
61
|
+
pnpm add webmcp-nexus-core
|
|
62
|
+
|
|
63
|
+
# npm
|
|
64
|
+
npm install webmcp-nexus-core
|
|
65
|
+
|
|
66
|
+
# yarn
|
|
67
|
+
yarn add webmcp-nexus-core
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
> 大多数用户**不需要**直接安装这个包;安装 [`vite-plugin-webmcp-nexus`](https://www.npmjs.com/package/vite-plugin-webmcp-nexus) 或 [`webpack-plugin-webmcp-nexus`](https://www.npmjs.com/package/webpack-plugin-webmcp-nexus) 时它会作为依赖自动引入。
|
|
71
|
+
|
|
72
|
+
## 使用示例
|
|
73
|
+
|
|
74
|
+
### 在自定义构建工具中调用
|
|
75
|
+
|
|
76
|
+
> **重要**:`transformCode` 仅会处理**包含 `registerGlobalTools` / `useWebMcpTools` 调用**的源文件,并从这些调用向上追溯到工具函数定义。注入代码会插入在第一个注册调用之前,而不是工具函数定义文件中。
|
|
77
|
+
|
|
78
|
+
```ts
|
|
79
|
+
import { transformCode } from 'webmcp-nexus-core';
|
|
80
|
+
|
|
81
|
+
// 假设这是项目入口文件 src/main.ts 的内容
|
|
82
|
+
const code = `
|
|
83
|
+
import { registerGlobalTools } from 'webmcp-nexus-sdk';
|
|
84
|
+
import * as queries from './tools/queries';
|
|
85
|
+
|
|
86
|
+
registerGlobalTools(queries);
|
|
87
|
+
`;
|
|
88
|
+
|
|
89
|
+
const result = transformCode(code, '/abs/path/to/project/src/main.ts', {
|
|
90
|
+
projectRoot: '/abs/path/to/project',
|
|
91
|
+
alias: { '@': '/abs/path/to/project/src' },
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
if (result.transformed) {
|
|
95
|
+
// result.code 在 registerGlobalTools 调用之前注入了 queries.* 各函数的 __webmcpSchema
|
|
96
|
+
console.log(result.code);
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
注入产物(示意,来自 [`generateSchemaInjectionCode`](https://github.com/alibaba/webmcp-nexus/blob/main/packages/webmcp-core/src/schema-generator.ts)):
|
|
101
|
+
|
|
102
|
+
```ts
|
|
103
|
+
import { registerGlobalTools } from 'webmcp-nexus-sdk';
|
|
104
|
+
import * as queries from './tools/queries';
|
|
105
|
+
|
|
106
|
+
// [webmcp-nexus-core] 构建时注入的 schema 元数据
|
|
107
|
+
queries.searchTasks.__webmcpSchema = {
|
|
108
|
+
"description": "根据关键词搜索任务。",
|
|
109
|
+
"inputSchema": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"properties": {
|
|
112
|
+
"query": { "type": "string", "description": "搜索关键词" },
|
|
113
|
+
"limit": { "type": "number", "description": "返回数量上限(默认 50)" }
|
|
114
|
+
},
|
|
115
|
+
"required": ["query"]
|
|
116
|
+
},
|
|
117
|
+
"readOnly": true
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
registerGlobalTools(queries);
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
> 注入的 schema 仅含 `description` / `inputSchema` / `readOnly` 三个字段。运行时由 [`webmcp-nexus-sdk`](https://www.npmjs.com/package/webmcp-nexus-sdk) 读取并转换为 `navigator.modelContext.registerTool()` 所需的格式(如 `readOnly` → `annotations.readOnlyHint`)。
|
|
124
|
+
|
|
125
|
+
## API 概览
|
|
126
|
+
|
|
127
|
+
```ts
|
|
128
|
+
// 高层 API:一次性完成提取 + 注入
|
|
129
|
+
export function transformCode(
|
|
130
|
+
code: string,
|
|
131
|
+
filePath: string,
|
|
132
|
+
options?: TransformOptions
|
|
133
|
+
): TransformResult;
|
|
134
|
+
|
|
135
|
+
// 底层 API(高级用户)
|
|
136
|
+
export function extractToolsFromFile(
|
|
137
|
+
fileContent: string,
|
|
138
|
+
filePath: string,
|
|
139
|
+
projectRoot?: string,
|
|
140
|
+
alias?: AliasMap
|
|
141
|
+
): ExtractionResult | null;
|
|
142
|
+
|
|
143
|
+
export function generateSchema(
|
|
144
|
+
properties: PropertyInfo[],
|
|
145
|
+
description?: string
|
|
146
|
+
): JsonSchema;
|
|
147
|
+
|
|
148
|
+
export function generateSchemaInjectionCode(
|
|
149
|
+
injectionTarget: string,
|
|
150
|
+
description: string,
|
|
151
|
+
properties: PropertyInfo[],
|
|
152
|
+
readOnly: boolean
|
|
153
|
+
): string;
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
详见 [packages/webmcp-core/src/index.ts](https://github.com/alibaba/webmcp-nexus/blob/main/packages/webmcp-core/src/index.ts)。
|
|
157
|
+
|
|
158
|
+
## 生态包
|
|
159
|
+
|
|
160
|
+
`webmcp-nexus-core` 是 WebMCP Nexus 工具链的一部分。完整的发布包列表:
|
|
161
|
+
|
|
162
|
+
| 包 | 用途 |
|
|
163
|
+
| ------------------------------------------------------------------------------------------ | ----------------------------------------------------- |
|
|
164
|
+
| [`webmcp-nexus-sdk`](https://www.npmjs.com/package/webmcp-nexus-sdk) | 运行时 SDK,提供 `registerGlobalTools` / `useWebMcpTools` |
|
|
165
|
+
| **`webmcp-nexus-core`** (本包) | 构建时核心:TS 类型抽取 + JSON Schema 生成 |
|
|
166
|
+
| [`vite-plugin-webmcp-nexus`](https://www.npmjs.com/package/vite-plugin-webmcp-nexus) | Vite 构建插件(基于本包) |
|
|
167
|
+
| [`webpack-plugin-webmcp-nexus`](https://www.npmjs.com/package/webpack-plugin-webmcp-nexus) | Webpack 构建插件(基于本包) |
|
|
168
|
+
|
|
169
|
+
## 相关链接
|
|
170
|
+
|
|
171
|
+
- 📦 **GitHub 主仓库**:[alibaba/webmcp-nexus](https://github.com/alibaba/webmcp-nexus)
|
|
172
|
+
- 📖 **完整文档**:[README](https://github.com/alibaba/webmcp-nexus#readme)
|
|
173
|
+
- 🌐 **WebMCP 标准**:[webmcp.org](https://webmcp.org)
|
|
174
|
+
- 🐛 **Issues**:[GitHub Issues](https://github.com/alibaba/webmcp-nexus/issues)
|
|
175
|
+
|
|
176
|
+
## 许可证
|
|
177
|
+
|
|
178
|
+
[MIT](https://github.com/alibaba/webmcp-nexus/blob/main/LICENSE) © Alibaba
|
package/package.json
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webmcp-nexus-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Core logic for WebMCP build plugins - TypeScript type extraction and JSON Schema generation",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"webmcp",
|
|
8
|
+
"mcp",
|
|
9
|
+
"model-context-protocol",
|
|
10
|
+
"ai-tools",
|
|
11
|
+
"typescript",
|
|
12
|
+
"json-schema",
|
|
13
|
+
"type-extraction",
|
|
14
|
+
"build-plugin"
|
|
15
|
+
],
|
|
16
|
+
"homepage": "https://github.com/alibaba/webmcp-nexus/tree/main/packages/webmcp-core",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/alibaba/webmcp-nexus.git",
|
|
20
|
+
"directory": "packages/webmcp-core"
|
|
21
|
+
},
|
|
5
22
|
"type": "module",
|
|
6
23
|
"main": "./dist/index.cjs",
|
|
7
24
|
"module": "./dist/index.js",
|