@deepqtech/mcp-server-js 1.0.1 → 1.0.3
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/README.md +2 -2
- package/cli.mjs +3 -3
- package/package.json +1 -1
- package/src/mcp-server.mjs +1 -1
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ A sample configuration for using the MCP Server with VS Code + Cline is as follo
|
|
|
72
72
|
"command": "npx",
|
|
73
73
|
"args": [
|
|
74
74
|
"-y",
|
|
75
|
-
"@
|
|
75
|
+
"@deepqtech/mcp-server-js@latest",
|
|
76
76
|
"start"
|
|
77
77
|
],
|
|
78
78
|
"env": {
|
|
@@ -161,7 +161,7 @@ MCP工具已正式发布,40+个工具任您使用,如果您有其它想要
|
|
|
161
161
|
"command": "npx",
|
|
162
162
|
"args": [
|
|
163
163
|
"-y",
|
|
164
|
-
"@
|
|
164
|
+
"@deepqtech/mcp-server-js@latest",
|
|
165
165
|
"start"
|
|
166
166
|
],
|
|
167
167
|
"env": {
|
package/cli.mjs
CHANGED
|
@@ -12,14 +12,14 @@ const TOOLS_DEFINITION_FILE_NAME = 'tools-manifest.json';
|
|
|
12
12
|
const TOOLS_DEFINITION_FILE_PATH = path.join(__dirname, TOOLS_DEFINITION_FILE_NAME);
|
|
13
13
|
|
|
14
14
|
async function serve() {
|
|
15
|
-
console.
|
|
15
|
+
console.error(`Starting MCP server from '${TOOLS_DEFINITION_FILE_NAME}'...`);
|
|
16
16
|
try {
|
|
17
17
|
const toolsJson = await fs.readFile(TOOLS_DEFINITION_FILE_PATH, 'utf-8');
|
|
18
18
|
const tools = JSON.parse(toolsJson);
|
|
19
19
|
if (tools.length === 0) {
|
|
20
|
-
console.
|
|
20
|
+
console.error('Warning: No tools found in the definition file. Server will start with no tools.');
|
|
21
21
|
} else {
|
|
22
|
-
console.
|
|
22
|
+
console.error(`Loaded ${tools.length} tool(s) from ${TOOLS_DEFINITION_FILE_NAME}.`);
|
|
23
23
|
}
|
|
24
24
|
await startMcpServer(tools);
|
|
25
25
|
} catch (error) {
|
package/package.json
CHANGED
package/src/mcp-server.mjs
CHANGED
|
@@ -116,7 +116,7 @@ export const startMcpServer = async (toolDefinitions) => {
|
|
|
116
116
|
try {
|
|
117
117
|
const transport = new StdioServerTransport();
|
|
118
118
|
await server.connect(transport);
|
|
119
|
-
console.
|
|
119
|
+
console.error('MCP Server (stdio) started successfully, ready for requests.');
|
|
120
120
|
} catch (error) {
|
|
121
121
|
console.error('MCP Server failed to start:', error);
|
|
122
122
|
process.exit(1);
|