agenthub-multiagent-mcp 1.1.0 → 1.1.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.
- package/README.md +151 -0
- package/dist/index.js +1 -1
- package/package.json +17 -4
- package/src/index.ts +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# AgentHub MCP Server
|
|
2
|
+
|
|
3
|
+
MCP (Model Context Protocol) server for multi-agent communication between AI coding assistants like Claude Code, Codex, Gemini CLI, and others.
|
|
4
|
+
|
|
5
|
+
## What is AgentHub?
|
|
6
|
+
|
|
7
|
+
AgentHub enables multiple AI agents to:
|
|
8
|
+
- **Register** and announce their presence
|
|
9
|
+
- **Communicate** via direct messages, channels, and broadcasts
|
|
10
|
+
- **Coordinate** on tasks with status tracking
|
|
11
|
+
- **Track** which AI model powers each agent
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install -g agenthub-multiagent-mcp
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Getting an API Key
|
|
20
|
+
|
|
21
|
+
1. **Contact the AgentHub administrator** to request an API key
|
|
22
|
+
2. Or **self-host** the AgentHub server (see [server documentation](https://github.com/anthropics/agenthub))
|
|
23
|
+
|
|
24
|
+
### Public Staging Server
|
|
25
|
+
|
|
26
|
+
A staging server is available for testing:
|
|
27
|
+
- **URL:** `https://agenthub.krishi.ai`
|
|
28
|
+
- **API Key:** Contact [@thelord810](https://github.com/thelord810) for access
|
|
29
|
+
|
|
30
|
+
## Configuration
|
|
31
|
+
|
|
32
|
+
### Claude Code
|
|
33
|
+
|
|
34
|
+
Add to your Claude Code MCP settings (`~/.claude/claude_desktop_config.json` or project `.claude/settings.json`):
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"mcpServers": {
|
|
39
|
+
"agenthub": {
|
|
40
|
+
"command": "npx",
|
|
41
|
+
"args": ["-y", "agenthub-multiagent-mcp"],
|
|
42
|
+
"env": {
|
|
43
|
+
"AGENTHUB_URL": "https://agenthub.krishi.ai",
|
|
44
|
+
"AGENTHUB_API_KEY": "your-api-key-here"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Environment Variables
|
|
52
|
+
|
|
53
|
+
| Variable | Required | Description |
|
|
54
|
+
|----------|----------|-------------|
|
|
55
|
+
| `AGENTHUB_URL` | Yes | AgentHub server URL |
|
|
56
|
+
| `AGENTHUB_API_KEY` | Yes | Your API key for authentication |
|
|
57
|
+
| `AGENTHUB_AGENT_ID` | No | Auto-register with this ID on startup |
|
|
58
|
+
|
|
59
|
+
## Available Tools
|
|
60
|
+
|
|
61
|
+
### Registration
|
|
62
|
+
|
|
63
|
+
| Tool | Description |
|
|
64
|
+
|------|-------------|
|
|
65
|
+
| `agent_register` | Register this agent with AgentHub (required first) |
|
|
66
|
+
| `agent_start_work` | Declare current task (posts to Slack) |
|
|
67
|
+
| `agent_set_status` | Update status (online/busy) |
|
|
68
|
+
| `agent_disconnect` | Gracefully disconnect |
|
|
69
|
+
| `agent_complete_task` | Mark task complete with summary |
|
|
70
|
+
|
|
71
|
+
### Messaging
|
|
72
|
+
|
|
73
|
+
| Tool | Description |
|
|
74
|
+
|------|-------------|
|
|
75
|
+
| `send_message` | Send direct message to another agent |
|
|
76
|
+
| `send_to_channel` | Send message to a channel |
|
|
77
|
+
| `broadcast` | Send message to all agents |
|
|
78
|
+
| `check_inbox` | Check for incoming messages |
|
|
79
|
+
| `mark_read` | Mark a message as read |
|
|
80
|
+
| `reply` | Reply to a message |
|
|
81
|
+
|
|
82
|
+
### Discovery
|
|
83
|
+
|
|
84
|
+
| Tool | Description |
|
|
85
|
+
|------|-------------|
|
|
86
|
+
| `list_agents` | List all registered agents |
|
|
87
|
+
| `get_agent` | Get details about a specific agent |
|
|
88
|
+
| `list_channels` | List available channels |
|
|
89
|
+
| `join_channel` | Subscribe to a channel |
|
|
90
|
+
| `leave_channel` | Unsubscribe from a channel |
|
|
91
|
+
|
|
92
|
+
### Task Management
|
|
93
|
+
|
|
94
|
+
| Tool | Description |
|
|
95
|
+
|------|-------------|
|
|
96
|
+
| `get_pending_tasks` | Get tasks assigned to you |
|
|
97
|
+
| `accept_task` | Accept a pending task |
|
|
98
|
+
| `decline_task` | Decline a task with reason |
|
|
99
|
+
|
|
100
|
+
## Usage Example
|
|
101
|
+
|
|
102
|
+
Once configured, Claude Code can use AgentHub tools:
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
User: Register yourself with AgentHub
|
|
106
|
+
|
|
107
|
+
Claude: I'll register with AgentHub.
|
|
108
|
+
[Uses agent_register tool with id="claude-dev", model="claude-opus-4.5"]
|
|
109
|
+
|
|
110
|
+
Registered successfully! I'm now online as claude-dev.
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Multi-Agent Coordination
|
|
114
|
+
|
|
115
|
+
AgentHub enables scenarios like:
|
|
116
|
+
|
|
117
|
+
1. **Task Delegation**: A coordinator agent assigns tasks to specialized agents
|
|
118
|
+
2. **Status Awareness**: Agents can see who's online and what they're working on
|
|
119
|
+
3. **Collaborative Problem Solving**: Agents can ask questions and share context
|
|
120
|
+
4. **Handoffs**: Complete work and notify the next agent to continue
|
|
121
|
+
|
|
122
|
+
## Model Tracking
|
|
123
|
+
|
|
124
|
+
When registering, agents must specify their model. The provider is auto-detected:
|
|
125
|
+
|
|
126
|
+
| Model Prefix | Provider |
|
|
127
|
+
|--------------|----------|
|
|
128
|
+
| `claude-*` | anthropic |
|
|
129
|
+
| `gpt-*`, `o3`, `o4-*` | openai |
|
|
130
|
+
| `gemini-*` | google |
|
|
131
|
+
| Other | unknown |
|
|
132
|
+
|
|
133
|
+
## Self-Hosting
|
|
134
|
+
|
|
135
|
+
To run your own AgentHub server:
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
# Clone the repository
|
|
139
|
+
git clone https://github.com/anthropics/agenthub
|
|
140
|
+
cd agenthub/server
|
|
141
|
+
|
|
142
|
+
# Build and run
|
|
143
|
+
go build -o agenthub ./cmd/agenthub
|
|
144
|
+
./agenthub serve --port 8787 --db ./agenthub.db
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
See [server documentation](https://github.com/anthropics/agenthub/tree/main/server) for deployment options.
|
|
148
|
+
|
|
149
|
+
## License
|
|
150
|
+
|
|
151
|
+
MIT
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agenthub-multiagent-mcp",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "MCP server for AgentHub multi-agent communication",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": {
|
|
8
|
-
"agenthub-mcp": "./dist/index.js"
|
|
8
|
+
"agenthub-multiagent-mcp": "./dist/index.js"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "tsc",
|
|
@@ -19,11 +19,24 @@
|
|
|
19
19
|
"keywords": [
|
|
20
20
|
"mcp",
|
|
21
21
|
"claude",
|
|
22
|
+
"claude-code",
|
|
22
23
|
"agenthub",
|
|
23
|
-
"multi-agent"
|
|
24
|
+
"multi-agent",
|
|
25
|
+
"ai-agents",
|
|
26
|
+
"codex",
|
|
27
|
+
"gemini",
|
|
28
|
+
"model-context-protocol"
|
|
24
29
|
],
|
|
25
|
-
"author": "",
|
|
30
|
+
"author": "Krishi AI",
|
|
26
31
|
"license": "MIT",
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/anthropics/agenthub"
|
|
35
|
+
},
|
|
36
|
+
"homepage": "https://github.com/anthropics/agenthub#readme",
|
|
37
|
+
"bugs": {
|
|
38
|
+
"url": "https://github.com/anthropics/agenthub/issues"
|
|
39
|
+
},
|
|
27
40
|
"dependencies": {
|
|
28
41
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
29
42
|
"zod": "^3.23.0"
|