chore(opencode): отключены MCP-серверы поиска duckduckgo и searxng
Встроенные websearch и webfetch дают более полную выдачу, поэтому локальные MCP-серверы поиска больше не нужны. SearXNG оставлен в docker/searxng как резерв: добавлен README с запуском и возвратом MCP-сервера. Заодно поправлено описание OpenCode в AGENTS.md.
This commit is contained in:
1 parent
cf9781604d
commit
0ab5dbe182
3 files changed
+42
-21
No files matched your search
@@ -27,7 +27,7 @@ This repository contains personal dotfiles and configurations for a highly produ
|
|||||||
* **Shared Skills:** Located in `agents/.agents/skills/`. This is the single source of truth for AI instructions.
|
* **Shared Skills:** Located in `agents/.agents/skills/`. This is the single source of truth for AI instructions.
|
||||||
* **Gemini CLI:** Configured via `gemini/.gemini/`.
|
* **Gemini CLI:** Configured via `gemini/.gemini/`.
|
||||||
* **Policies:** `readonly-commands.toml` allows critical commands like `git status`, `git diff`, and `git add` to run without confirmation.
|
* **Policies:** `readonly-commands.toml` allows critical commands like `git status`, `git diff`, and `git add` to run without confirmation.
|
||||||
* **Opencode:** MCP-based assistant configuration (`opencode.json`) with support for documentation, search, and web-reading.
|
* **Opencode:** MCP-based assistant configuration (`opencode.json`): Context7 для документации и встроенные `websearch`/`webfetch`. Локальный SearXNG в `docker/searxng` — резервный вариант, MCP-сервер отключён.
|
||||||
* **Skill Bridges:** Claude gets skills via the `~/.claude/skills` symlink; Opencode reads `~/.agents/skills` natively, no bridge needed.
|
* **Skill Bridges:** Claude gets skills via the `~/.claude/skills` symlink; Opencode reads `~/.agents/skills` natively, no bridge needed.
|
||||||
|
|
||||||
## 🚀 Usage & Maintenance
|
## 🚀 Usage & Maintenance
|
||||||
|
|||||||
@@ -0,0 +1,41 @@
|
|||||||
|
# SearXNG — резервный поиск
|
||||||
|
|
||||||
|
Локальный SearXNG на `127.0.0.1:26745`. Постоянно не нужен: с 2026-10-17
|
||||||
|
основной поиск идёт через встроенные `websearch`/`webfetch` OpenCode, а
|
||||||
|
MCP-сервер `searxng` отключён в `opencode/.config/opencode/opencode.json`.
|
||||||
|
Стек оставлен как запасной вариант, если встроенный поиск недоступен
|
||||||
|
(например, кончилась подписка OpenCode Go) или нужен фильтр по времени.
|
||||||
|
|
||||||
|
## Запуск и остановка
|
||||||
|
|
||||||
|
```
|
||||||
|
docker compose up -d # поднять
|
||||||
|
docker compose down # погасить, кэш и настройки в томах сохранятся
|
||||||
|
docker logs --since 10m searxng-core
|
||||||
|
```
|
||||||
|
|
||||||
|
Проверка: `curl -s -H 'Accept: application/json' http://127.0.0.1:26745/config | head -c 200`
|
||||||
|
|
||||||
|
## Возврат MCP-сервера
|
||||||
|
|
||||||
|
Добавить в блок `mcp` файла `opencode/.config/opencode/opencode.json`:
|
||||||
|
|
||||||
|
```json
|
||||||
|
"searxng": {
|
||||||
|
"type": "local",
|
||||||
|
"command": ["npx", "-y", "mcp-searxng"],
|
||||||
|
"environment": { "SEARXNG_URL": "http://localhost:26745" },
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
После правки — разложить конфиг установщиком (`./install.sh`) или скопировать
|
||||||
|
файл в `~/.config/opencode/opencode.json`, затем перезапустить OpenCode.
|
||||||
|
|
||||||
|
## Ограничения
|
||||||
|
|
||||||
|
- Настройки по умолчанию (`use_default_settings: true`), форматы `html` и `json`.
|
||||||
|
- С домашнего IP часть движков быстро упирается в лимиты: `brave` и `wikipedia`
|
||||||
|
отвечают `too many requests`, `duckduckgo` — CAPTCHA. Остаётся `google cse`,
|
||||||
|
то есть полноценной агрегации из многих движков ждать не стоит.
|
||||||
|
- Контейнер не обновляется сам: `docker compose pull && docker compose up -d`.
|
||||||
@@ -36,18 +36,6 @@
|
|||||||
},
|
},
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
"searxng": {
|
|
||||||
"type": "local",
|
|
||||||
"command": [
|
|
||||||
"npx",
|
|
||||||
"-y",
|
|
||||||
"mcp-searxng"
|
|
||||||
],
|
|
||||||
"environment": {
|
|
||||||
"SEARXNG_URL": "http://localhost:26745"
|
|
||||||
},
|
|
||||||
"enabled": true
|
|
||||||
},
|
|
||||||
"playwright": {
|
"playwright": {
|
||||||
"type": "local",
|
"type": "local",
|
||||||
"command": [
|
"command": [
|
||||||
@@ -56,14 +44,6 @@
|
|||||||
"@playwright/mcp@latest"
|
"@playwright/mcp@latest"
|
||||||
],
|
],
|
||||||
"enabled": false
|
"enabled": false
|
||||||
},
|
|
||||||
"duckduckgo": {
|
|
||||||
"type": "local",
|
|
||||||
"command": [
|
|
||||||
"uvx",
|
|
||||||
"duckduckgo-mcp-server"
|
|
||||||
],
|
|
||||||
"enabled": true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"share": "manual"
|
"share": "manual"
|
||||||
|
|||||||
Reference in new issue
Block a user