@julong/mono-rele2-core 1.10.1 → 1.11.1

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/dist/cli.js CHANGED
@@ -76,18 +76,18 @@ var tools = {
76
76
  echoTool: toolDef({
77
77
  name: "echo",
78
78
  description: "Returns the message as-is",
79
- inputSchema: {
79
+ inputSchema: z3.object({
80
80
  message: z3.string().describe("Message to echo")
81
- },
81
+ }),
82
82
  handler: async ({ message }) => text(message),
83
83
  examples: [{ args: [`"hello world"`], result: "hello world" }]
84
84
  }),
85
85
  timestampTool: toolDef({
86
86
  name: "timestamp",
87
87
  description: "Returns the current UTC timestamp",
88
- inputSchema: {
88
+ inputSchema: z3.object({
89
89
  format: z3.enum(["iso", "unix"]).default("iso").describe("Timestamp format")
90
- },
90
+ }),
91
91
  handler: async ({ format }) => {
92
92
  const value = format === "unix" ? String(Date.now()) : (/* @__PURE__ */ new Date()).toISOString();
93
93
  return text(value);
@@ -100,9 +100,9 @@ var tools = {
100
100
  envTool: toolDef({
101
101
  name: "env",
102
102
  description: "Returns the value of an environment variable",
103
- inputSchema: {
103
+ inputSchema: z3.object({
104
104
  key: z3.string().describe("Environment variable name")
105
- },
105
+ }),
106
106
  handler: async ({ key }) => text(process.env[key] ?? ""),
107
107
  examples: [
108
108
  { args: ["HOME"], result: "/Users/julong" },
@@ -113,7 +113,7 @@ var tools = {
113
113
  uuidTool: toolDef({
114
114
  name: "uuid",
115
115
  description: "Generates a random UUID v4",
116
- inputSchema: {},
116
+ inputSchema: z3.object({}),
117
117
  handler: async () => text(randomUUID()),
118
118
  examples: [{ args: [], result: "550e8400-e29b-41d4-a716-446655440000" }]
119
119
  })
package/dist/index.d.ts CHANGED
@@ -31,9 +31,9 @@ declare const tools: {
31
31
  echoTool: {
32
32
  name: string;
33
33
  description: string;
34
- inputSchema: {
35
- readonly message: z.ZodString;
36
- };
34
+ inputSchema: z.ZodObject<{
35
+ message: z.ZodString;
36
+ }, z.core.$strip>;
37
37
  handler: (input: {
38
38
  message: string;
39
39
  }) => Promise<ToolResult>;
@@ -43,12 +43,12 @@ declare const tools: {
43
43
  timestampTool: {
44
44
  name: string;
45
45
  description: string;
46
- inputSchema: {
47
- readonly format: z.ZodDefault<z.ZodEnum<{
46
+ inputSchema: z.ZodObject<{
47
+ format: z.ZodDefault<z.ZodEnum<{
48
48
  iso: "iso";
49
49
  unix: "unix";
50
50
  }>>;
51
- };
51
+ }, z.core.$strip>;
52
52
  handler: (input: {
53
53
  format: "iso" | "unix";
54
54
  }) => Promise<ToolResult>;
@@ -58,9 +58,9 @@ declare const tools: {
58
58
  envTool: {
59
59
  name: string;
60
60
  description: string;
61
- inputSchema: {
62
- readonly key: z.ZodString;
63
- };
61
+ inputSchema: z.ZodObject<{
62
+ key: z.ZodString;
63
+ }, z.core.$strip>;
64
64
  handler: (input: {
65
65
  key: string;
66
66
  }) => Promise<ToolResult>;
@@ -70,7 +70,7 @@ declare const tools: {
70
70
  uuidTool: {
71
71
  name: string;
72
72
  description: string;
73
- inputSchema: {};
73
+ inputSchema: z.ZodObject<{}, z.core.$strip>;
74
74
  handler: (input: Record<string, never>) => Promise<ToolResult>;
75
75
  examples?: ToolExample[];
76
76
  guidelines?: string[];
package/dist/index.js CHANGED
@@ -215,18 +215,18 @@ var tools = {
215
215
  echoTool: toolDef({
216
216
  name: "echo",
217
217
  description: "Returns the message as-is",
218
- inputSchema: {
218
+ inputSchema: z3.object({
219
219
  message: z3.string().describe("Message to echo")
220
- },
220
+ }),
221
221
  handler: async ({ message }) => text(message),
222
222
  examples: [{ args: [`"hello world"`], result: "hello world" }]
223
223
  }),
224
224
  timestampTool: toolDef({
225
225
  name: "timestamp",
226
226
  description: "Returns the current UTC timestamp",
227
- inputSchema: {
227
+ inputSchema: z3.object({
228
228
  format: z3.enum(["iso", "unix"]).default("iso").describe("Timestamp format")
229
- },
229
+ }),
230
230
  handler: async ({ format }) => {
231
231
  const value = format === "unix" ? String(Date.now()) : (/* @__PURE__ */ new Date()).toISOString();
232
232
  return text(value);
@@ -239,9 +239,9 @@ var tools = {
239
239
  envTool: toolDef({
240
240
  name: "env",
241
241
  description: "Returns the value of an environment variable",
242
- inputSchema: {
242
+ inputSchema: z3.object({
243
243
  key: z3.string().describe("Environment variable name")
244
- },
244
+ }),
245
245
  handler: async ({ key }) => text(process.env[key] ?? ""),
246
246
  examples: [
247
247
  { args: ["HOME"], result: "/Users/julong" },
@@ -252,7 +252,7 @@ var tools = {
252
252
  uuidTool: toolDef({
253
253
  name: "uuid",
254
254
  description: "Generates a random UUID v4",
255
- inputSchema: {},
255
+ inputSchema: z3.object({}),
256
256
  handler: async () => text(randomUUID()),
257
257
  examples: [{ args: [], result: "550e8400-e29b-41d4-a716-446655440000" }]
258
258
  })
@@ -264,10 +264,7 @@ var uuidTool = defineTool(tools.uuidTool);
264
264
 
265
265
  // src/index.ts
266
266
  function createCoreServer() {
267
- return createMcpServer(
268
- { name: "mono-rele2-core", version: "1.0.0" },
269
- [echoTool, timestampTool, envTool]
270
- );
267
+ return createMcpServer({ name: "mono-rele2-core", version: "1.0.0" }, [echoTool, timestampTool, envTool, uuidTool]);
271
268
  }
272
269
  export {
273
270
  createCoreServer,
package/dist/server.js CHANGED
@@ -44,18 +44,18 @@ var tools = {
44
44
  echoTool: toolDef({
45
45
  name: "echo",
46
46
  description: "Returns the message as-is",
47
- inputSchema: {
47
+ inputSchema: z3.object({
48
48
  message: z3.string().describe("Message to echo")
49
- },
49
+ }),
50
50
  handler: async ({ message }) => text(message),
51
51
  examples: [{ args: [`"hello world"`], result: "hello world" }]
52
52
  }),
53
53
  timestampTool: toolDef({
54
54
  name: "timestamp",
55
55
  description: "Returns the current UTC timestamp",
56
- inputSchema: {
56
+ inputSchema: z3.object({
57
57
  format: z3.enum(["iso", "unix"]).default("iso").describe("Timestamp format")
58
- },
58
+ }),
59
59
  handler: async ({ format }) => {
60
60
  const value = format === "unix" ? String(Date.now()) : (/* @__PURE__ */ new Date()).toISOString();
61
61
  return text(value);
@@ -68,9 +68,9 @@ var tools = {
68
68
  envTool: toolDef({
69
69
  name: "env",
70
70
  description: "Returns the value of an environment variable",
71
- inputSchema: {
71
+ inputSchema: z3.object({
72
72
  key: z3.string().describe("Environment variable name")
73
- },
73
+ }),
74
74
  handler: async ({ key }) => text(process.env[key] ?? ""),
75
75
  examples: [
76
76
  { args: ["HOME"], result: "/Users/julong" },
@@ -81,7 +81,7 @@ var tools = {
81
81
  uuidTool: toolDef({
82
82
  name: "uuid",
83
83
  description: "Generates a random UUID v4",
84
- inputSchema: {},
84
+ inputSchema: z3.object({}),
85
85
  handler: async () => text(randomUUID()),
86
86
  examples: [{ args: [], result: "550e8400-e29b-41d4-a716-446655440000" }]
87
87
  })
@@ -93,10 +93,7 @@ var uuidTool = defineTool(tools.uuidTool);
93
93
 
94
94
  // src/index.ts
95
95
  function createCoreServer() {
96
- return createMcpServer(
97
- { name: "mono-rele2-core", version: "1.0.0" },
98
- [echoTool, timestampTool, envTool]
99
- );
96
+ return createMcpServer({ name: "mono-rele2-core", version: "1.0.0" }, [echoTool, timestampTool, envTool, uuidTool]);
100
97
  }
101
98
 
102
99
  // src/server.ts
@@ -105,6 +102,3 @@ startServer(server).catch((err) => {
105
102
  console.error("[core] server error:", err);
106
103
  process.exit(1);
107
104
  });
108
- export {
109
- tools
110
- };
@@ -17,7 +17,22 @@ Returns the message as-is
17
17
 
18
18
  | arg | description |
19
19
  |-----|-------------|
20
- | `message` | Message to echo |
20
+ | `toJSONSchema` | |
21
+ | `def` | |
22
+ | `type` | |
23
+ | `parse` | |
24
+ | `safeParse` | |
25
+ | `parseAsync` | |
26
+ | `safeParseAsync` | |
27
+ | `spa` | |
28
+ | `encode` | |
29
+ | `decode` | |
30
+ | `encodeAsync` | |
31
+ | `decodeAsync` | |
32
+ | `safeEncode` | |
33
+ | `safeDecode` | |
34
+ | `safeEncodeAsync` | |
35
+ | `safeDecodeAsync` | |
21
36
 
22
37
  ### timestampTool
23
38
 
@@ -25,7 +40,22 @@ Returns the current UTC timestamp
25
40
 
26
41
  | arg | description |
27
42
  |-----|-------------|
28
- | `format` | Timestamp format — `iso` \| `unix` — default: `iso` |
43
+ | `toJSONSchema` | |
44
+ | `def` | |
45
+ | `type` | |
46
+ | `parse` | |
47
+ | `safeParse` | |
48
+ | `parseAsync` | |
49
+ | `safeParseAsync` | |
50
+ | `spa` | |
51
+ | `encode` | |
52
+ | `decode` | |
53
+ | `encodeAsync` | |
54
+ | `decodeAsync` | |
55
+ | `safeEncode` | |
56
+ | `safeDecode` | |
57
+ | `safeEncodeAsync` | |
58
+ | `safeDecodeAsync` | |
29
59
 
30
60
  ### envTool
31
61
 
@@ -33,7 +63,22 @@ Returns the value of an environment variable
33
63
 
34
64
  | arg | description |
35
65
  |-----|-------------|
36
- | `key` | Environment variable name |
66
+ | `toJSONSchema` | |
67
+ | `def` | |
68
+ | `type` | |
69
+ | `parse` | |
70
+ | `safeParse` | |
71
+ | `parseAsync` | |
72
+ | `safeParseAsync` | |
73
+ | `spa` | |
74
+ | `encode` | |
75
+ | `decode` | |
76
+ | `encodeAsync` | |
77
+ | `decodeAsync` | |
78
+ | `safeEncode` | |
79
+ | `safeDecode` | |
80
+ | `safeEncodeAsync` | |
81
+ | `safeDecodeAsync` | |
37
82
 
38
83
  ### uuidTool
39
84
 
@@ -41,7 +86,22 @@ Generates a random UUID v4
41
86
 
42
87
  | arg | description |
43
88
  |-----|-------------|
44
-
89
+ | `toJSONSchema` | |
90
+ | `def` | |
91
+ | `type` | |
92
+ | `parse` | |
93
+ | `safeParse` | |
94
+ | `parseAsync` | |
95
+ | `safeParseAsync` | |
96
+ | `spa` | |
97
+ | `encode` | |
98
+ | `decode` | |
99
+ | `encodeAsync` | |
100
+ | `decodeAsync` | |
101
+ | `safeEncode` | |
102
+ | `safeDecode` | |
103
+ | `safeEncodeAsync` | |
104
+ | `safeDecodeAsync` | |
45
105
 
46
106
  ## Examples
47
107
 
@@ -55,6 +115,5 @@ Generates a random UUID v4
55
115
  ## Guidelines
56
116
 
57
117
  - Arguments are positional — pass them in the order listed in each skill's table
58
- - Optional args with defaults may be omitted
59
118
  - `envTool` returns an empty string when the variable is not set
60
119
  - Run `mono-rele2-core` with no args to list all available skills
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@julong/mono-rele2-core",
3
- "version": "1.10.1",
3
+ "version": "1.11.1",
4
4
  "description": "Use this skill to invoke core system utility functions via the mono-rele2-core CLI. Handles message echo, UTC timestamp generation, and environment variable lookup.",
5
5
  "license": "ISC",
6
6
  "type": "module",
@@ -11,8 +11,8 @@
11
11
  }
12
12
  },
13
13
  "bin": {
14
- "mcp-core": "./dist/server.js",
15
- "mono-rele2-core": "./dist/cli.js"
14
+ "mono-rele2-core": "./dist/server.js",
15
+ "mono-rele2-core-cli": "./dist/cli.js"
16
16
  },
17
17
  "files": [
18
18
  "dist"