@nebutra/mcp 2.0.0 → 4.0.0
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/CHANGELOG.md +22 -0
- package/dist/{chunk-7A2G4AGA.js → chunk-ZTLLKBBG.js} +14 -8
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @nebutra/mcp
|
|
2
2
|
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies []:
|
|
8
|
+
- @nebutra/capability-kit@4.0.0
|
|
9
|
+
- @nebutra/errors@4.0.0
|
|
10
|
+
- @nebutra/event-log@4.0.0
|
|
11
|
+
- @nebutra/trace-store@4.0.0
|
|
12
|
+
- @nebutra/ui@4.0.0
|
|
13
|
+
|
|
14
|
+
## 3.0.0
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies []:
|
|
19
|
+
- @nebutra/capability-kit@3.0.0
|
|
20
|
+
- @nebutra/errors@3.0.0
|
|
21
|
+
- @nebutra/event-log@3.0.0
|
|
22
|
+
- @nebutra/trace-store@3.0.0
|
|
23
|
+
- @nebutra/ui@3.0.0
|
|
24
|
+
|
|
3
25
|
## 2.0.0
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -542,12 +542,11 @@ var toolConsentStore = new InMemoryToolConsentStore();
|
|
|
542
542
|
var mcpHost = new McpHost({ consent: toolConsentStore });
|
|
543
543
|
|
|
544
544
|
// src/server/uiAgentServer.ts
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
} from "@nebutra/ui/agent";
|
|
545
|
+
var uiAgentModule;
|
|
546
|
+
function loadUiAgent() {
|
|
547
|
+
uiAgentModule ??= import("@nebutra/ui/agent");
|
|
548
|
+
return uiAgentModule;
|
|
549
|
+
}
|
|
551
550
|
function readContractOptions(args) {
|
|
552
551
|
const options = {
|
|
553
552
|
root: typeof args.root === "string" ? args.root : process.cwd()
|
|
@@ -564,7 +563,8 @@ function readName(args) {
|
|
|
564
563
|
}
|
|
565
564
|
return name;
|
|
566
565
|
}
|
|
567
|
-
function validateAll(args) {
|
|
566
|
+
async function validateAll(args) {
|
|
567
|
+
const { loadAgentComponentContract, loadAgentManifest, validateAgentComponent } = await loadUiAgent();
|
|
568
568
|
const options = readContractOptions(args);
|
|
569
569
|
const manifest = loadAgentManifest(options);
|
|
570
570
|
const results = manifest.components.map(
|
|
@@ -652,6 +652,7 @@ function createUiAgentMcpServer() {
|
|
|
652
652
|
],
|
|
653
653
|
handlers: {
|
|
654
654
|
nebutra_ui_search_components: async (args) => {
|
|
655
|
+
const { loadAgentManifest, searchAgentComponents } = await loadUiAgent();
|
|
655
656
|
const manifest = loadAgentManifest(readContractOptions(args));
|
|
656
657
|
const searchOptions = {
|
|
657
658
|
limit: typeof args.limit === "number" ? args.limit : 20,
|
|
@@ -668,8 +669,12 @@ function createUiAgentMcpServer() {
|
|
|
668
669
|
searchOptions
|
|
669
670
|
);
|
|
670
671
|
},
|
|
671
|
-
nebutra_ui_get_component: async (args) =>
|
|
672
|
+
nebutra_ui_get_component: async (args) => {
|
|
673
|
+
const { loadAgentComponentContract } = await loadUiAgent();
|
|
674
|
+
return loadAgentComponentContract(readName(args), readContractOptions(args));
|
|
675
|
+
},
|
|
672
676
|
nebutra_ui_validate_component: async (args) => {
|
|
677
|
+
const { loadAgentComponentContract, validateAgentComponent } = await loadUiAgent();
|
|
673
678
|
if (typeof args.name === "string" && args.name.trim().length > 0) {
|
|
674
679
|
return validateAgentComponent(
|
|
675
680
|
loadAgentComponentContract(args.name, readContractOptions(args))
|
|
@@ -678,6 +683,7 @@ function createUiAgentMcpServer() {
|
|
|
678
683
|
return validateAll(args);
|
|
679
684
|
},
|
|
680
685
|
nebutra_ui_get_migration_hints: async (args) => {
|
|
686
|
+
const { loadAgentComponentContract } = await loadUiAgent();
|
|
681
687
|
const contract = loadAgentComponentContract(readName(args), readContractOptions(args));
|
|
682
688
|
return {
|
|
683
689
|
component: contract.name,
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nebutra/mcp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
44
44
|
"zod": "^4.3.6",
|
|
45
|
-
"@nebutra/capability-kit": "
|
|
46
|
-
"@nebutra/errors": "
|
|
47
|
-
"@nebutra/event-log": "
|
|
48
|
-
"@nebutra/trace-store": "
|
|
45
|
+
"@nebutra/capability-kit": "4.0.0",
|
|
46
|
+
"@nebutra/errors": "4.0.0",
|
|
47
|
+
"@nebutra/event-log": "4.0.0",
|
|
48
|
+
"@nebutra/trace-store": "4.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"tsup": "^8.5.1",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"CHANGELOG.md"
|
|
73
73
|
],
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@nebutra/ui": "
|
|
75
|
+
"@nebutra/ui": "4.0.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependenciesMeta": {
|
|
78
78
|
"@nebutra/ui": {
|