dingtalk-mcp 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/dist/DingTalkMCPServer.js +2 -2
- package/dist/cli.js +1 -0
- package/package.json +1 -1
|
@@ -36,7 +36,7 @@ export class DingTalkMCPServer {
|
|
|
36
36
|
try {
|
|
37
37
|
//激活的profile
|
|
38
38
|
const profiles = process.env.ACTIOVE_PROFILES;
|
|
39
|
-
|
|
39
|
+
let profiles_list = [];
|
|
40
40
|
if (profiles){
|
|
41
41
|
profiles_list = profiles.split(',');
|
|
42
42
|
}
|
|
@@ -52,7 +52,7 @@ export class DingTalkMCPServer {
|
|
|
52
52
|
if (!config) {
|
|
53
53
|
throw new Error('Config is empty');
|
|
54
54
|
}
|
|
55
|
-
if (profiles_list.includes(config.name) || (profiles_list.length == 0 && config.server.default_active)) {
|
|
55
|
+
if (profiles_list.includes(config.server.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)) {
|
package/dist/cli.js
CHANGED
|
@@ -3,6 +3,7 @@ import { DingTalkMCPServer } from './DingTalkMCPServer.js';
|
|
|
3
3
|
async function main() {
|
|
4
4
|
try {
|
|
5
5
|
// process.env.debug = true;
|
|
6
|
+
// process.env.ACTIOVE_PROFILES = "dingtalk-contacts,dingtalk-robot-send-message";
|
|
6
7
|
const server = new DingTalkMCPServer();
|
|
7
8
|
await server.run();
|
|
8
9
|
}
|