@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 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
- "@deepq-tech/mcp-server-js@latest",
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
- "@deepq-tech/mcp-server-js@latest",
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.log(`Starting MCP server from '${TOOLS_DEFINITION_FILE_NAME}'...`);
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.warn('Warning: No tools found in the definition file. Server will start with no tools.');
20
+ console.error('Warning: No tools found in the definition file. Server will start with no tools.');
21
21
  } else {
22
- console.log(`Loaded ${tools.length} tool(s) from ${TOOLS_DEFINITION_FILE_NAME}.`);
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
@@ -8,7 +8,7 @@
8
8
  "src/",
9
9
  "tools-manifest.json"
10
10
  ],
11
- "version": "1.0.1",
11
+ "version": "1.0.3",
12
12
  "main": "index.js",
13
13
  "type": "module",
14
14
  "scripts": {
@@ -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.log('MCP Server (stdio) started successfully, ready for requests.');
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);