From e64a4c0f86f391b26f266f3dcfdf7ed0c0ea741a Mon Sep 17 00:00:00 2001 From: Marc Marcos Date: Tue, 25 Aug 2026 18:02:29 +0800 Subject: [PATCH] opencode riscv mcp --- opencode/.config/opencode-team/opencode.jsonc | 17 ++++++++++++++++- opencode/.config/opencode-team/tui.json | 5 +++++ opencode/.config/opencode/opencode.jsonc | 17 ++++++++++++++++- 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 opencode/.config/opencode-team/tui.json diff --git a/opencode/.config/opencode-team/opencode.jsonc b/opencode/.config/opencode-team/opencode.jsonc index 5ba0d07..79340c3 100644 --- a/opencode/.config/opencode-team/opencode.jsonc +++ b/opencode/.config/opencode-team/opencode.jsonc @@ -2,6 +2,14 @@ "$schema": "https://opencode.ai/config.json", "model": "deepseek-v4-pro", "autoupdate": true, + + "mcp": { + "riscv-udb": { + "type": "local", + "command": ["riscv-udb-mcp"], + "enabled": true + } + }, // Activating the full team layer ONLY inside this profile directory "plugin": [ @@ -23,6 +31,13 @@ "**/build/**": "deny", "*": "allow" }, - "bash": "allow" + "bash": "allow", + "lsp" : "allow" + }, + "lsp": { + "clangd": { + "command": ["clangd", "--background-index", "--clang-tidy"], + "extensions": [".c", ".cpp", ".cc", ".cxx", ".h", ".hpp"] + } } } diff --git a/opencode/.config/opencode-team/tui.json b/opencode/.config/opencode-team/tui.json new file mode 100644 index 0000000..67f9e0f --- /dev/null +++ b/opencode/.config/opencode-team/tui.json @@ -0,0 +1,5 @@ +{ + "plugin": [ + "oh-my-openagent" + ] +} diff --git a/opencode/.config/opencode/opencode.jsonc b/opencode/.config/opencode/opencode.jsonc index a6e7340..6042f2f 100644 --- a/opencode/.config/opencode/opencode.jsonc +++ b/opencode/.config/opencode/opencode.jsonc @@ -2,6 +2,14 @@ "$schema": "https://opencode.ai/config.json", "autoupdate": true, + "mcp": { + "riscv-udb": { + "type": "local", + "command": ["riscv-udb-mcp"], + "enabled": true + } + }, + "plugin": [], "permission": { @@ -18,6 +26,13 @@ "**/build/**": "deny", "*": "allow" }, - "bash": "allow" + "bash": "allow", + "lsp" : "allow" + }, + "lsp" : { + "clangd": { + "command": ["clangd", "--background-index", "--clang-tidy"], + "extensions": [".c", ".cpp", ".cc", ".cxx", ".h", ".hpp"] + } } }