@deepqtech/mcp-server-js 1.0.2 → 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/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.2",
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);