@portone/mcp-server 0.15.0-alpha.3 → 0.15.0-alpha.4
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/manifest.json +1 -1
- package/package.json +1 -1
- package/server/index.js +14 -32
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portone/mcp-server",
|
|
3
|
-
"version": "0.15.0-alpha.
|
|
3
|
+
"version": "0.15.0-alpha.4",
|
|
4
4
|
"description": "포트원 사용자를 위한 MCP (Model Context Protocol) 서버입니다. 포트원 개발자센터, 헬프센터 등 공식 문서 내용을 LLM(Large Language Model)에 제공해 정확한 정보를 바탕으로 사용자의 연동 및 질의를 돕도록 합니다.",
|
|
5
5
|
"main": "server/index.js",
|
|
6
6
|
"type": "module",
|
package/server/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import { GraphQLClient } from "graphql-request";
|
|
|
15
15
|
// package.json
|
|
16
16
|
var package_default = {
|
|
17
17
|
name: "@portone/mcp-server",
|
|
18
|
-
version: "0.15.0-alpha.
|
|
18
|
+
version: "0.15.0-alpha.4",
|
|
19
19
|
description: "\uD3EC\uD2B8\uC6D0 \uC0AC\uC6A9\uC790\uB97C \uC704\uD55C MCP (Model Context Protocol) \uC11C\uBC84\uC785\uB2C8\uB2E4. \uD3EC\uD2B8\uC6D0 \uAC1C\uBC1C\uC790\uC13C\uD130, \uD5EC\uD504\uC13C\uD130 \uB4F1 \uACF5\uC2DD \uBB38\uC11C \uB0B4\uC6A9\uC744 LLM(Large Language Model)\uC5D0 \uC81C\uACF5\uD574 \uC815\uD655\uD55C \uC815\uBCF4\uB97C \uBC14\uD0D5\uC73C\uB85C \uC0AC\uC6A9\uC790\uC758 \uC5F0\uB3D9 \uBC0F \uC9C8\uC758\uB97C \uB3D5\uB3C4\uB85D \uD569\uB2C8\uB2E4.",
|
|
20
20
|
main: "server/index.js",
|
|
21
21
|
type: "module",
|
|
@@ -2239,13 +2239,17 @@ function init10(schema) {
|
|
|
2239
2239
|
try {
|
|
2240
2240
|
const pruned_data = pruneYaml(schemaData, 3);
|
|
2241
2241
|
const yamlOutput = stringifyYaml(pruned_data);
|
|
2242
|
+
const structuredContent = {
|
|
2243
|
+
result: yamlOutput
|
|
2244
|
+
};
|
|
2242
2245
|
return {
|
|
2243
2246
|
content: [
|
|
2244
2247
|
{
|
|
2245
2248
|
type: "text",
|
|
2246
|
-
text:
|
|
2249
|
+
text: JSON.stringify(structuredContent, null, 2)
|
|
2247
2250
|
}
|
|
2248
|
-
]
|
|
2251
|
+
],
|
|
2252
|
+
structuredContent
|
|
2249
2253
|
};
|
|
2250
2254
|
} catch (error) {
|
|
2251
2255
|
return {
|
|
@@ -2286,9 +2290,6 @@ framework\uB97C \uC81C\uC678\uD55C \uBAA8\uB4E0 Args\uB294 \uC120\uD0DD\uC0AC\uD
|
|
|
2286
2290
|
"\uC0AC\uC6A9\uD560 \uACB0\uC81C \uBC29\uBC95. \uC635\uC158: card, virtualAccount, easyPay, transfer, mobile, giftCertificate"
|
|
2287
2291
|
),
|
|
2288
2292
|
smart_routing: z17.boolean().optional().describe("\uC2A4\uB9C8\uD2B8 \uB77C\uC6B0\uD305 \uC0AC\uC6A9 \uC5EC\uBD80. \uC635\uC158: true \uB610\uB294 false")
|
|
2289
|
-
},
|
|
2290
|
-
outputSchema: {
|
|
2291
|
-
result: z17.string().describe("\uB9C8\uD06C\uB2E4\uC6B4 \uD615\uC2DD\uC758 \uBC31\uC5D4\uB4DC \uCF54\uB4DC \uC608\uC81C")
|
|
2292
2293
|
}
|
|
2293
2294
|
};
|
|
2294
2295
|
function init11(apiBasePath) {
|
|
@@ -2318,17 +2319,13 @@ ${errorText}`
|
|
|
2318
2319
|
}
|
|
2319
2320
|
const data = await response.text();
|
|
2320
2321
|
if (data) {
|
|
2321
|
-
const structuredContent = {
|
|
2322
|
-
result: data
|
|
2323
|
-
};
|
|
2324
2322
|
return {
|
|
2325
2323
|
content: [
|
|
2326
2324
|
{
|
|
2327
2325
|
type: "text",
|
|
2328
|
-
text:
|
|
2326
|
+
text: data
|
|
2329
2327
|
}
|
|
2330
|
-
]
|
|
2331
|
-
structuredContent
|
|
2328
|
+
]
|
|
2332
2329
|
};
|
|
2333
2330
|
} else {
|
|
2334
2331
|
return {
|
|
@@ -2380,9 +2377,6 @@ framework\uB97C \uC81C\uC678\uD55C \uBAA8\uB4E0 Args\uB294 \uC120\uD0DD\uC0AC\uD
|
|
|
2380
2377
|
"\uC0AC\uC6A9\uD560 \uACB0\uC81C \uBC29\uBC95. \uC635\uC158: card, virtualAccount, easyPay, transfer, mobile, giftCertificate"
|
|
2381
2378
|
),
|
|
2382
2379
|
smart_routing: z18.boolean().optional().describe("\uC2A4\uB9C8\uD2B8 \uB77C\uC6B0\uD305 \uC0AC\uC6A9 \uC5EC\uBD80. \uC635\uC158: true \uB610\uB294 false")
|
|
2383
|
-
},
|
|
2384
|
-
outputSchema: {
|
|
2385
|
-
result: z18.string().describe("\uB9C8\uD06C\uB2E4\uC6B4 \uD615\uC2DD\uC758 \uD504\uB860\uD2B8\uC5D4\uB4DC \uCF54\uB4DC \uC608\uC81C")
|
|
2386
2380
|
}
|
|
2387
2381
|
};
|
|
2388
2382
|
function init12(apiBasePath) {
|
|
@@ -2412,17 +2406,13 @@ ${errorText}`
|
|
|
2412
2406
|
}
|
|
2413
2407
|
const data = await response.text();
|
|
2414
2408
|
if (data) {
|
|
2415
|
-
const structuredContent = {
|
|
2416
|
-
result: data
|
|
2417
|
-
};
|
|
2418
2409
|
return {
|
|
2419
2410
|
content: [
|
|
2420
2411
|
{
|
|
2421
2412
|
type: "text",
|
|
2422
|
-
text:
|
|
2413
|
+
text: data
|
|
2423
2414
|
}
|
|
2424
|
-
]
|
|
2425
|
-
structuredContent
|
|
2415
|
+
]
|
|
2426
2416
|
};
|
|
2427
2417
|
} else {
|
|
2428
2418
|
return {
|
|
@@ -2562,11 +2552,6 @@ max(0, idx - contextSize)\uBD80\uD130 min(contentLength, idx + len(query) + cont
|
|
|
2562
2552
|
showMetadata: z19.boolean().default(false).describe(
|
|
2563
2553
|
"true\uC774\uBA74 \uBB38\uC11C\uC758 \uBA54\uD0C0\uB370\uC774\uD130(\uC81C\uBAA9, \uC124\uBA85, \uB300\uC0C1 \uBC84\uC804)\uC744 \uACB0\uACFC\uC5D0 \uD3EC\uD568\uD569\uB2C8\uB2E4."
|
|
2564
2554
|
)
|
|
2565
|
-
},
|
|
2566
|
-
outputSchema: {
|
|
2567
|
-
result: z19.string().describe(
|
|
2568
|
-
`\uD3EC\uD2B8\uC6D0 \uBB38\uC11C\uB97C \uCC3E\uC73C\uBA74 \uD574\uB2F9 \uBB38\uC11C\uC758 \uACBD\uB85C\uC640 \uAE38\uC774, \uBA54\uD0C0\uB370\uC774\uD130, query\uAC00 \uB9E4\uCE6D\uB41C \uC8FC\uBCC0 \uCEE8\uD14D\uC2A4\uD2B8\uB97C \uBC18\uD658\uD569\uB2C8\uB2E4.`
|
|
2569
|
-
)
|
|
2570
2555
|
}
|
|
2571
2556
|
};
|
|
2572
2557
|
function formatOccurrence(occurrence) {
|
|
@@ -2682,17 +2667,14 @@ ${result}`;
|
|
|
2682
2667
|
const truncationMsg = `
|
|
2683
2668
|
|
|
2684
2669
|
... (output truncated due to length limit. Use page: ${page + 1} for next page)`;
|
|
2685
|
-
const
|
|
2686
|
-
result: fullResult.substring(0, limit) + truncationMsg
|
|
2687
|
-
};
|
|
2670
|
+
const truncatedResult = fullResult.substring(0, limit) + truncationMsg;
|
|
2688
2671
|
return {
|
|
2689
2672
|
content: [
|
|
2690
2673
|
{
|
|
2691
2674
|
type: "text",
|
|
2692
|
-
text:
|
|
2675
|
+
text: truncatedResult
|
|
2693
2676
|
}
|
|
2694
|
-
]
|
|
2695
|
-
structuredContent
|
|
2677
|
+
]
|
|
2696
2678
|
};
|
|
2697
2679
|
}
|
|
2698
2680
|
return {
|