@anticeil/mcp 0.0.0-stage → 1.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/README.md +35 -2
- package/dist/index.js +303 -0
- package/package.json +40 -4
package/README.md
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @anticeil/mcp
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Official Model Context Protocol (MCP) server for **Anticeil Chat**. Allows AI Agents (Claude Desktop, Cursor, Antigravity) to read and post messages, manage colonies, configure privacy, and launch collaborative activities.
|
|
4
|
+
|
|
5
|
+
## Quick Start (Zero Install)
|
|
6
|
+
```bash
|
|
7
|
+
npx -y @anticeil/mcp
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Tools Included
|
|
11
|
+
- `anticeil_list_colonies`: List accessible workspaces.
|
|
12
|
+
- `anticeil_list_channels`: List channels inside a colony.
|
|
13
|
+
- `anticeil_send_message`: Send markdown chat messages.
|
|
14
|
+
- `anticeil_get_messages`: Read channel history.
|
|
15
|
+
- `anticeil_set_privacy`: Configure colony privacy and domain whitelist.
|
|
16
|
+
- `anticeil_trigger_activity`: Launch Excalidraw, YouTube, or Chess.
|
|
17
|
+
- `anticeil_post_webhook`: Dispatch rich webhook embed cards.
|
|
18
|
+
|
|
19
|
+
## Claude Desktop Configuration
|
|
20
|
+
```json
|
|
21
|
+
{
|
|
22
|
+
"mcpServers": {
|
|
23
|
+
"anticeil": {
|
|
24
|
+
"command": "npx",
|
|
25
|
+
"args": ["-y", "@anticeil/mcp"],
|
|
26
|
+
"env": {
|
|
27
|
+
"ANTICEIL_API_KEY": "YOUR_ANTICEIL_API_KEY",
|
|
28
|
+
"ANTICEIL_BASE_URL": "https://app.anticeil.com"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## License
|
|
36
|
+
MIT
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
|
|
5
|
+
// src/index.ts
|
|
6
|
+
var import_server = require("@modelcontextprotocol/sdk/server/index.js");
|
|
7
|
+
var import_stdio = require("@modelcontextprotocol/sdk/server/stdio.js");
|
|
8
|
+
var import_types = require("@modelcontextprotocol/sdk/types.js");
|
|
9
|
+
var import_sdk = require("@anticeil/sdk");
|
|
10
|
+
var ANTICEIL_BASE_URL = process.env.ANTICEIL_BASE_URL || "https://app.anticeil.com";
|
|
11
|
+
var ANTICEIL_API_KEY = process.env.ANTICEIL_API_KEY || process.env.ANTICEIL_TOKEN || "";
|
|
12
|
+
var client = new import_sdk.AnticeilClient({
|
|
13
|
+
baseUrl: ANTICEIL_BASE_URL,
|
|
14
|
+
apiKey: ANTICEIL_API_KEY,
|
|
15
|
+
autoConnect: false
|
|
16
|
+
});
|
|
17
|
+
var server = new import_server.Server(
|
|
18
|
+
{
|
|
19
|
+
name: "anticeil-mcp",
|
|
20
|
+
version: "1.0.0"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
capabilities: {
|
|
24
|
+
tools: {}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
server.setRequestHandler(import_types.ListToolsRequestSchema, async () => {
|
|
29
|
+
return {
|
|
30
|
+
tools: [
|
|
31
|
+
{
|
|
32
|
+
name: "anticeil_list_colonies",
|
|
33
|
+
description: "List all colonies (servers/workspaces) accessible by the current Anticeil credentials.",
|
|
34
|
+
inputSchema: {
|
|
35
|
+
type: "object",
|
|
36
|
+
properties: {}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "anticeil_list_channels",
|
|
41
|
+
description: "List all text and voice channels inside a specific Anticeil colony.",
|
|
42
|
+
inputSchema: {
|
|
43
|
+
type: "object",
|
|
44
|
+
properties: {
|
|
45
|
+
colonyId: {
|
|
46
|
+
type: "string",
|
|
47
|
+
description: "The unique ID or slug of the colony."
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
required: ["colonyId"]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: "anticeil_send_message",
|
|
55
|
+
description: "Send a message to an Anticeil text channel.",
|
|
56
|
+
inputSchema: {
|
|
57
|
+
type: "object",
|
|
58
|
+
properties: {
|
|
59
|
+
channelId: {
|
|
60
|
+
type: "string",
|
|
61
|
+
description: "The target channel ID."
|
|
62
|
+
},
|
|
63
|
+
content: {
|
|
64
|
+
type: "string",
|
|
65
|
+
description: "The markdown-formatted message content."
|
|
66
|
+
},
|
|
67
|
+
replyToId: {
|
|
68
|
+
type: "string",
|
|
69
|
+
description: "Optional parent message ID to reply to."
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
required: ["channelId", "content"]
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "anticeil_get_messages",
|
|
77
|
+
description: "Fetch recent messages from an Anticeil channel.",
|
|
78
|
+
inputSchema: {
|
|
79
|
+
type: "object",
|
|
80
|
+
properties: {
|
|
81
|
+
channelId: {
|
|
82
|
+
type: "string",
|
|
83
|
+
description: "The channel ID to fetch messages from."
|
|
84
|
+
},
|
|
85
|
+
limit: {
|
|
86
|
+
type: "number",
|
|
87
|
+
description: "Number of messages to retrieve (default: 30, max: 100)."
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
required: ["channelId"]
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "anticeil_set_privacy",
|
|
95
|
+
description: "Update the privacy and visibility settings of a colony.",
|
|
96
|
+
inputSchema: {
|
|
97
|
+
type: "object",
|
|
98
|
+
properties: {
|
|
99
|
+
colonyId: {
|
|
100
|
+
type: "string",
|
|
101
|
+
description: "The colony ID."
|
|
102
|
+
},
|
|
103
|
+
isPrivate: {
|
|
104
|
+
type: "boolean",
|
|
105
|
+
description: "Whether the colony is restricted to invitees (invite_only) or public (discoverable)."
|
|
106
|
+
},
|
|
107
|
+
rulesEnabled: {
|
|
108
|
+
type: "boolean",
|
|
109
|
+
description: "Whether screening rules/guidelines must be acknowledged before joining."
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
required: ["colonyId", "isPrivate"]
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: "anticeil_trigger_activity",
|
|
117
|
+
description: "Launch an embedded multiplayer activity (Excalidraw, YouTube Watch Together, Chess) in a channel.",
|
|
118
|
+
inputSchema: {
|
|
119
|
+
type: "object",
|
|
120
|
+
properties: {
|
|
121
|
+
channelId: {
|
|
122
|
+
type: "string",
|
|
123
|
+
description: "The voice or text channel ID."
|
|
124
|
+
},
|
|
125
|
+
type: {
|
|
126
|
+
type: "string",
|
|
127
|
+
enum: ["excalidraw", "youtube", "chess"],
|
|
128
|
+
description: "Type of activity to launch."
|
|
129
|
+
},
|
|
130
|
+
title: {
|
|
131
|
+
type: "string",
|
|
132
|
+
description: "Optional title or context for the session."
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
required: ["channelId", "type"]
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: "anticeil_post_webhook",
|
|
140
|
+
description: "Post an automated notification or rich embed card via incoming webhook.",
|
|
141
|
+
inputSchema: {
|
|
142
|
+
type: "object",
|
|
143
|
+
properties: {
|
|
144
|
+
webhookUrl: {
|
|
145
|
+
type: "string",
|
|
146
|
+
description: "The webhook endpoint URL."
|
|
147
|
+
},
|
|
148
|
+
content: {
|
|
149
|
+
type: "string",
|
|
150
|
+
description: "Text message content."
|
|
151
|
+
},
|
|
152
|
+
username: {
|
|
153
|
+
type: "string",
|
|
154
|
+
description: "Custom bot or integration display name."
|
|
155
|
+
},
|
|
156
|
+
avatarUrl: {
|
|
157
|
+
type: "string",
|
|
158
|
+
description: "Custom bot avatar image URL."
|
|
159
|
+
},
|
|
160
|
+
embeds: {
|
|
161
|
+
type: "array",
|
|
162
|
+
items: {
|
|
163
|
+
type: "object",
|
|
164
|
+
properties: {
|
|
165
|
+
title: { type: "string" },
|
|
166
|
+
description: { type: "string" },
|
|
167
|
+
color: { type: "string" },
|
|
168
|
+
fields: {
|
|
169
|
+
type: "array",
|
|
170
|
+
items: {
|
|
171
|
+
type: "object",
|
|
172
|
+
properties: {
|
|
173
|
+
name: { type: "string" },
|
|
174
|
+
value: { type: "string" },
|
|
175
|
+
inline: { type: "boolean" }
|
|
176
|
+
},
|
|
177
|
+
required: ["name", "value"]
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
description: "List of rich embed cards."
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
required: ["webhookUrl"]
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
};
|
|
190
|
+
});
|
|
191
|
+
server.setRequestHandler(import_types.CallToolRequestSchema, async (req) => {
|
|
192
|
+
const { name, arguments: args = {} } = req.params;
|
|
193
|
+
try {
|
|
194
|
+
switch (name) {
|
|
195
|
+
case "anticeil_list_colonies": {
|
|
196
|
+
const colonies = await client.colonies.list();
|
|
197
|
+
return {
|
|
198
|
+
content: [{ type: "text", text: JSON.stringify(colonies, null, 2) }]
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
case "anticeil_list_channels": {
|
|
202
|
+
const { colonyId } = args;
|
|
203
|
+
const channels = await client.channels.list(colonyId);
|
|
204
|
+
return {
|
|
205
|
+
content: [{ type: "text", text: JSON.stringify(channels, null, 2) }]
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
case "anticeil_send_message": {
|
|
209
|
+
const { channelId, content, replyToId } = args;
|
|
210
|
+
const message = await client.messages.send(channelId, { content, replyToId });
|
|
211
|
+
return {
|
|
212
|
+
content: [
|
|
213
|
+
{
|
|
214
|
+
type: "text",
|
|
215
|
+
text: `Message posted successfully:
|
|
216
|
+
${JSON.stringify(message, null, 2)}`
|
|
217
|
+
}
|
|
218
|
+
]
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
case "anticeil_get_messages": {
|
|
222
|
+
const { channelId, limit = 30 } = args;
|
|
223
|
+
const messages = await client.messages.list(channelId, limit);
|
|
224
|
+
return {
|
|
225
|
+
content: [{ type: "text", text: JSON.stringify(messages, null, 2) }]
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
case "anticeil_set_privacy": {
|
|
229
|
+
const { colonyId, isPrivate, rulesEnabled = false } = args;
|
|
230
|
+
const updated = await client.colonies.setPrivacy(
|
|
231
|
+
colonyId,
|
|
232
|
+
isPrivate ? "invite_only" : "discoverable",
|
|
233
|
+
{ rulesEnabled }
|
|
234
|
+
);
|
|
235
|
+
return {
|
|
236
|
+
content: [
|
|
237
|
+
{
|
|
238
|
+
type: "text",
|
|
239
|
+
text: `Colony privacy updated successfully:
|
|
240
|
+
${JSON.stringify(updated, null, 2)}`
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
case "anticeil_trigger_activity": {
|
|
246
|
+
const { channelId, type, title } = args;
|
|
247
|
+
const activity = await client.activities.launch({
|
|
248
|
+
channelId,
|
|
249
|
+
type,
|
|
250
|
+
title
|
|
251
|
+
});
|
|
252
|
+
return {
|
|
253
|
+
content: [
|
|
254
|
+
{
|
|
255
|
+
type: "text",
|
|
256
|
+
text: `Activity ${type} launched successfully:
|
|
257
|
+
${JSON.stringify(activity, null, 2)}`
|
|
258
|
+
}
|
|
259
|
+
]
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
case "anticeil_post_webhook": {
|
|
263
|
+
const { webhookUrl, content, username, avatarUrl, embeds } = args;
|
|
264
|
+
const res = await client.webhooks.send(webhookUrl, {
|
|
265
|
+
content,
|
|
266
|
+
username,
|
|
267
|
+
avatarUrl,
|
|
268
|
+
embeds
|
|
269
|
+
});
|
|
270
|
+
return {
|
|
271
|
+
content: [
|
|
272
|
+
{
|
|
273
|
+
type: "text",
|
|
274
|
+
text: `Webhook posted successfully:
|
|
275
|
+
${JSON.stringify(res, null, 2)}`
|
|
276
|
+
}
|
|
277
|
+
]
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
default:
|
|
281
|
+
throw new import_types.McpError(import_types.ErrorCode.MethodNotFound, `Unknown tool: ${name}`);
|
|
282
|
+
}
|
|
283
|
+
} catch (err) {
|
|
284
|
+
return {
|
|
285
|
+
isError: true,
|
|
286
|
+
content: [
|
|
287
|
+
{
|
|
288
|
+
type: "text",
|
|
289
|
+
text: `Error executing ${name}: ${err?.message || String(err)}`
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
async function main() {
|
|
296
|
+
const transport = new import_stdio.StdioServerTransport();
|
|
297
|
+
await server.connect(transport);
|
|
298
|
+
console.error("Anticeil MCP Server running on stdio");
|
|
299
|
+
}
|
|
300
|
+
main().catch((err) => {
|
|
301
|
+
console.error("Fatal error running Anticeil MCP Server:", err);
|
|
302
|
+
process.exit(1);
|
|
303
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anticeil/mcp",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Model Context Protocol (MCP) server for Anticeil Chat, Voice, Activities, and Bot Platform",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"anticeil-mcp": "./dist/index.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"test": "node --test test/mcp.test.mjs",
|
|
14
|
+
"build": "tsup",
|
|
15
|
+
"start": "node dist/index.js",
|
|
16
|
+
"prepublishOnly": "npm run build"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"anticeil",
|
|
20
|
+
"mcp",
|
|
21
|
+
"model-context-protocol",
|
|
22
|
+
"ai-agent",
|
|
23
|
+
"claude",
|
|
24
|
+
"cursor",
|
|
25
|
+
"chat"
|
|
26
|
+
],
|
|
27
|
+
"author": "Anticeil Team <dev@anticeil.com>",
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@anticeil/sdk": "^1.0.0",
|
|
34
|
+
"@modelcontextprotocol/sdk": "^1.6.0",
|
|
35
|
+
"socket.io-client": "^4.8.1"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/node": "^22.13.0",
|
|
39
|
+
"tsup": "^8.3.6",
|
|
40
|
+
"typescript": "^5.7.3"
|
|
41
|
+
}
|
|
42
|
+
}
|