@orygn/discord-mcp 2.0.0-rc.0 → 2.0.0
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/LICENSE +202 -202
- package/README.md +353 -353
- package/dist/wizardLib.js +26 -5
- package/package.json +70 -70
package/dist/wizardLib.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { existsSync, readdirSync } from "node:fs";
|
|
2
|
-
import { dirname, join, resolve } from "node:path";
|
|
1
|
+
import { existsSync, readdirSync, realpathSync } from "node:fs";
|
|
2
|
+
import { basename, dirname, join, resolve } from "node:path";
|
|
3
3
|
import { PermissionFlagsBits } from "discord-api-types/v10";
|
|
4
4
|
import { PERMISSION_PRESETS } from "./discord/preflight.js";
|
|
5
5
|
// The pure half of the setup wizard. Everything here is a function of its
|
|
@@ -213,6 +213,25 @@ export function dataMovedOut(dir) {
|
|
|
213
213
|
return false;
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
+
// Where a path really is, with any links in it followed. The file may not
|
|
217
|
+
// exist yet, so the nearest folder that does is followed and the rest is
|
|
218
|
+
// kept as written.
|
|
219
|
+
function realLocation(p) {
|
|
220
|
+
let head = resolve(p);
|
|
221
|
+
const tail = [];
|
|
222
|
+
for (;;) {
|
|
223
|
+
try {
|
|
224
|
+
return join(realpathSync(head), ...tail);
|
|
225
|
+
}
|
|
226
|
+
catch {
|
|
227
|
+
const parent = dirname(head);
|
|
228
|
+
if (parent === head)
|
|
229
|
+
return resolve(p);
|
|
230
|
+
tail.unshift(basename(head));
|
|
231
|
+
head = parent;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
216
235
|
// Known client config locations. For each, the wizard records whether the
|
|
217
236
|
// config file exists and whether the client looks installed (its config
|
|
218
237
|
// directory is present), so it can offer a client even before that client
|
|
@@ -226,10 +245,12 @@ export function clientConfigCandidates(env) {
|
|
|
226
245
|
// Run from the home folder, a project-scoped path can be the very same
|
|
227
246
|
// file as a global one (Cursor's ~/.cursor/mcp.json, for one). Listing it
|
|
228
247
|
// twice would ask about and write the same file twice, so the first label
|
|
229
|
-
// keeps it.
|
|
248
|
+
// keeps it. Links are followed first: with a home folder behind one, the
|
|
249
|
+
// working folder comes back as the real path and the same file arrives
|
|
250
|
+
// under two spellings. Windows paths compare without case.
|
|
230
251
|
const key = (p) => {
|
|
231
|
-
const
|
|
232
|
-
return env.platform === "win32" ?
|
|
252
|
+
const real = realLocation(p);
|
|
253
|
+
return env.platform === "win32" ? real.toLowerCase() : real;
|
|
233
254
|
};
|
|
234
255
|
const push = (client, label, path) => {
|
|
235
256
|
if (out.some((c) => key(c.path) === key(path)))
|
package/package.json
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@orygn/discord-mcp",
|
|
3
|
-
"version": "2.0.0
|
|
4
|
-
"description": "Discord server management MCP for AI agents: chat, moderation, admin, and full server building. Formerly Omnicord.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"license": "Apache-2.0",
|
|
7
|
-
"author": "Orygn LLC",
|
|
8
|
-
"homepage": "https://github.com/OrygnsCode/discord-mcp#readme",
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/OrygnsCode/discord-mcp.git"
|
|
12
|
-
},
|
|
13
|
-
"bugs": {
|
|
14
|
-
"url": "https://github.com/OrygnsCode/discord-mcp/issues"
|
|
15
|
-
},
|
|
16
|
-
"keywords": [
|
|
17
|
-
"discord",
|
|
18
|
-
"discord-mcp",
|
|
19
|
-
"mcp-discord",
|
|
20
|
-
"discord-mcp-server",
|
|
21
|
-
"mcp",
|
|
22
|
-
"model-context-protocol",
|
|
23
|
-
"mcp-server",
|
|
24
|
-
"discord-bot",
|
|
25
|
-
"discord-server",
|
|
26
|
-
"moderation",
|
|
27
|
-
"server-builder",
|
|
28
|
-
"ai",
|
|
29
|
-
"claude",
|
|
30
|
-
"omnicord"
|
|
31
|
-
],
|
|
32
|
-
"engines": {
|
|
33
|
-
"node": ">=22"
|
|
34
|
-
},
|
|
35
|
-
"bin": {
|
|
36
|
-
"orygn-discord-mcp": "dist/index.js"
|
|
37
|
-
},
|
|
38
|
-
"main": "dist/index.js",
|
|
39
|
-
"files": [
|
|
40
|
-
"dist"
|
|
41
|
-
],
|
|
42
|
-
"publishConfig": {
|
|
43
|
-
"access": "public"
|
|
44
|
-
},
|
|
45
|
-
"scripts": {
|
|
46
|
-
"build": "tsc",
|
|
47
|
-
"dev": "tsx src/index.ts",
|
|
48
|
-
"smoke": "npm run build && node scripts/smoke.mjs && node scripts/smoke-modern.mjs && node scripts/smoke-dialog.mjs && node scripts/smoke-http.mjs",
|
|
49
|
-
"test": "npm run build && node scripts/unit.mjs && node scripts/smoke.mjs && node scripts/smoke-modern.mjs && node scripts/smoke-dialog.mjs && node scripts/smoke-http.mjs",
|
|
50
|
-
"prepublishOnly": "npm test"
|
|
51
|
-
},
|
|
52
|
-
"dependencies": {
|
|
53
|
-
"@discordjs/rest": "^2.6.1",
|
|
54
|
-
"@discordjs/ws": "^2.0.4",
|
|
55
|
-
"@modelcontextprotocol/server": "^2.4.0",
|
|
56
|
-
"discord-api-types": "^0.38.58",
|
|
57
|
-
"dotenv": "^17.2.1",
|
|
58
|
-
"zod": "^4.6.7"
|
|
59
|
-
},
|
|
60
|
-
"devDependencies": {
|
|
61
|
-
"@modelcontextprotocol/client": "^2.4.0",
|
|
62
|
-
"@types/node": "^24.19.2",
|
|
63
|
-
"tsx": "^4.23.15",
|
|
64
|
-
"typescript": "^7.0.2"
|
|
65
|
-
},
|
|
66
|
-
"overrides": {
|
|
67
|
-
"undici": "^6.29.1"
|
|
68
|
-
},
|
|
69
|
-
"mcpName": "io.github.OrygnsCode/discord-mcp"
|
|
70
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@orygn/discord-mcp",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Discord server management MCP for AI agents: chat, moderation, admin, and full server building. Formerly Omnicord.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"author": "Orygn LLC",
|
|
8
|
+
"homepage": "https://github.com/OrygnsCode/discord-mcp#readme",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/OrygnsCode/discord-mcp.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/OrygnsCode/discord-mcp/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"discord",
|
|
18
|
+
"discord-mcp",
|
|
19
|
+
"mcp-discord",
|
|
20
|
+
"discord-mcp-server",
|
|
21
|
+
"mcp",
|
|
22
|
+
"model-context-protocol",
|
|
23
|
+
"mcp-server",
|
|
24
|
+
"discord-bot",
|
|
25
|
+
"discord-server",
|
|
26
|
+
"moderation",
|
|
27
|
+
"server-builder",
|
|
28
|
+
"ai",
|
|
29
|
+
"claude",
|
|
30
|
+
"omnicord"
|
|
31
|
+
],
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=22"
|
|
34
|
+
},
|
|
35
|
+
"bin": {
|
|
36
|
+
"orygn-discord-mcp": "dist/index.js"
|
|
37
|
+
},
|
|
38
|
+
"main": "dist/index.js",
|
|
39
|
+
"files": [
|
|
40
|
+
"dist"
|
|
41
|
+
],
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsc",
|
|
47
|
+
"dev": "tsx src/index.ts",
|
|
48
|
+
"smoke": "npm run build && node scripts/smoke.mjs && node scripts/smoke-modern.mjs && node scripts/smoke-dialog.mjs && node scripts/smoke-http.mjs",
|
|
49
|
+
"test": "npm run build && node scripts/unit.mjs && node scripts/smoke.mjs && node scripts/smoke-modern.mjs && node scripts/smoke-dialog.mjs && node scripts/smoke-http.mjs",
|
|
50
|
+
"prepublishOnly": "npm test"
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@discordjs/rest": "^2.6.1",
|
|
54
|
+
"@discordjs/ws": "^2.0.4",
|
|
55
|
+
"@modelcontextprotocol/server": "^2.4.0",
|
|
56
|
+
"discord-api-types": "^0.38.58",
|
|
57
|
+
"dotenv": "^17.2.1",
|
|
58
|
+
"zod": "^4.6.7"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@modelcontextprotocol/client": "^2.4.0",
|
|
62
|
+
"@types/node": "^24.19.2",
|
|
63
|
+
"tsx": "^4.23.15",
|
|
64
|
+
"typescript": "^7.0.2"
|
|
65
|
+
},
|
|
66
|
+
"overrides": {
|
|
67
|
+
"undici": "^6.29.1"
|
|
68
|
+
},
|
|
69
|
+
"mcpName": "io.github.OrygnsCode/discord-mcp"
|
|
70
|
+
}
|