@julong/mono-rele2-core 1.0.1 → 1.1.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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @julong/mono-rele2-core@1.0.0 build /home/runner/work/mono-rele2/mono-rele2/packages/core
3
- > tsc --build
2
+ > @julong/mono-rele2-core@1.1.0 build /home/runner/work/mono-rele2/mono-rele2/packages/core
3
+ > tsc --build && chmod 755 dist/server.js
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## @julong/mono-rele2-core [1.1.1](https://github.com/mss-julong/mono-rele2/compare/@julong/mono-rele2-core@1.1.0...@julong/mono-rele2-core@1.1.1) (2026-04-30)
2
+
3
+
4
+ ### Dependencies
5
+
6
+ * **@julong/mono-rele2-common:** upgraded to 1.1.0
7
+
8
+ ## @julong/mono-rele2-core [1.1.0](https://github.com/mss-julong/mono-rele2/compare/@julong/mono-rele2-core@1.0.1...@julong/mono-rele2-core@1.1.0) (2026-04-30)
9
+
10
+ ### Features
11
+
12
+ * mcp서버 추가 ([2d00087](https://github.com/mss-julong/mono-rele2/commit/2d0008777d5a0b3b032d93ef7e18c9ea13e0d619))
13
+
14
+
15
+ ### Dependencies
16
+
17
+ * **@julong/mono-rele2-common:** upgraded to 1.0.0
18
+
1
19
  ## @julong/mono-rele2-core [1.0.1](https://github.com/mss-julong/mono-rele2/compare/@julong/mono-rele2-core@1.0.0...@julong/mono-rele2-core@1.0.1) (2026-04-30)
2
20
 
3
21
  ### Bug Fixes
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- export {};
1
+ export { echoTool, envTool, timestampTool } from './tools/index.js';
2
+ export declare function createCoreServer(): import("@modelcontextprotocol/sdk/server/mcp").McpServer;
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEnE,wBAAgB,gBAAgB,6DAK/B"}
package/dist/index.js CHANGED
@@ -1,3 +1,7 @@
1
- export {};
2
- // 코어 배포 테스트
1
+ import { createMcpServer } from '@julong/mono-rele2-common';
2
+ import { echoTool, envTool, timestampTool } from './tools/index.js';
3
+ export { echoTool, envTool, timestampTool } from './tools/index.js';
4
+ export function createCoreServer() {
5
+ return createMcpServer({ name: 'mono-rele2-core', version: '1.0.0' }, [echoTool, timestampTool, envTool]);
6
+ }
3
7
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,YAAY"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEnE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEnE,MAAM,UAAU,gBAAgB;IAC9B,OAAO,eAAe,CACpB,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,OAAO,EAAE,EAC7C,CAAC,QAAQ,EAAE,aAAa,EAAE,OAAO,CAAC,CACnC,CAAA;AACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":""}
package/dist/server.js ADDED
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+ import { startServer } from '@julong/mono-rele2-common';
3
+ import { createCoreServer } from './index.js';
4
+ const server = createCoreServer();
5
+ startServer(server).catch((err) => {
6
+ console.error('[core] server error:', err);
7
+ process.exit(1);
8
+ });
9
+ //# sourceMappingURL=server.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C,MAAM,MAAM,GAAG,gBAAgB,EAAE,CAAA;AAEjC,WAAW,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IAChC,OAAO,CAAC,KAAK,CAAC,sBAAsB,EAAE,GAAG,CAAC,CAAA;IAC1C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACjB,CAAC,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { echoTool, timestampTool, envTool } from './system.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { echoTool, timestampTool, envTool } from './system.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA"}
@@ -0,0 +1,4 @@
1
+ export declare const echoTool: import("@julong/mono-rele2-common").AnyToolDef;
2
+ export declare const timestampTool: import("@julong/mono-rele2-common").AnyToolDef;
3
+ export declare const envTool: import("@julong/mono-rele2-common").AnyToolDef;
4
+ //# sourceMappingURL=system.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../src/tools/system.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,gDAOnB,CAAA;AAEF,eAAO,MAAM,aAAa,gDAUxB,CAAA;AAEF,eAAO,MAAM,OAAO,gDAOlB,CAAA"}
@@ -0,0 +1,30 @@
1
+ import { defineTool, text } from '@julong/mono-rele2-common';
2
+ import { z } from 'zod';
3
+ export const echoTool = defineTool({
4
+ name: 'echo',
5
+ description: 'Returns the message as-is',
6
+ inputSchema: {
7
+ message: z.string().describe('Message to echo'),
8
+ },
9
+ handler: async ({ message }) => text(message),
10
+ });
11
+ export const timestampTool = defineTool({
12
+ name: 'timestamp',
13
+ description: 'Returns the current UTC timestamp',
14
+ inputSchema: {
15
+ format: z.enum(['iso', 'unix']).default('iso').describe('Timestamp format'),
16
+ },
17
+ handler: async ({ format }) => {
18
+ const value = format === 'unix' ? String(Date.now()) : new Date().toISOString();
19
+ return text(value);
20
+ },
21
+ });
22
+ export const envTool = defineTool({
23
+ name: 'env',
24
+ description: 'Returns the value of an environment variable',
25
+ inputSchema: {
26
+ key: z.string().describe('Environment variable name'),
27
+ },
28
+ handler: async ({ key }) => text(process.env[key] ?? ''),
29
+ });
30
+ //# sourceMappingURL=system.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.js","sourceRoot":"","sources":["../../src/tools/system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC;IACjC,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE;QACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;KAChD;IACD,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC;CAC9C,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,UAAU,CAAC;IACtC,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,mCAAmC;IAChD,WAAW,EAAE;QACX,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC;KAC5E;IACD,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;QAC5B,MAAM,KAAK,GAAG,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAA;QAC/E,OAAO,IAAI,CAAC,KAAK,CAAC,CAAA;IACpB,CAAC;CACF,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,UAAU,CAAC;IAChC,IAAI,EAAE,KAAK;IACX,WAAW,EAAE,8CAA8C;IAC3D,WAAW,EAAE;QACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;KACtD;IACD,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;CACzD,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@julong/mono-rele2-core",
3
- "version": "1.0.1",
3
+ "version": "1.1.1",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "exports": {
@@ -9,14 +9,29 @@
9
9
  "types": "./src/index.ts"
10
10
  }
11
11
  },
12
+ "bin": {
13
+ "mcp-core": "./dist/server.js"
14
+ },
12
15
  "publishConfig": {
13
- "access": "public"
16
+ "access": "public",
17
+ "exports": {
18
+ ".": {
19
+ "import": "./dist/index.js",
20
+ "types": "./dist/index.d.ts"
21
+ }
22
+ }
14
23
  },
15
24
  "scripts": {
16
- "build": "tsc --build",
25
+ "build": "tsc --build && chmod 755 dist/server.js",
17
26
  "typecheck": "tsc --noEmit",
18
27
  "clean": "rimraf dist tsconfig.tsbuildinfo"
19
28
  },
29
+ "dependencies": {
30
+ "@julong/mono-rele2-common": "1.1.0",
31
+ "@modelcontextprotocol/sdk": "^1.29.0",
32
+ "@types/node": "^25.6.0",
33
+ "zod": "^3.24.0"
34
+ },
20
35
  "devDependencies": {
21
36
  "rimraf": "^6.0.1",
22
37
  "typescript": "^5.6.3"
package/src/index.ts CHANGED
@@ -1,2 +1,11 @@
1
- export {}
2
- // 코어 배포 테스트
1
+ import { createMcpServer } from '@julong/mono-rele2-common'
2
+ import { echoTool, envTool, timestampTool } from './tools/index.js'
3
+
4
+ export { echoTool, envTool, timestampTool } from './tools/index.js'
5
+
6
+ export function createCoreServer() {
7
+ return createMcpServer(
8
+ { name: 'mono-rele2-core', version: '1.0.0' },
9
+ [echoTool, timestampTool, envTool],
10
+ )
11
+ }
package/src/server.ts ADDED
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+ import { startServer } from '@julong/mono-rele2-common'
3
+ import { createCoreServer } from './index.js'
4
+
5
+ const server = createCoreServer()
6
+
7
+ startServer(server).catch((err) => {
8
+ console.error('[core] server error:', err)
9
+ process.exit(1)
10
+ })
@@ -0,0 +1 @@
1
+ export { echoTool, timestampTool, envTool } from './system.js'
@@ -0,0 +1,32 @@
1
+ import { defineTool, text } from '@julong/mono-rele2-common'
2
+ import { z } from 'zod'
3
+
4
+ export const echoTool = defineTool({
5
+ name: 'echo',
6
+ description: 'Returns the message as-is',
7
+ inputSchema: {
8
+ message: z.string().describe('Message to echo'),
9
+ },
10
+ handler: async ({ message }) => text(message),
11
+ })
12
+
13
+ export const timestampTool = defineTool({
14
+ name: 'timestamp',
15
+ description: 'Returns the current UTC timestamp',
16
+ inputSchema: {
17
+ format: z.enum(['iso', 'unix']).default('iso').describe('Timestamp format'),
18
+ },
19
+ handler: async ({ format }) => {
20
+ const value = format === 'unix' ? String(Date.now()) : new Date().toISOString()
21
+ return text(value)
22
+ },
23
+ })
24
+
25
+ export const envTool = defineTool({
26
+ name: 'env',
27
+ description: 'Returns the value of an environment variable',
28
+ inputSchema: {
29
+ key: z.string().describe('Environment variable name'),
30
+ },
31
+ handler: async ({ key }) => text(process.env[key] ?? ''),
32
+ })
@@ -1 +1 @@
1
- {"root":["./src/index.ts"],"version":"5.9.3"}
1
+ {"root":["./src/index.ts","./src/server.ts","./src/tools/index.ts","./src/tools/system.ts"],"version":"5.9.3"}