@awebai/claude-channel 0.1.0 → 0.1.2
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/.claude-plugin/plugin.json +10 -0
- package/.mcp.json +8 -0
- package/dist/index.js +2 -2
- package/package.json +5 -2
- package/skills/configure/SKILL.md +74 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "aweb-channel",
|
|
3
|
+
"description": "aweb agent coordination channel — receive mail, chat, tasks, and control signals from your agent team in real time.",
|
|
4
|
+
"version": "0.1.2",
|
|
5
|
+
"author": { "name": "awebai" },
|
|
6
|
+
"homepage": "https://aweb.ai",
|
|
7
|
+
"repository": "https://github.com/awebai/aweb",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"keywords": ["aweb", "agents", "coordination", "channel", "mcp"]
|
|
10
|
+
}
|
package/.mcp.json
ADDED
package/dist/index.js
CHANGED
|
@@ -66,11 +66,11 @@ async function main() {
|
|
|
66
66
|
const config = await resolveConfig(workdir);
|
|
67
67
|
const client = new APIClient(config.baseURL, config.apiKey);
|
|
68
68
|
const pinStore = await loadPinStore();
|
|
69
|
-
const mcp = new Server({ name: "
|
|
69
|
+
const mcp = new Server({ name: "aweb", version: "0.1.0" }, {
|
|
70
70
|
capabilities: {
|
|
71
71
|
experimental: { "claude/channel": {} },
|
|
72
72
|
},
|
|
73
|
-
instructions: `Events from the
|
|
73
|
+
instructions: `Events from the aweb channel are coordination messages from other agents in your team. Use the aw CLI to respond, not MCP tools.
|
|
74
74
|
|
|
75
75
|
Mail events (type="mail") are async. Read them and act if needed. Acknowledge with: aw mail ack <message_id>
|
|
76
76
|
|
package/package.json
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awebai/claude-channel",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"bin": "./dist/index.js",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist",
|
|
10
|
+
".claude-plugin",
|
|
11
|
+
".mcp.json",
|
|
12
|
+
"skills",
|
|
10
13
|
"README.md",
|
|
11
14
|
"package.json"
|
|
12
15
|
],
|
|
13
16
|
"scripts": {
|
|
14
|
-
"build": "tsc -p tsconfig.json",
|
|
17
|
+
"build": "rm -rf dist && tsc -p tsconfig.json",
|
|
15
18
|
"prepublishOnly": "npm run build",
|
|
16
19
|
"test": "vitest run --exclude test/integration.test.ts",
|
|
17
20
|
"test:integration": "vitest run test/integration.test.ts",
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: aw:configure
|
|
3
|
+
description: Check and set up the aweb channel connection. Verifies workspace binding, credentials, and MCP server configuration.
|
|
4
|
+
allowed-tools: Bash(aw *), Bash(cat *), Bash(test *), Bash(ls *)
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Configure aweb channel
|
|
8
|
+
|
|
9
|
+
Diagnose and fix the aweb channel setup for this project.
|
|
10
|
+
|
|
11
|
+
## Steps
|
|
12
|
+
|
|
13
|
+
1. **Check workspace binding.**
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
test -f .aw/workspace.yaml && echo "OK" || echo "MISSING"
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
If `.aw/workspace.yaml` is missing, the workspace has not been initialized.
|
|
20
|
+
Tell the user to run:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
aw init
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
This requires credentials (`~/.config/aw/config.yaml`). If the user doesn't
|
|
27
|
+
have credentials yet, they need to either:
|
|
28
|
+
- Create a project: `aw project create --server-url https://app.aweb.ai`
|
|
29
|
+
- Connect with an API key: `AWEB_URL=https://app.aweb.ai/api AWEB_API_KEY=aw_sk_... aw connect`
|
|
30
|
+
|
|
31
|
+
Stop here until the user has run `aw init` successfully.
|
|
32
|
+
|
|
33
|
+
2. **Verify the workspace is valid.**
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
aw workspace status
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
This confirms the workspace can reach the server. If it fails, the
|
|
40
|
+
credentials may be expired or the server may be unreachable.
|
|
41
|
+
|
|
42
|
+
3. **Check channel MCP configuration.**
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
cat .mcp.json 2>/dev/null || echo "MISSING"
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Look for an `mcpServers.aweb` entry. If it's missing, tell the user to run:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
aw init --setup-channel
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Or add the entry manually to `.mcp.json`:
|
|
55
|
+
|
|
56
|
+
```json
|
|
57
|
+
{
|
|
58
|
+
"mcpServers": {
|
|
59
|
+
"aweb": {
|
|
60
|
+
"command": "npx",
|
|
61
|
+
"args": ["@awebai/claude-channel"],
|
|
62
|
+
"cwd": "<project directory>"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
The `cwd` must point to the directory containing `.aw/workspace.yaml`.
|
|
69
|
+
|
|
70
|
+
4. **Report status.** Summarize what was found and any actions the user needs to take. If everything is configured, tell the user to start Claude Code with:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
claude --dangerously-load-development-channels server:aweb
|
|
74
|
+
```
|