gem-design-mcp-server 1.0.1 → 1.0.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.
- package/build/index.js +6 -6
- package/package.json +9 -1
package/build/index.js
CHANGED
|
@@ -11,8 +11,8 @@ const axios_1 = __importDefault(require("axios"));
|
|
|
11
11
|
const types_js_1 = require("@modelcontextprotocol/sdk/types.js");
|
|
12
12
|
// --- 1. Environment Variables & Configuration ---
|
|
13
13
|
const API_KEY = process.env.GEMDESIGN_API_KEY;
|
|
14
|
-
//
|
|
15
|
-
const BASE_URL = process.env.GEMDESIGN_BASE_URL || "
|
|
14
|
+
// 默认使用生产环境 URL,用户无需手动配置
|
|
15
|
+
const BASE_URL = process.env.GEMDESIGN_BASE_URL || "https://design.gemcoder.com";
|
|
16
16
|
if (!API_KEY) {
|
|
17
17
|
console.error("Error: GEMDESIGN_API_KEY environment variable is required.");
|
|
18
18
|
process.exit(1);
|
|
@@ -81,10 +81,10 @@ const server = new mcp_js_1.McpServer({
|
|
|
81
81
|
});
|
|
82
82
|
// --- 4. Tool Definitions ---
|
|
83
83
|
/**
|
|
84
|
-
* Tool:
|
|
84
|
+
* Tool: list_pages
|
|
85
85
|
* Description: Get list of pages for a given App UUID
|
|
86
86
|
*/
|
|
87
|
-
server.tool("
|
|
87
|
+
server.tool("list_pages", "Get list of pages for a given App UUID", {
|
|
88
88
|
appuuid: zod_1.z.string().describe("The unique identifier of the GemDesign App"),
|
|
89
89
|
}, async ({ appuuid }) => {
|
|
90
90
|
try {
|
|
@@ -105,10 +105,10 @@ server.tool("gemdesign_list_pages", {
|
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
/**
|
|
108
|
-
* Tool:
|
|
108
|
+
* Tool: get_page_content
|
|
109
109
|
* Description: Get raw HTML content for a specific page
|
|
110
110
|
*/
|
|
111
|
-
server.tool("
|
|
111
|
+
server.tool("get_page_content", "Get raw HTML content for a specific page", {
|
|
112
112
|
appuuid: zod_1.z.string().describe("The unique identifier of the GemDesign App"),
|
|
113
113
|
pageuuid: zod_1.z.string().describe("The unique identifier of the Page"),
|
|
114
114
|
}, async ({ appuuid, pageuuid }) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gem-design-mcp-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "MCP Server for GemDesign API",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/gemcoder/gem-design-mcp.git"
|
|
8
|
+
},
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/gemcoder/gem-design-mcp/issues"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/gemcoder/gem-design-mcp#readme",
|
|
5
13
|
"main": "build/index.js",
|
|
6
14
|
"bin": {
|
|
7
15
|
"gem-design-mcp-server": "./build/index.js"
|