@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @nebutra/mcp@0.1.1 build /home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/ai/mcp
2
+ > @nebutra/mcp@0.1.2 build /home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/ai/mcp
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/cli.ts, src/index.ts, src/server/contextServer.ts
@@ -11,12 +11,12 @@
11
11
  ESM Build start
12
12
  ESM dist/cli.js 1.47 KB
13
13
  ESM dist/index.js 883.00 B
14
- ESM dist/chunk-ORGYGQJV.js 22.09 KB
14
+ ESM dist/chunk-73DKWF2B.js 21.80 KB
15
15
  ESM dist/server/contextServer.js 176.00 B
16
16
  ESM dist/chunk-YMTQFRV2.js 5.25 KB
17
- ESM ⚡️ Build success in 83ms
17
+ ESM ⚡️ Build success in 135ms
18
18
  DTS Build start
19
- DTS ⚡️ Build success in 15352ms
19
+ DTS ⚡️ Build success in 30293ms
20
20
  DTS dist/cli.d.ts 13.00 B
21
21
  DTS dist/server/contextServer.d.ts 1.43 KB
22
22
  DTS dist/index.d.ts 11.64 KB
@@ -1,14 +1,14 @@
1
1
 
2
- > @nebutra/mcp@0.1.1 test /home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/ai/mcp
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
   RUN  v4.1.4 /home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/ai/mcp
7
7
 
8
- ✓ src/__tests__/registry-and-context.test.ts (4 tests) 148ms
8
+ ✓ src/__tests__/registry-and-context.test.ts (4 tests) 78ms
9
9
 
10
10
   Test Files  1 passed (1)
11
11
   Tests  4 passed (4)
12
-  Start at  16:51:18
13
-  Duration  3.11s (transform 854ms, setup 0ms, import 2.10s, tests 148ms, environment 0ms)
12
+  Start at  08:15:16
13
+  Duration  2.69s (transform 862ms, setup 0ms, import 1.71s, tests 78ms, environment 0ms)
14
14
 
@@ -1,4 +1,4 @@
1
1
 
2
- > @nebutra/mcp@0.1.1 typecheck /home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/ai/mcp
2
+ > @nebutra/mcp@0.1.2 typecheck /home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/ai/mcp
3
3
  > tsc --noEmit
4
4
 
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
@@ -1,5 +1,7 @@
1
1
  # @nebutra/mcp
2
2
 
3
+ Status: **WIP**
4
+
3
5
  > **Status: WIP** — Not yet integrated into any production app. Do not import until this notice is removed.
4
6
 
5
7
  Model Context Protocol (MCP) for AI agent tool calling.
@@ -295,26 +295,19 @@ var InMemoryToolConsentStore = class {
295
295
  };
296
296
 
297
297
  // src/debug.ts
298
- import { mkdir, readFile, writeFile } from "fs/promises";
299
- import { dirname, join } from "path";
298
+ import {
299
+ appendCapabilityDebug,
300
+ capabilityDebugPath,
301
+ readCapabilityDebug
302
+ } from "@nebutra/capability-kit/debug";
300
303
  function toolDebugPath() {
301
- return join(process.cwd(), ".nebutra", "debug", "tool-protocol.jsonl");
304
+ return capabilityDebugPath("tool-protocol");
302
305
  }
303
306
  async function appendToolDebug(entry) {
304
- const path = toolDebugPath();
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
- try {
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
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  McpHost,
3
3
  readToolDebug
4
- } from "./chunk-ORGYGQJV.js";
4
+ } from "./chunk-73DKWF2B.js";
5
5
  import {
6
6
  createContextServerHandlers
7
7
  } from "./chunk-YMTQFRV2.js";
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  serverRegistry,
20
20
  toolConsentStore,
21
21
  toolDebugPath
22
- } from "./chunk-ORGYGQJV.js";
22
+ } from "./chunk-73DKWF2B.js";
23
23
  export {
24
24
  INTERNAL_SERVERS,
25
25
  InMemoryToolConsentStore,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nebutra/mcp",
3
- "version": "0.1.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.27.1",
36
+ "@modelcontextprotocol/sdk": "1.29.0",
36
37
  "zod": "^4.3.6",
37
- "@nebutra/errors": "0.1.0",
38
- "@nebutra/event-log": "0.1.0",
39
- "@nebutra/trace-store": "0.1.0"
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 { mkdir, readFile, writeFile } from "node:fs/promises";
2
- import { dirname, join } from "node:path";
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 join(process.cwd(), ".nebutra", "debug", "tool-protocol.jsonl");
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
- const path = toolDebugPath();
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
- try {
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
  }