Skip to content

Commit 5836077

Browse files
committed
feat(opencode): kagi web search via MCP
1 parent 9c6e796 commit 5836077

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

parts/features/dev/opencode.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
denyRules = lib.genAttrs config.dendrix.agents.shellDenylist (_: "deny");
2121
in {
2222
home.persistence."/persist" = lib.mkIf osConfig.dendrix.isImpermanent {
23-
directories = [".local/share/opencode"];
23+
directories = [
24+
".local/share/opencode"
25+
".cache/uv" # kagimcp is fetched by uvx; keep it across boots
26+
];
2427
};
2528

2629
programs.opencode = {
@@ -31,6 +34,10 @@
3134
small_model = "zai-coding-plan/glm-5-turbo";
3235
disabled_providers = ["zai"];
3336
permission.bash = {"*" = "ask";} // allowRules // denyRules;
37+
mcp.kagi = {
38+
type = "local";
39+
command = [(lib.getExe' pkgs.uv "uvx") "kagimcp"];
40+
};
3441
};
3542
};
3643
};

0 commit comments

Comments
 (0)