sub-agents-mcp 0.1.3 → 0.1.5
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 +162 -146
- package/dist/server/McpServer.js +1 -1
- package/dist/server/McpServer.js.map +1 -1
- package/dist/utils/Logger.js +2 -2
- package/dist/utils/Logger.js.map +1 -1
- package/package.json +9 -3
package/README.md
CHANGED
|
@@ -1,34 +1,46 @@
|
|
|
1
1
|
# Sub-Agents MCP Server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/sub-agents-mcp)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
Bring Claude Code–style sub-agents to any MCP-compatible tool.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
This MCP server lets you define task-specific AI agents (like "test-writer" or "code-reviewer") in markdown files, and execute them via Cursor CLI or Claude Code CLI backends.
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
## Why?
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
Claude Code offers powerful sub-agent workflows—but they're limited to its own environment. This MCP server makes that workflow portable, so any MCP-compatible tool (Cursor, Claude Desktop, Windsurf, etc.) can use the same agents.
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
**Concrete benefits:**
|
|
15
|
+
- Define reusable agents once, use them across multiple tools
|
|
16
|
+
- Share agent definitions within teams regardless of IDE choice
|
|
17
|
+
- Leverage Cursor CLI or Claude Code CLI capabilities from any MCP client
|
|
14
18
|
|
|
15
|
-
|
|
16
|
-
- Cursor CLI or Claude Code installed
|
|
17
|
-
- Basic terminal/command line knowledge
|
|
19
|
+
→ [Read the full story](https://dev.to/shinpr/bringing-claude-codes-sub-agents-to-any-mcp-compatible-tool-1hb9)
|
|
18
20
|
|
|
19
|
-
##
|
|
21
|
+
## Table of Contents
|
|
20
22
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
- [Prerequisites](#prerequisites)
|
|
24
|
+
- [Quick Start](#quick-start)
|
|
25
|
+
- [Usage Examples](#usage-examples)
|
|
26
|
+
- [Agent Examples](#agent-examples)
|
|
27
|
+
- [Configuration Reference](#configuration-reference)
|
|
28
|
+
- [Troubleshooting](#troubleshooting)
|
|
29
|
+
- [How It Works](#how-it-works)
|
|
24
30
|
|
|
25
|
-
|
|
31
|
+
## Prerequisites
|
|
32
|
+
|
|
33
|
+
- Node.js 20 or higher
|
|
34
|
+
- One of these execution engines (they actually run the sub-agents):
|
|
35
|
+
- `cursor-agent` CLI (from Cursor)
|
|
36
|
+
- `claude` CLI (from Claude Code)
|
|
37
|
+
- An MCP-compatible tool (Cursor IDE, Claude Desktop, Windsurf, etc.)
|
|
26
38
|
|
|
27
|
-
## Quick Start
|
|
39
|
+
## Quick Start
|
|
28
40
|
|
|
29
|
-
###
|
|
41
|
+
### 1. Create Your First Agent
|
|
30
42
|
|
|
31
|
-
Create a folder for your agents and add
|
|
43
|
+
Create a folder for your agents and add `code-reviewer.md`:
|
|
32
44
|
|
|
33
45
|
```markdown
|
|
34
46
|
# Code Reviewer
|
|
@@ -40,31 +52,36 @@ Focus on:
|
|
|
40
52
|
- Checking code quality
|
|
41
53
|
```
|
|
42
54
|
|
|
43
|
-
###
|
|
55
|
+
### 2. Install Your Execution Engine
|
|
44
56
|
|
|
45
|
-
|
|
57
|
+
Pick one based on which tool you use:
|
|
58
|
+
|
|
59
|
+
**For Cursor users:**
|
|
46
60
|
```bash
|
|
47
|
-
# Install Cursor CLI
|
|
61
|
+
# Install Cursor CLI (includes cursor-agent)
|
|
48
62
|
curl https://cursor.com/install -fsS | bash
|
|
49
63
|
|
|
50
|
-
#
|
|
64
|
+
# Authenticate (required before first use)
|
|
51
65
|
cursor-agent login
|
|
52
66
|
```
|
|
53
67
|
|
|
54
|
-
**For Claude Code
|
|
55
|
-
|
|
68
|
+
**For Claude Code users:**
|
|
56
69
|
```bash
|
|
57
|
-
# Option 1:
|
|
58
|
-
|
|
70
|
+
# Option 1: Native install (recommended)
|
|
71
|
+
curl -fsSL https://claude.ai/install.sh | bash
|
|
59
72
|
|
|
60
|
-
# Option 2:
|
|
61
|
-
|
|
73
|
+
# Option 2: NPM (requires Node.js 18+)
|
|
74
|
+
npm install -g @anthropic-ai/claude-code
|
|
62
75
|
```
|
|
63
76
|
|
|
64
|
-
|
|
77
|
+
Note: Claude Code installs the `claude` CLI command.
|
|
78
|
+
|
|
79
|
+
### 3. Configure MCP
|
|
80
|
+
|
|
81
|
+
Add this to your MCP configuration file:
|
|
65
82
|
|
|
66
|
-
**
|
|
67
|
-
**
|
|
83
|
+
**Cursor:** `~/.cursor/mcp.json`
|
|
84
|
+
**Claude Desktop:** `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS)
|
|
68
85
|
|
|
69
86
|
```json
|
|
70
87
|
{
|
|
@@ -73,7 +90,7 @@ curl -fsSL claude.ai/install.sh | bash
|
|
|
73
90
|
"command": "npx",
|
|
74
91
|
"args": ["-y", "sub-agents-mcp"],
|
|
75
92
|
"env": {
|
|
76
|
-
"AGENTS_DIR": "/path/to/your/agents-folder",
|
|
93
|
+
"AGENTS_DIR": "/absolute/path/to/your/agents-folder",
|
|
77
94
|
"AGENT_TYPE": "cursor" // or "claude"
|
|
78
95
|
}
|
|
79
96
|
}
|
|
@@ -81,59 +98,99 @@ curl -fsSL claude.ai/install.sh | bash
|
|
|
81
98
|
}
|
|
82
99
|
```
|
|
83
100
|
|
|
84
|
-
**
|
|
85
|
-
- ✅
|
|
86
|
-
- ✅
|
|
87
|
-
- ❌
|
|
101
|
+
**Important:** Use absolute paths only.
|
|
102
|
+
- ✅ `/Users/john/Documents/my-agents` (Mac/Linux)
|
|
103
|
+
- ✅ `C:\\Users\\john\\Documents\\my-agents` (Windows)
|
|
104
|
+
- ❌ `./agents` or `~/agents` won't work
|
|
105
|
+
|
|
106
|
+
Restart your IDE and you're ready to go.
|
|
107
|
+
|
|
108
|
+
### 4. Fix "Permission Denied" Errors When Running Shell Commands
|
|
109
|
+
|
|
110
|
+
Sub-agents may fail to execute shell commands with permission errors. This happens because sub-agents can't respond to interactive permission prompts.
|
|
111
|
+
|
|
112
|
+
**Recommended approach:**
|
|
113
|
+
|
|
114
|
+
1. Run your CLI tool directly with the task you want sub-agents to handle:
|
|
115
|
+
```bash
|
|
116
|
+
# For Cursor users
|
|
117
|
+
cursor-agent
|
|
118
|
+
|
|
119
|
+
# For Claude Code users
|
|
120
|
+
claude
|
|
121
|
+
```
|
|
88
122
|
|
|
89
|
-
|
|
123
|
+
2. When prompted to allow commands (e.g., "Add Shell(cd), Shell(make) to allowlist?"), approve them
|
|
90
124
|
|
|
91
|
-
|
|
125
|
+
3. This automatically updates your configuration file, and those commands will now work when invoked via MCP sub-agents
|
|
92
126
|
|
|
93
|
-
|
|
127
|
+
**Manual configuration (alternative):**
|
|
94
128
|
|
|
95
|
-
|
|
129
|
+
If you prefer to configure permissions manually, edit:
|
|
130
|
+
- **Cursor**: `<project>/.cursor/cli.json` or `~/.cursor/cli-config.json`
|
|
131
|
+
- **Claude Code**: `.claude/settings.json` or `.claude/settings.local.json`
|
|
132
|
+
|
|
133
|
+
```json
|
|
134
|
+
{
|
|
135
|
+
"permissions": {
|
|
136
|
+
"allow": [
|
|
137
|
+
"Shell(cd)",
|
|
138
|
+
"Shell(make)",
|
|
139
|
+
"Shell(git)"
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Note: Agents often run commands as one-liners like `cd /path && make build`, so you need to allow all parts of the command.
|
|
146
|
+
|
|
147
|
+
## Usage Examples
|
|
148
|
+
|
|
149
|
+
Just tell your AI to use an agent:
|
|
96
150
|
|
|
97
|
-
**Using a code reviewer:**
|
|
98
151
|
```
|
|
99
152
|
"Use the code-reviewer agent to check my UserService class"
|
|
100
153
|
```
|
|
101
154
|
|
|
102
|
-
**Using a test writer:**
|
|
103
155
|
```
|
|
104
156
|
"Use the test-writer agent to create unit tests for the auth module"
|
|
105
157
|
```
|
|
106
158
|
|
|
107
|
-
**Using a documentation writer:**
|
|
108
159
|
```
|
|
109
160
|
"Use the doc-writer agent to add JSDoc comments to all public methods"
|
|
110
161
|
```
|
|
111
162
|
|
|
112
|
-
Your AI
|
|
163
|
+
Your AI automatically invokes the specialized agent and returns results.
|
|
113
164
|
|
|
114
|
-
##
|
|
165
|
+
## Agent Examples
|
|
115
166
|
|
|
116
|
-
|
|
167
|
+
Each `.md` or `.txt` file in your agents folder becomes an agent. The filename becomes the agent name (e.g., `test-writer.md` → "test-writer").
|
|
117
168
|
|
|
118
|
-
|
|
169
|
+
### Test Writer
|
|
170
|
+
|
|
171
|
+
**`test-writer.md`**
|
|
119
172
|
```markdown
|
|
120
173
|
# Test Writer
|
|
121
|
-
You
|
|
122
|
-
-
|
|
123
|
-
- Follow
|
|
174
|
+
You specialize in writing comprehensive unit tests.
|
|
175
|
+
- Cover edge cases
|
|
176
|
+
- Follow project testing patterns
|
|
124
177
|
- Ensure good coverage
|
|
125
178
|
```
|
|
126
179
|
|
|
127
|
-
|
|
180
|
+
### SQL Expert
|
|
181
|
+
|
|
182
|
+
**`sql-expert.md`**
|
|
128
183
|
```markdown
|
|
129
184
|
# SQL Expert
|
|
130
|
-
You
|
|
131
|
-
- Optimize
|
|
185
|
+
You're a database specialist who helps with queries.
|
|
186
|
+
- Optimize for performance
|
|
132
187
|
- Suggest proper indexes
|
|
133
188
|
- Help with complex JOINs
|
|
134
189
|
```
|
|
135
190
|
|
|
136
|
-
|
|
191
|
+
### Security Checker
|
|
192
|
+
|
|
193
|
+
**`security-checker.md`**
|
|
137
194
|
```markdown
|
|
138
195
|
# Security Checker
|
|
139
196
|
You focus on finding security vulnerabilities.
|
|
@@ -142,39 +199,38 @@ You focus on finding security vulnerabilities.
|
|
|
142
199
|
- Find potential data leaks
|
|
143
200
|
```
|
|
144
201
|
|
|
145
|
-
## Configuration
|
|
202
|
+
## Configuration Reference
|
|
146
203
|
|
|
147
|
-
### Required
|
|
204
|
+
### Required Environment Variables
|
|
148
205
|
|
|
149
|
-
**`AGENTS_DIR`**
|
|
150
|
-
|
|
151
|
-
- Mac/Linux: `/Users/john/my-agents`
|
|
152
|
-
- Windows: `C:\\Users\\john\\my-agents`
|
|
153
|
-
- Create this folder before configuring MCP
|
|
206
|
+
**`AGENTS_DIR`**
|
|
207
|
+
Path to your agents folder. Must be absolute.
|
|
154
208
|
|
|
155
|
-
**`AGENT_TYPE`**
|
|
156
|
-
|
|
157
|
-
-
|
|
209
|
+
**`AGENT_TYPE`**
|
|
210
|
+
Which execution engine to use:
|
|
211
|
+
- `"cursor"` - uses `cursor-agent` CLI
|
|
212
|
+
- `"claude"` - uses `claude` CLI
|
|
158
213
|
|
|
159
214
|
### Optional Settings
|
|
160
215
|
|
|
161
|
-
**`EXECUTION_TIMEOUT_MS`**
|
|
162
|
-
|
|
163
|
-
- Maximum: 10 minutes (600000ms)
|
|
164
|
-
|
|
165
|
-
### Creating Agents
|
|
166
|
-
|
|
167
|
-
Each `.md` or `.txt` file in your agents folder becomes an available agent.
|
|
216
|
+
**`EXECUTION_TIMEOUT_MS`**
|
|
217
|
+
How long agents can run before timing out (default: 5 minutes, max: 10 minutes)
|
|
168
218
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
219
|
+
Example with timeout:
|
|
220
|
+
```json
|
|
221
|
+
{
|
|
222
|
+
"mcpServers": {
|
|
223
|
+
"sub-agents": {
|
|
224
|
+
"command": "npx",
|
|
225
|
+
"args": ["-y", "sub-agents-mcp"],
|
|
226
|
+
"env": {
|
|
227
|
+
"AGENTS_DIR": "/absolute/path/to/agents",
|
|
228
|
+
"AGENT_TYPE": "cursor",
|
|
229
|
+
"EXECUTION_TIMEOUT_MS": "600000"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
178
234
|
```
|
|
179
235
|
|
|
180
236
|
### Security Note
|
|
@@ -183,86 +239,46 @@ Agents have access to your project directory. Only use agent definitions from tr
|
|
|
183
239
|
|
|
184
240
|
## Troubleshooting
|
|
185
241
|
|
|
186
|
-
###
|
|
187
|
-
|
|
188
|
-
**Symptoms:** Timeout errors, authentication failures, or "session expired" messages
|
|
189
|
-
|
|
190
|
-
**Solutions:**
|
|
242
|
+
### Timeout errors or authentication failures
|
|
191
243
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
cursor-agent login
|
|
195
|
-
```
|
|
196
|
-
This is the standard authentication method. Run this command before using the MCP server.
|
|
244
|
+
**If using Cursor CLI:**
|
|
245
|
+
Run `cursor-agent login` to authenticate. Sessions can expire, so just run this command again if you see auth errors.
|
|
197
246
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
If not found, reinstall Cursor CLI.
|
|
247
|
+
Verify installation:
|
|
248
|
+
```bash
|
|
249
|
+
which cursor-agent
|
|
250
|
+
```
|
|
203
251
|
|
|
204
|
-
|
|
205
|
-
|
|
252
|
+
**If using Claude Code:**
|
|
253
|
+
Make sure the CLI is properly installed and accessible.
|
|
206
254
|
|
|
207
|
-
### Agent
|
|
255
|
+
### Agent not found
|
|
208
256
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
257
|
+
Check that:
|
|
258
|
+
- `AGENTS_DIR` points to the correct directory (use absolute path)
|
|
259
|
+
- Your agent file has `.md` or `.txt` extension
|
|
260
|
+
- The filename uses hyphens or underscores (no spaces)
|
|
212
261
|
|
|
213
|
-
### Other
|
|
262
|
+
### Other execution errors
|
|
214
263
|
|
|
215
264
|
1. Verify `AGENT_TYPE` is set correctly (`cursor` or `claude`)
|
|
216
|
-
2. Ensure
|
|
217
|
-
|
|
218
|
-
- For `claude`: Ensure Claude Code CLI is installed
|
|
219
|
-
3. Check environment variables are properly set
|
|
220
|
-
|
|
265
|
+
2. Ensure your chosen CLI tool is installed and accessible
|
|
266
|
+
3. Double-check that all environment variables are set in the MCP config
|
|
221
267
|
|
|
222
268
|
## How It Works
|
|
223
269
|
|
|
224
|
-
|
|
225
|
-
1. You ask your AI to use an agent (e.g., "Use the test-writer agent")
|
|
226
|
-
2. The MCP server runs the specialized agent with your request
|
|
227
|
-
3. Results come back to your main AI assistant
|
|
228
|
-
|
|
229
|
-
## Additional Configuration Examples
|
|
270
|
+
This MCP server acts as a bridge between your AI tool and a supported execution engine (Cursor CLI or Claude Code CLI).
|
|
230
271
|
|
|
231
|
-
|
|
272
|
+
**The flow:**
|
|
232
273
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
"args": ["-y", "sub-agents-mcp"],
|
|
240
|
-
"env": {
|
|
241
|
-
"AGENTS_DIR": "/absolute/path/to/agents",
|
|
242
|
-
"AGENT_TYPE": "cursor",
|
|
243
|
-
"EXECUTION_TIMEOUT_MS": "300000" // Optional: 5 minutes default
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
```
|
|
274
|
+
1. You configure the MCP server in your client (Cursor, Claude Desktop, etc.)
|
|
275
|
+
2. The client automatically launches `sub-agents-mcp` as a background process when it starts
|
|
276
|
+
3. When your main AI assistant needs a sub-agent, it makes an MCP tool call
|
|
277
|
+
4. The MCP server reads the agent definition (markdown file) and invokes the selected CLI (`cursor-agent` or `claude`)
|
|
278
|
+
5. The execution engine runs the agent and streams results back through the MCP server
|
|
279
|
+
6. Your main assistant receives the results and continues working
|
|
249
280
|
|
|
250
|
-
|
|
251
|
-
```json
|
|
252
|
-
{
|
|
253
|
-
"mcpServers": {
|
|
254
|
-
"sub-agents": {
|
|
255
|
-
"command": "npx",
|
|
256
|
-
"args": ["-y", "sub-agents-mcp"],
|
|
257
|
-
"env": {
|
|
258
|
-
"AGENTS_DIR": "/absolute/path/to/agents",
|
|
259
|
-
"AGENT_TYPE": "claude",
|
|
260
|
-
"EXECUTION_TIMEOUT_MS": "300000" // Optional
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
```
|
|
281
|
+
This architecture lets any MCP-compatible tool benefit from specialized sub-agents, even if it doesn't have native support.
|
|
266
282
|
|
|
267
283
|
## License
|
|
268
284
|
|
|
@@ -270,4 +286,4 @@ MIT
|
|
|
270
286
|
|
|
271
287
|
---
|
|
272
288
|
|
|
273
|
-
*
|
|
289
|
+
*AI-to-AI collaboration through Model Context Protocol*
|
package/dist/server/McpServer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpServer.js","sourceRoot":"","sources":["../../src/server/McpServer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;;;AAEH,wEAAkE;AAClE,wEAAgF;AAChF,iEAS2C;AAC3C,0DAAsD;AAEtD,+DAAkF;AAClF,iEAA6D;AAC7D,yDAAqD;AACrD,yDAAkE;AAClE,6CAAyC;AAezC;;GAEG;AACH,MAAa,SAAS;IASpB;;;;OAIG;IACH,YAAY,MAAoB;QAZxB,cAAS,GAAgC,IAAI,CAAA;QAanD,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;QAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QAEpB,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,yBAAyB,EAAE;YAC1C,IAAI,EAAE,MAAM,CAAC,UAAU;YACvB,OAAO,EAAE,MAAM,CAAC,aAAa;SAC9B,CAAC,CAAA;QAEF,yCAAyC;QACzC,IAAI,CAAC,YAAY,GAAG,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAA;QAE5C,gEAAgE;QAChE,MAAM,eAAe,GAAG,IAAA,qCAAqB,EAAC,MAAM,CAAC,SAAS,EAAE;YAC9D,gBAAgB,EAAE,MAAM,CAAC,kBAAkB,EAAE,mDAAmD;SACjG,CAAC,CAAA;QA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c,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAC9D,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,EAC/B,CAAC,CACF;aACF,CAAC,CAAA;YAEF,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;gBAChB,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAA;YAC3B,CAAC;YAED,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,+BAA+B,CAAC,CAAA;QACnD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,8BAA8B,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;YAC3E,MAAM,IAAI,uBAAQ,CAAC,0CAA0C,EAAE,wBAAwB,CAAC,CAAA;QAC1F,CAAC;IACH,CAAC;CACF;AA3ZD,8BA2ZC"}
|
package/dist/utils/Logger.js
CHANGED
|
@@ -95,10 +95,10 @@ class Logger {
|
|
|
95
95
|
// Format output for console readability
|
|
96
96
|
const formattedMessage = `[${timestamp}] ${level.toUpperCase()}: ${message}`;
|
|
97
97
|
if (context && Object.keys(context).length > 0) {
|
|
98
|
-
console.
|
|
98
|
+
console.error(formattedMessage, context);
|
|
99
99
|
}
|
|
100
100
|
else {
|
|
101
|
-
console.
|
|
101
|
+
console.error(formattedMessage);
|
|
102
102
|
}
|
|
103
103
|
// Optional file output in JSON format
|
|
104
104
|
if (this.logFilePath) {
|
package/dist/utils/Logger.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logger.js","sourceRoot":"","sources":["../../src/utils/Logger.ts"],"names":[],"mappings":";;;AAAA,qCAAwC;AACxC,yCAAmC;AAuBnC;;;;;GAKG;AACH,MAAa,MAAM;IAejB,YAAY,QAAkB,MAAM;QAZ5B,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AM,QAAQ,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAA;QAE7C,iBAAiB;QACjB,MAAM,kBAAE,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;IACzD,CAAC;;AA5JH,wBA6JC;AAxJC;;GAEG;AACqB,oBAAa,GAA6B;IAChE,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,CAAC;CACT,AALoC,CAKpC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sub-agents-mcp",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.1.5",
|
|
4
|
+
"mcpName": "io.github.shinpr/sub-agents-mcp",
|
|
5
|
+
"description": "MCP server for delegating tasks to specialized AI assistants in Cursor and other tools",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"files": [
|
|
7
8
|
"dist/**/*.js",
|
|
@@ -15,9 +16,14 @@
|
|
|
15
16
|
"keywords": [
|
|
16
17
|
"mcp",
|
|
17
18
|
"mcp-server",
|
|
19
|
+
"model-context-protocol",
|
|
20
|
+
"sub-agents",
|
|
21
|
+
"ai-agents",
|
|
22
|
+
"claude-code",
|
|
23
|
+
"cursor",
|
|
18
24
|
"llm",
|
|
19
25
|
"cli",
|
|
20
|
-
"
|
|
26
|
+
"agent-orchestration",
|
|
21
27
|
"typescript"
|
|
22
28
|
],
|
|
23
29
|
"author": "Shinsuke Kagawa",
|