@nebutra/mcp 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.
- package/.turbo/turbo-build.log +4 -4
- package/.turbo/turbo-test.log +4 -4
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +12 -1
- package/README.md +2 -0
- package/dist/{chunk-ORGYGQJV.js → chunk-73DKWF2B.js} +8 -15
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +7 -5
- package/src/debug.ts +8 -19
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @nebutra/mcp@0.1.
|
|
2
|
+
> @nebutra/mcp@0.1.2 build /home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/ai/mcp
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/cli.ts, src/index.ts, src/server/contextServer.ts
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[32mESM[39m [1mdist/cli.js [22m[32m1.47 KB[39m
|
|
13
13
|
[32mESM[39m [1mdist/index.js [22m[32m883.00 B[39m
|
|
14
|
-
[32mESM[39m [1mdist/chunk-
|
|
14
|
+
[32mESM[39m [1mdist/chunk-73DKWF2B.js [22m[32m21.80 KB[39m
|
|
15
15
|
[32mESM[39m [1mdist/server/contextServer.js [22m[32m176.00 B[39m
|
|
16
16
|
[32mESM[39m [1mdist/chunk-YMTQFRV2.js [22m[32m5.25 KB[39m
|
|
17
|
-
[32mESM[39m ⚡️ Build success in
|
|
17
|
+
[32mESM[39m ⚡️ Build success in 135ms
|
|
18
18
|
[34mDTS[39m Build start
|
|
19
|
-
[32mDTS[39m ⚡️ Build success in
|
|
19
|
+
[32mDTS[39m ⚡️ Build success in 30293ms
|
|
20
20
|
[32mDTS[39m [1mdist/cli.d.ts [22m[32m13.00 B[39m
|
|
21
21
|
[32mDTS[39m [1mdist/server/contextServer.d.ts [22m[32m1.43 KB[39m
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m11.64 KB[39m
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
> @nebutra/mcp@0.1.
|
|
2
|
+
> @nebutra/mcp@0.1.2 test /home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/ai/mcp
|
|
3
3
|
> vitest run
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
[1m[30m[46m RUN [49m[39m[22m [36mv4.1.4 [39m[90m/home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/ai/mcp[39m
|
|
7
7
|
|
|
8
|
-
[32m✓[39m src/__tests__/registry-and-context.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m
|
|
8
|
+
[32m✓[39m src/__tests__/registry-and-context.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 78[2mms[22m[39m
|
|
9
9
|
|
|
10
10
|
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
11
11
|
[2m Tests [22m [1m[32m4 passed[39m[22m[90m (4)[39m
|
|
12
|
-
[2m Start at [22m
|
|
13
|
-
[2m Duration [22m
|
|
12
|
+
[2m Start at [22m 08:15:16
|
|
13
|
+
[2m Duration [22m 2.69s[2m (transform 862ms, setup 0ms, import 1.71s, tests 78ms, environment 0ms)[22m
|
|
14
14
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
# @nebutra/mcp
|
|
2
2
|
|
|
3
|
+
## 0.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Publish registry package metadata under the MIT license.
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @nebutra/capability-kit@0.2.1
|
|
11
|
+
- @nebutra/errors@0.1.1
|
|
12
|
+
- @nebutra/event-log@0.1.1
|
|
13
|
+
- @nebutra/trace-store@0.1.1
|
|
14
|
+
|
|
3
15
|
## 0.1.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
19
|
- [`5d3d7e6`](https://github.com/Nebutra/Nebutra-Sailor/commit/5d3d7e6c59cae5aa242bb988b75a9888cfd0db39) Thanks [@TsekaLuk](https://github.com/TsekaLuk)! - Harden production-readiness seams for published platform packages.
|
|
8
|
-
|
|
9
20
|
- Billing entitlement checks now account for pending requested usage before allowing quota-bound operations.
|
|
10
21
|
- Tenant JWT resolution now supports bearer-token extraction and typed request-compatible resolver inputs.
|
|
11
22
|
- Permissions OpenFGA support now targets store-scoped REST endpoints with auth token support and fail-closed checks.
|
package/README.md
CHANGED
|
@@ -295,26 +295,19 @@ var InMemoryToolConsentStore = class {
|
|
|
295
295
|
};
|
|
296
296
|
|
|
297
297
|
// src/debug.ts
|
|
298
|
-
import {
|
|
299
|
-
|
|
298
|
+
import {
|
|
299
|
+
appendCapabilityDebug,
|
|
300
|
+
capabilityDebugPath,
|
|
301
|
+
readCapabilityDebug
|
|
302
|
+
} from "@nebutra/capability-kit/debug";
|
|
300
303
|
function toolDebugPath() {
|
|
301
|
-
return
|
|
304
|
+
return capabilityDebugPath("tool-protocol");
|
|
302
305
|
}
|
|
303
306
|
async function appendToolDebug(entry) {
|
|
304
|
-
|
|
305
|
-
await mkdir(dirname(path), { recursive: true });
|
|
306
|
-
await writeFile(path, `${JSON.stringify({ at: (/* @__PURE__ */ new Date()).toISOString(), ...entry })}
|
|
307
|
-
`, {
|
|
308
|
-
flag: "a"
|
|
309
|
-
});
|
|
307
|
+
await appendCapabilityDebug("tool-protocol", entry);
|
|
310
308
|
}
|
|
311
309
|
async function readToolDebug(limit = 10) {
|
|
312
|
-
|
|
313
|
-
const raw = await readFile(toolDebugPath(), "utf8");
|
|
314
|
-
return raw.trim().split("\n").filter(Boolean).slice(-limit).map((line) => JSON.parse(line));
|
|
315
|
-
} catch {
|
|
316
|
-
return [];
|
|
317
|
-
}
|
|
310
|
+
return readCapabilityDebug("tool-protocol", { limit });
|
|
318
311
|
}
|
|
319
312
|
|
|
320
313
|
// src/host.ts
|
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": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"featureId": "mcp",
|
|
19
19
|
"category": "ai",
|
|
20
|
+
"surface": "tool-protocol",
|
|
20
21
|
"summary": "MCP server primitives (Model Context Protocol)"
|
|
21
22
|
},
|
|
22
23
|
"main": "./src/index.ts",
|
|
@@ -32,11 +33,12 @@
|
|
|
32
33
|
"nebutra-tool-protocol": "./dist/cli.js"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@modelcontextprotocol/sdk": "1.
|
|
36
|
+
"@modelcontextprotocol/sdk": "1.29.0",
|
|
36
37
|
"zod": "^4.3.6",
|
|
37
|
-
"@nebutra/
|
|
38
|
-
"@nebutra/
|
|
39
|
-
"@nebutra/
|
|
38
|
+
"@nebutra/capability-kit": "0.2.1",
|
|
39
|
+
"@nebutra/errors": "0.1.1",
|
|
40
|
+
"@nebutra/event-log": "0.1.1",
|
|
41
|
+
"@nebutra/trace-store": "0.1.1"
|
|
40
42
|
},
|
|
41
43
|
"devDependencies": {
|
|
42
44
|
"typescript": "^5.9.3"
|
package/src/debug.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
appendCapabilityDebug,
|
|
3
|
+
capabilityDebugPath,
|
|
4
|
+
readCapabilityDebug,
|
|
5
|
+
} from "@nebutra/capability-kit/debug";
|
|
3
6
|
|
|
4
7
|
export interface ToolDebugEntry {
|
|
5
8
|
readonly at: string;
|
|
@@ -15,29 +18,15 @@ export interface ToolDebugEntry {
|
|
|
15
18
|
}
|
|
16
19
|
|
|
17
20
|
export function toolDebugPath(): string {
|
|
18
|
-
return
|
|
21
|
+
return capabilityDebugPath("tool-protocol");
|
|
19
22
|
}
|
|
20
23
|
|
|
21
24
|
export async function appendToolDebug(
|
|
22
25
|
entry: Omit<ToolDebugEntry, "at"> & { at?: string },
|
|
23
26
|
): Promise<void> {
|
|
24
|
-
|
|
25
|
-
await mkdir(dirname(path), { recursive: true });
|
|
26
|
-
await writeFile(path, `${JSON.stringify({ at: new Date().toISOString(), ...entry })}\n`, {
|
|
27
|
-
flag: "a",
|
|
28
|
-
});
|
|
27
|
+
await appendCapabilityDebug("tool-protocol", entry);
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
export async function readToolDebug(limit = 10): Promise<ToolDebugEntry[]> {
|
|
32
|
-
|
|
33
|
-
const raw = await readFile(toolDebugPath(), "utf8");
|
|
34
|
-
return raw
|
|
35
|
-
.trim()
|
|
36
|
-
.split("\n")
|
|
37
|
-
.filter(Boolean)
|
|
38
|
-
.slice(-limit)
|
|
39
|
-
.map((line) => JSON.parse(line) as ToolDebugEntry);
|
|
40
|
-
} catch {
|
|
41
|
-
return [];
|
|
42
|
-
}
|
|
31
|
+
return readCapabilityDebug("tool-protocol", { limit }) as Promise<ToolDebugEntry[]>;
|
|
43
32
|
}
|