@uniqueli/openwork 0.3.0 → 0.4.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 +123 -1
- package/out/main/index.js +5222 -271
- package/out/preload/index.js +41 -0
- package/out/renderer/assets/{index-0WBq9FlY.css → index-BUG0lOAH.css} +55 -0
- package/out/renderer/assets/{index-ZbiHA5we.js → index-BwYKBEJR.js} +773 -42
- package/out/renderer/index.html +2 -2
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
A desktop interface for [deepagentsjs](https://github.com/langchain-ai/deepagentsjs) — an opinionated harness for building deep agents with filesystem capabilities, planning, and subagent delegation.
|
|
11
11
|
|
|
12
|
-
**✨ Enhanced with Multiple Custom API Support** - Add unlimited OpenAI-compatible API providers with a single click!
|
|
12
|
+
**✨ Enhanced with Multiple Custom API Support + MCP Integration** - Add unlimited OpenAI-compatible API providers and MCP servers with a single click!
|
|
13
13
|
|
|
14
14
|

|
|
15
15
|
|
|
@@ -111,8 +111,130 @@ CUSTOM_API_KEY=your-api-key
|
|
|
111
111
|
CUSTOM_MODEL=your-model-name # optional
|
|
112
112
|
```
|
|
113
113
|
|
|
114
|
+
## 🔌 MCP Server Integration
|
|
115
|
+
|
|
116
|
+
**New in v0.4.0**: Full support for Model Context Protocol (MCP) servers!
|
|
117
|
+
|
|
118
|
+
### What is MCP?
|
|
119
|
+
|
|
120
|
+
MCP (Model Context Protocol) is an open protocol that allows AI assistants to securely connect to external data sources and tools. With MCP, your agent can:
|
|
121
|
+
|
|
122
|
+
- Access API documentation (YAPI, Swagger, etc.)
|
|
123
|
+
- Query databases
|
|
124
|
+
- Search the web
|
|
125
|
+
- Interact with file systems
|
|
126
|
+
- And much more!
|
|
127
|
+
|
|
128
|
+
### How to Add MCP Servers
|
|
129
|
+
|
|
130
|
+
1. Open the right panel in openwork
|
|
131
|
+
2. Click the **"MCP"** section to expand it
|
|
132
|
+
3. Click the **"+ 添加"** button
|
|
133
|
+
4. Fill in the form:
|
|
134
|
+
- **传输类型**: STDIO (local process) or SSE (HTTP endpoint)
|
|
135
|
+
- **服务器ID**: Unique identifier (e.g., `yapi-devloper-mcp`)
|
|
136
|
+
- **显示名称**: Name shown in UI (e.g., `YAPI开发助手`)
|
|
137
|
+
- **命令** (STDIO only): Command to run (e.g., `npx`)
|
|
138
|
+
- **命令参数** (STDIO only): Arguments (e.g., `-y yapi-devloper-mcp@latest --stdio`)
|
|
139
|
+
- **环境变量**: Optional key-value pairs for sensitive data (API keys, etc.)
|
|
140
|
+
- **分类**: Choose a category for better organization
|
|
141
|
+
5. Click **"测试连接"** to verify the configuration
|
|
142
|
+
6. Click **"创建服务器"** to save
|
|
143
|
+
|
|
144
|
+
### Example Configurations
|
|
145
|
+
|
|
146
|
+
**YAPI Developer MCP**
|
|
147
|
+
|
|
148
|
+
```
|
|
149
|
+
ID: yapi-devloper-mcp
|
|
150
|
+
Name: YAPI开发助手
|
|
151
|
+
Type: STDIO
|
|
152
|
+
Command: npx
|
|
153
|
+
Args: -y yapi-devloper-mcp@latest --stdio
|
|
154
|
+
Environment Variables:
|
|
155
|
+
YAPI_BASE_URL: https://yapi.jiaoyanyun.com
|
|
156
|
+
YAPI_USERNAME: your-username
|
|
157
|
+
YAPI_PASSWORD: your-password
|
|
158
|
+
Category: API
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
**Context7 (Vector Context Service)**
|
|
162
|
+
|
|
163
|
+
```
|
|
164
|
+
ID: context7
|
|
165
|
+
Name: Context7
|
|
166
|
+
Type: STDIO
|
|
167
|
+
Command: npx
|
|
168
|
+
Args: -y @upstash/context7-mcp@latest
|
|
169
|
+
Category: Custom
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
**Filesystem MCP**
|
|
173
|
+
|
|
174
|
+
```
|
|
175
|
+
ID: filesystem
|
|
176
|
+
Name: 文件系统
|
|
177
|
+
Type: STDIO
|
|
178
|
+
Command: npx
|
|
179
|
+
Args: -y @modelcontextprotocol/server-filesystem /path/to/allowed/directory
|
|
180
|
+
Category: Filesystem
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
**GitHub MCP**
|
|
184
|
+
|
|
185
|
+
```
|
|
186
|
+
ID: github
|
|
187
|
+
Name: GitHub
|
|
188
|
+
Type: STDIO
|
|
189
|
+
Command: npx
|
|
190
|
+
Args: -y @modelcontextprotocol/server-github
|
|
191
|
+
Environment Variables:
|
|
192
|
+
GITHUB_PERSONAL_ACCESS_TOKEN: ghp_xxxxxxxxxxxx
|
|
193
|
+
Category: Development
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
**Brave Search MCP**
|
|
197
|
+
|
|
198
|
+
```
|
|
199
|
+
ID: brave-search
|
|
200
|
+
Name: Brave搜索
|
|
201
|
+
Type: SSE
|
|
202
|
+
URL: https://sse.brave.search
|
|
203
|
+
Environment Variables:
|
|
204
|
+
BRAVE_API_KEY: your-brave-api-key
|
|
205
|
+
Category: Productivity
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### Using MCP Tools
|
|
209
|
+
|
|
210
|
+
Once connected, MCP tools are automatically available to your agent:
|
|
211
|
+
|
|
212
|
+
- Tools are discovered and loaded automatically
|
|
213
|
+
- Each server shows its connection status and tool count
|
|
214
|
+
- Tools appear as regular LangChain tools in the agent's toolkit
|
|
215
|
+
- Disconnect or disable servers to temporarily stop using their tools
|
|
216
|
+
|
|
217
|
+
### Managing MCP Servers
|
|
218
|
+
|
|
219
|
+
- **Connect/Disconnect**: Click the plug icon to connect/disconnect
|
|
220
|
+
- **Enable/Disable**: Click the power icon to enable/disable a server
|
|
221
|
+
- **Delete**: Click the trash icon to permanently remove a server
|
|
222
|
+
- **View Status**: See real-time connection status (Connected/Connecting/Error/Disconnected)
|
|
223
|
+
|
|
114
224
|
## Changelog
|
|
115
225
|
|
|
226
|
+
### v0.4.0 (2026-02-10)
|
|
227
|
+
|
|
228
|
+
- 🔌 **MCP Integration**: 新增Model Context Protocol (MCP) 完整支持
|
|
229
|
+
- 支持STDIO和SSE两种传输方式
|
|
230
|
+
- 可视化MCP服务器管理界面(右侧面板新增MCP分区)
|
|
231
|
+
- 支持环境变量配置(用于API密钥等敏感信息)
|
|
232
|
+
- 自动将MCP工具转换为LangChain工具
|
|
233
|
+
- Agent运行时自动加载已连接的MCP工具
|
|
234
|
+
- 实时显示连接状态和工具数量
|
|
235
|
+
- 支持测试连接功能
|
|
236
|
+
- 已测试:YAPI Developer MCP、Context7等
|
|
237
|
+
|
|
116
238
|
### v0.3.0 (2026-02-09)
|
|
117
239
|
|
|
118
240
|
- 🚀 **Skills System Major Upgrade**: 技能系统重大升级
|