dingtalk-mcp 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.
@@ -1,7 +1,7 @@
1
1
  server:
2
2
  name: dingtalk-tasks
3
3
  description: 钉钉待办
4
- default_active: true
4
+ default_active: false
5
5
  securitySchemes:
6
6
  - id: DingTalkAuth
7
7
  type: apiKey
@@ -45,14 +45,14 @@ export class DingTalkMCPServer {
45
45
  fs.readdirSync(configDir).forEach(
46
46
  (file) => {
47
47
  if (file.endsWith('mcp_server.yaml')) {
48
- console.info("found mcp config file:", file);
48
+ console.error("found mcp config file:", file);
49
49
 
50
50
  const configContent = fs.readFileSync(path.join(configDir, file), 'utf8');
51
51
  const config = yaml.load(configContent);
52
52
  if (!config) {
53
53
  throw new Error('Config is empty');
54
54
  }
55
- if (config.server.default_active || profiles_list.includes(config.name)){
55
+ if (profiles_list.includes(config.name) || (profiles_list.length == 0 && config.server.default_active)) {
56
56
 
57
57
  (config.tools || []).forEach(tool => {
58
58
  if (this.tools.includes(tool.name)) {
@@ -68,8 +68,8 @@ export class DingTalkMCPServer {
68
68
  }
69
69
  );
70
70
  if (this.tools && this.tools.length > 0) {
71
- console.info(`Loaded ${this.tools.length} tools from config`);
72
- console.info(`Tools: ${this.tools.map(t => t.name).join(', ')}`);
71
+ console.error(`Loaded ${this.tools.length} tools from config`);
72
+ console.error(`Tools: ${this.tools.map(t => t.name).join(', ')}`);
73
73
  }else{
74
74
  throw new Error('No tools found in config, tools is empty');
75
75
  }
@@ -433,7 +433,7 @@ export class DingTalkMCPServer {
433
433
  async run() {
434
434
  const transport = new StdioServerTransport();
435
435
  await this.server.connect(transport);
436
- console.info('DingTalk MCP server running on stdio');
436
+ console.error('DingTalk MCP server running on stdio');
437
437
  }
438
438
  }
439
439
  //# sourceMappingURL=DingTalkMCPServer.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dingtalk-mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "DingTalk MCP Server - A TypeScript-based MCP server for DingTalk integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",