@nhnpayco-dev/mcp-devcenter 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/dist/index.js +20 -4
  2. package/package.json +13 -3
package/dist/index.js CHANGED
@@ -1,18 +1,34 @@
1
1
  #!/usr/bin/env node
2
- // PAYCO 개발자센터 MCP 서버 - 스켈레톤
3
- // 실제 6개 도구는 src/tools/ 에서 등록 (Task #7).
2
+ // PAYCO 개발자센터 MCP 서버 진입점.
3
+ // 도구 11개는 src/tools.ts 에서 등록한다.
4
+ import { readFile } from "node:fs/promises";
5
+ import { dirname, resolve } from "node:path";
6
+ import { fileURLToPath } from "node:url";
4
7
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
5
8
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
6
9
  import { loadDataStore } from "./data.js";
7
10
  import { registerAllTools } from "./tools.js";
11
+ /** package.json 의 version 을 그대로 사용한다.
12
+ * 하드코딩하면 배포 버전과 어긋난다(1.0.0 배포본이 0.2.0 으로 보고된 전례). */
13
+ async function packageVersion() {
14
+ try {
15
+ const here = dirname(fileURLToPath(import.meta.url)); // dist/
16
+ const raw = await readFile(resolve(here, "..", "package.json"), "utf8");
17
+ return JSON.parse(raw).version || "0.0.0";
18
+ }
19
+ catch {
20
+ return "0.0.0";
21
+ }
22
+ }
8
23
  async function main() {
9
24
  const store = await loadDataStore();
10
- console.error(`[payco-mcp-devcenter] loaded: ${store.index.category_count} guides, ` +
25
+ const version = await packageVersion();
26
+ console.error(`[payco-mcp-devcenter] v${version} loaded: ${store.index.category_count} guides, ` +
11
27
  `${store.errorCodes.total_items} error codes, ` +
12
28
  `data=${store.dataDir}`);
13
29
  const server = new McpServer({
14
30
  name: "payco-mcp-devcenter",
15
- version: "0.2.0",
31
+ version,
16
32
  });
17
33
  registerAllTools(server, store);
18
34
  const transport = new StdioServerTransport();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nhnpayco-dev/mcp-devcenter",
3
- "version": "1.0.0",
4
- "description": "PAYCO 개발자센터 가이드 전체(온라인·오프라인·오더·멤버십·결제정산) 를 AI 에디터에서 바로 조회·검색할 수 있게 해주는 MCP 서버",
3
+ "version": "1.0.1",
4
+ "description": "PAYCO 개발자센터 가이드 전체(온라인·오프라인·오더·멤버십·결제정산) 를 AI 에디터에서 바로 조회·검색할 수 있게 해주는 MCP 서버 (PAYCO Developer Center integration guide MCP server for Claude, Cursor and AI agents)",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "payco-mcp-devcenter": "dist/index.js"
@@ -34,13 +34,23 @@
34
34
  "keywords": [
35
35
  "mcp",
36
36
  "model-context-protocol",
37
+ "modelcontextprotocol",
37
38
  "payco",
39
+ "nhnpayco",
38
40
  "nhn-payco",
41
+ "payco-devcenter",
42
+ "devcenter",
39
43
  "payment",
44
+ "payment-gateway",
45
+ "pg",
40
46
  "online-payment",
41
47
  "auto-payment",
42
48
  "billing",
43
- "devcenter",
49
+ "integration-guide",
50
+ "ai",
51
+ "llm",
52
+ "agent",
53
+ "developer-tools",
44
54
  "korean",
45
55
  "claude",
46
56
  "cursor"