@cqsjjb/meter-sphere-mcp-server 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.
- package/mcp-server.mjs +4 -4
- package/package.json +1 -1
package/mcp-server.mjs
CHANGED
|
@@ -24,9 +24,9 @@ function getApiBaseUrl() {
|
|
|
24
24
|
*/
|
|
25
25
|
function getModelConfig() {
|
|
26
26
|
return {
|
|
27
|
-
baseURL: process.env.MODEL_BASE_URL
|
|
28
|
-
apiKey: process.env.MODEL_API_KEY
|
|
29
|
-
model: process.env.MODEL_ID
|
|
27
|
+
baseURL: process.env.MODEL_BASE_URL,
|
|
28
|
+
apiKey: process.env.MODEL_API_KEY,
|
|
29
|
+
model: process.env.MODEL_ID
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -347,7 +347,7 @@ ${promptText}
|
|
|
347
347
|
5. 静态代码分析建议:[针对可通过静态代码分析的部分,给出具体的代码检查建议]`;
|
|
348
348
|
|
|
349
349
|
return new Promise((resolve, reject) => {
|
|
350
|
-
const urlObj = new URL(`${config.baseURL}/
|
|
350
|
+
const urlObj = new URL(`${config.baseURL}/chat/completions`);
|
|
351
351
|
const postData = JSON.stringify({
|
|
352
352
|
model: config.model,
|
|
353
353
|
messages: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cqsjjb/meter-sphere-mcp-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "MCP server for MeterSphere test cases platform - Get test cases, generate AI test prompts, track testing progress, and execute browser automation tests",
|
|
5
5
|
"main": "mcp-server.mjs",
|
|
6
6
|
"type": "module",
|