@sylphx/flow 2.1.6 → 2.1.8
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/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/src/core/attach-manager.ts +6 -0
- package/src/targets/claude-code.ts +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @sylphx/flow
|
|
2
2
|
|
|
3
|
+
## 2.1.8 (2025-11-28)
|
|
4
|
+
|
|
5
|
+
### 🐛 Bug Fixes
|
|
6
|
+
|
|
7
|
+
- **mcp:** explicitly pass --mcp-config flag to Claude Code ([fa955e9](https://github.com/SylphxAI/flow/commit/fa955e95b14bbbec3ebf7e93dab5ca959e9f012b))
|
|
8
|
+
|
|
9
|
+
## 2.1.7 (2025-11-28)
|
|
10
|
+
|
|
11
|
+
### 🐛 Bug Fixes
|
|
12
|
+
|
|
13
|
+
- **mcp:** approve MCP servers for Claude Code during attach ([19cdc3b](https://github.com/SylphxAI/flow/commit/19cdc3bea9df58bc9c1fe55242a8e2858c1303c1))
|
|
14
|
+
|
|
3
15
|
## 2.1.6 (2025-11-28)
|
|
4
16
|
|
|
5
17
|
### 🐛 Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sylphx/flow",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"description": "One CLI to rule them all. Unified orchestration layer for Claude Code, OpenCode, Cursor and all AI development tools. Auto-detection, auto-installation, auto-upgrade.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -327,6 +327,12 @@ export class AttachManager {
|
|
|
327
327
|
// Write updated config
|
|
328
328
|
await fs.writeFile(configPath, JSON.stringify(config, null, 2));
|
|
329
329
|
|
|
330
|
+
// Approve MCP servers if target supports it (e.g., Claude Code needs enabledMcpjsonServers)
|
|
331
|
+
if (target.approveMCPServers) {
|
|
332
|
+
const serverNames = mcpServers.map((s) => s.name);
|
|
333
|
+
await target.approveMCPServers(projectPath, serverNames);
|
|
334
|
+
}
|
|
335
|
+
|
|
330
336
|
// Track in manifest
|
|
331
337
|
manifest.backup.config = {
|
|
332
338
|
path: configPath,
|
|
@@ -207,6 +207,10 @@ Please begin your response with a comprehensive summary of all the instructions
|
|
|
207
207
|
// Build arguments
|
|
208
208
|
const args = ['--dangerously-skip-permissions'];
|
|
209
209
|
|
|
210
|
+
// Add MCP config flag to explicitly load project MCP servers
|
|
211
|
+
const mcpConfigPath = path.join(cwd, this.config.configFile);
|
|
212
|
+
args.push('--mcp-config', mcpConfigPath);
|
|
213
|
+
|
|
210
214
|
// Add print and continue flags
|
|
211
215
|
if (options.print) {
|
|
212
216
|
args.push('-p');
|