sweagent 0.0.4 → 0.0.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 +21 -106
- package/dist/index.cjs +26 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +33 -3
- package/dist/index.d.ts +33 -3
- package/dist/index.js +26 -26
- package/dist/index.js.map +1 -1
- package/dist/stdio.js +22 -24
- package/dist/stdio.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -117,13 +117,9 @@ flowchart LR
|
|
|
117
117
|
More --> Agent
|
|
118
118
|
```
|
|
119
119
|
|
|
120
|
-
### 1.
|
|
120
|
+
### 1. Add the config for your IDE
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
npm install -g sweagent
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
### 2. Add the config for your IDE
|
|
122
|
+
No install step needed -- `npx` downloads and runs sweagent automatically on first use. Just create the config file for your IDE and add your API key.
|
|
127
123
|
|
|
128
124
|
**Cursor** -- create `.cursor/mcp.json` in your project root:
|
|
129
125
|
|
|
@@ -131,7 +127,8 @@ npm install -g sweagent
|
|
|
131
127
|
{
|
|
132
128
|
"mcpServers": {
|
|
133
129
|
"sweagent": {
|
|
134
|
-
"command": "
|
|
130
|
+
"command": "npx",
|
|
131
|
+
"args": ["-y", "sweagent"],
|
|
135
132
|
"env": { "OPENAI_API_KEY": "your-openai-api-key" }
|
|
136
133
|
}
|
|
137
134
|
}
|
|
@@ -144,7 +141,8 @@ npm install -g sweagent
|
|
|
144
141
|
{
|
|
145
142
|
"servers": {
|
|
146
143
|
"sweagent": {
|
|
147
|
-
"command": "
|
|
144
|
+
"command": "npx",
|
|
145
|
+
"args": ["-y", "sweagent"],
|
|
148
146
|
"env": { "OPENAI_API_KEY": "your-openai-api-key" }
|
|
149
147
|
}
|
|
150
148
|
}
|
|
@@ -157,7 +155,8 @@ npm install -g sweagent
|
|
|
157
155
|
{
|
|
158
156
|
"mcpServers": {
|
|
159
157
|
"sweagent": {
|
|
160
|
-
"command": "
|
|
158
|
+
"command": "npx",
|
|
159
|
+
"args": ["-y", "sweagent"],
|
|
161
160
|
"env": { "OPENAI_API_KEY": "your-openai-api-key" }
|
|
162
161
|
}
|
|
163
162
|
}
|
|
@@ -170,16 +169,15 @@ npm install -g sweagent
|
|
|
170
169
|
{
|
|
171
170
|
"mcpServers": {
|
|
172
171
|
"sweagent": {
|
|
173
|
-
"command": "
|
|
172
|
+
"command": "npx",
|
|
173
|
+
"args": ["-y", "sweagent"],
|
|
174
174
|
"env": { "OPENAI_API_KEY": "your-openai-api-key" }
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
```
|
|
179
179
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
### 3. Restart your IDE and start prompting
|
|
180
|
+
### 2. Restart your IDE and start prompting
|
|
183
181
|
|
|
184
182
|
Open the chat and try:
|
|
185
183
|
|
|
@@ -1060,38 +1058,20 @@ flowchart LR
|
|
|
1060
1058
|
|
|
1061
1059
|
### Quick Start
|
|
1062
1060
|
|
|
1063
|
-
**1.
|
|
1064
|
-
|
|
1065
|
-
```bash
|
|
1066
|
-
npm install -g sweagent
|
|
1067
|
-
```
|
|
1068
|
-
|
|
1069
|
-
This installs the `sweagent` command globally on your machine. Requires Node.js >= 18.
|
|
1061
|
+
**1. Add the config for your IDE** (pick your IDE below). No install needed -- `npx` downloads sweagent automatically. Requires Node.js >= 18.
|
|
1070
1062
|
|
|
1071
|
-
**2.
|
|
1063
|
+
**2. Add your API key** to the `env` block in the config (at least one provider key is required).
|
|
1072
1064
|
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
```bash
|
|
1076
|
-
export OPENAI_API_KEY=sk-...
|
|
1077
|
-
# or ANTHROPIC_API_KEY, or GOOGLE_GENERATIVE_AI_API_KEY
|
|
1078
|
-
```
|
|
1079
|
-
|
|
1080
|
-
**3. Add the config to your IDE** (pick your IDE below) **and restart.**
|
|
1065
|
+
**3. Restart your IDE.**
|
|
1081
1066
|
|
|
1082
1067
|
**4. Verify** -- ask the chat agent: _"Use the hello_world tool to test the sweagent server."_
|
|
1083
1068
|
|
|
1084
|
-
> **No global install?** You can skip step 1 and use `npx -y sweagent` instead. The IDE configs below show both options.
|
|
1085
|
-
|
|
1086
1069
|
### How it runs
|
|
1087
1070
|
|
|
1088
|
-
The MCP server communicates over **stdio**. Your IDE starts it automatically -- you do not run these commands yourself. Under the hood, the IDE runs
|
|
1071
|
+
The MCP server communicates over **stdio**. Your IDE starts it automatically -- you do not run these commands yourself. Under the hood, the IDE runs:
|
|
1089
1072
|
|
|
1090
1073
|
```bash
|
|
1091
|
-
#
|
|
1092
|
-
sweagent
|
|
1093
|
-
|
|
1094
|
-
# If you prefer npx (no install needed, downloads on first use)
|
|
1074
|
+
# npx downloads and runs sweagent on first use (recommended)
|
|
1095
1075
|
npx -y sweagent
|
|
1096
1076
|
|
|
1097
1077
|
# If you cloned the repo and built from source
|
|
@@ -1102,23 +1082,6 @@ node --env-file=.env dist/stdio.js
|
|
|
1102
1082
|
|
|
1103
1083
|
Create `.cursor/mcp.json` in your project root:
|
|
1104
1084
|
|
|
1105
|
-
**Option A -- Global install (recommended):**
|
|
1106
|
-
|
|
1107
|
-
```json
|
|
1108
|
-
{
|
|
1109
|
-
"mcpServers": {
|
|
1110
|
-
"sweagent": {
|
|
1111
|
-
"command": "sweagent",
|
|
1112
|
-
"env": {
|
|
1113
|
-
"OPENAI_API_KEY": "your-openai-api-key"
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1117
|
-
}
|
|
1118
|
-
```
|
|
1119
|
-
|
|
1120
|
-
**Option B -- npx (no install needed):**
|
|
1121
|
-
|
|
1122
1085
|
```json
|
|
1123
1086
|
{
|
|
1124
1087
|
"mcpServers": {
|
|
@@ -1133,7 +1096,10 @@ Create `.cursor/mcp.json` in your project root:
|
|
|
1133
1096
|
}
|
|
1134
1097
|
```
|
|
1135
1098
|
|
|
1136
|
-
|
|
1099
|
+
Cursor auto-discovers `.cursor/mcp.json`. After saving, restart Cursor or reload the window. The sweagent tools appear in the Cursor chat tool list.
|
|
1100
|
+
|
|
1101
|
+
<details>
|
|
1102
|
+
<summary>From source (local clone)</summary>
|
|
1137
1103
|
|
|
1138
1104
|
```json
|
|
1139
1105
|
{
|
|
@@ -1146,29 +1112,12 @@ Create `.cursor/mcp.json` in your project root:
|
|
|
1146
1112
|
}
|
|
1147
1113
|
```
|
|
1148
1114
|
|
|
1149
|
-
|
|
1115
|
+
</details>
|
|
1150
1116
|
|
|
1151
1117
|
### Setup with VS Code (GitHub Copilot)
|
|
1152
1118
|
|
|
1153
1119
|
Create `.vscode/mcp.json` in your project root:
|
|
1154
1120
|
|
|
1155
|
-
**Option A -- Global install:**
|
|
1156
|
-
|
|
1157
|
-
```json
|
|
1158
|
-
{
|
|
1159
|
-
"servers": {
|
|
1160
|
-
"sweagent": {
|
|
1161
|
-
"command": "sweagent",
|
|
1162
|
-
"env": {
|
|
1163
|
-
"OPENAI_API_KEY": "your-openai-api-key"
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
}
|
|
1168
|
-
```
|
|
1169
|
-
|
|
1170
|
-
**Option B -- npx:**
|
|
1171
|
-
|
|
1172
1121
|
```json
|
|
1173
1122
|
{
|
|
1174
1123
|
"servers": {
|
|
@@ -1189,23 +1138,6 @@ VS Code discovers MCP servers from `.vscode/mcp.json` automatically. You can als
|
|
|
1189
1138
|
|
|
1190
1139
|
Edit (or create) the Windsurf MCP config file at `~/.codeium/windsurf/mcp_config.json`:
|
|
1191
1140
|
|
|
1192
|
-
**Option A -- Global install:**
|
|
1193
|
-
|
|
1194
|
-
```json
|
|
1195
|
-
{
|
|
1196
|
-
"mcpServers": {
|
|
1197
|
-
"sweagent": {
|
|
1198
|
-
"command": "sweagent",
|
|
1199
|
-
"env": {
|
|
1200
|
-
"OPENAI_API_KEY": "your-openai-api-key"
|
|
1201
|
-
}
|
|
1202
|
-
}
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
```
|
|
1206
|
-
|
|
1207
|
-
**Option B -- npx:**
|
|
1208
|
-
|
|
1209
1141
|
```json
|
|
1210
1142
|
{
|
|
1211
1143
|
"mcpServers": {
|
|
@@ -1229,23 +1161,6 @@ Edit the Claude Desktop config file:
|
|
|
1229
1161
|
- **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
1230
1162
|
- **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
|
|
1231
1163
|
|
|
1232
|
-
**Option A -- Global install:**
|
|
1233
|
-
|
|
1234
|
-
```json
|
|
1235
|
-
{
|
|
1236
|
-
"mcpServers": {
|
|
1237
|
-
"sweagent": {
|
|
1238
|
-
"command": "sweagent",
|
|
1239
|
-
"env": {
|
|
1240
|
-
"OPENAI_API_KEY": "your-openai-api-key"
|
|
1241
|
-
}
|
|
1242
|
-
}
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
```
|
|
1246
|
-
|
|
1247
|
-
**Option B -- npx:**
|
|
1248
|
-
|
|
1249
1164
|
```json
|
|
1250
1165
|
{
|
|
1251
1166
|
"mcpServers": {
|