aidevops 2.100.14 → 2.100.16
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/VERSION +1 -1
- package/package.json +1 -1
- package/setup.sh +15 -3
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.100.
|
|
1
|
+
2.100.16
|
package/package.json
CHANGED
package/setup.sh
CHANGED
|
@@ -375,12 +375,18 @@ disable_ondemand_mcps() {
|
|
|
375
375
|
|
|
376
376
|
# MCPs to disable globally (enabled on-demand via subagents)
|
|
377
377
|
# Note: use exact MCP key names from opencode.json
|
|
378
|
+
# Includes Oh-My-OpenCode MCPs (grep_app, websearch) that we replace with subagents
|
|
378
379
|
local -a ondemand_mcps=(
|
|
379
380
|
"playwriter"
|
|
380
381
|
"augment-context-engine"
|
|
381
382
|
"gh_grep"
|
|
382
383
|
"google-analytics-mcp"
|
|
383
384
|
"context7"
|
|
385
|
+
# Oh-My-OpenCode MCPs - use @github-search subagent instead
|
|
386
|
+
"grep_app"
|
|
387
|
+
"websearch"
|
|
388
|
+
# osgrep - use osgrep tool directly via Bash, not MCP
|
|
389
|
+
"osgrep"
|
|
384
390
|
)
|
|
385
391
|
|
|
386
392
|
local disabled=0
|
|
@@ -390,14 +396,20 @@ disable_ondemand_mcps() {
|
|
|
390
396
|
cp "$opencode_config" "$tmp_config"
|
|
391
397
|
|
|
392
398
|
for mcp in "${ondemand_mcps[@]}"; do
|
|
393
|
-
# Check if MCP exists
|
|
399
|
+
# Check if MCP exists
|
|
394
400
|
if jq -e ".mcp[\"$mcp\"]" "$tmp_config" > /dev/null 2>&1; then
|
|
401
|
+
# MCP exists - check if enabled
|
|
395
402
|
local current_enabled
|
|
396
403
|
current_enabled=$(jq -r ".mcp[\"$mcp\"].enabled // \"true\"" "$tmp_config")
|
|
397
404
|
if [[ "$current_enabled" != "false" ]]; then
|
|
398
405
|
jq ".mcp[\"$mcp\"].enabled = false" "$tmp_config" > "${tmp_config}.new" && mv "${tmp_config}.new" "$tmp_config"
|
|
399
406
|
((disabled++))
|
|
400
407
|
fi
|
|
408
|
+
else
|
|
409
|
+
# MCP doesn't exist - add it as disabled (prevents OmO from enabling it)
|
|
410
|
+
# This is needed for MCPs that plugins add dynamically (like oh-my-opencode)
|
|
411
|
+
jq ".mcp[\"$mcp\"] = {\"type\": \"stdio\", \"enabled\": false, \"command\": [\"echo\", \"disabled\"]}" "$tmp_config" > "${tmp_config}.new" && mv "${tmp_config}.new" "$tmp_config"
|
|
412
|
+
((disabled++))
|
|
401
413
|
fi
|
|
402
414
|
done
|
|
403
415
|
|
|
@@ -3590,8 +3602,8 @@ main() {
|
|
|
3590
3602
|
confirm_step "Setup AI orchestration frameworks info" && setup_ai_orchestration
|
|
3591
3603
|
confirm_step "Setup OpenCode plugins" && setup_opencode_plugins
|
|
3592
3604
|
confirm_step "Setup Oh-My-OpenCode" && setup_oh_my_opencode
|
|
3593
|
-
# Run AFTER all MCP setup functions to ensure disabled state persists
|
|
3594
|
-
confirm_step "Disable on-demand MCPs globally (
|
|
3605
|
+
# Run AFTER all MCP setup functions (including OmO) to ensure disabled state persists
|
|
3606
|
+
confirm_step "Disable on-demand MCPs globally (incl. OmO: grep_app, websearch)" && disable_ondemand_mcps
|
|
3595
3607
|
|
|
3596
3608
|
echo ""
|
|
3597
3609
|
print_success "🎉 Setup complete!"
|