feat: fix opencode yolo mode and add mcp servers

This commit is contained in:
Jet 2026-04-06 09:20:21 -07:00
parent cf18c87bff
commit 5772ba0e19
No known key found for this signature in database

View file

@ -558,8 +558,9 @@ in
"da" = "direnv allow"; "da" = "direnv allow";
"nfu" = "nix flake update"; "nfu" = "nix flake update";
"c" = "claude"; "c" = "claude";
"o" = "opencode"; "o" =
"ou" = "OPENCODE_PERMISSION='\"allow\"' opencode"; "OPENCODE_PERMISSION='{\"*\":\"allow\",\"external_directory\":\"allow\",\"doom_loop\":\"allow\"}' opencode";
"os" = "opencode";
".." = "z .."; ".." = "z ..";
j = "jj"; j = "jj";
jgf = "jj git fetch"; jgf = "jj git fetch";
@ -837,6 +838,22 @@ in
]; ];
}; };
home.file.".config/opencode/opencode.json".text = builtins.toJSON {
"$schema" = "https://opencode.ai/config.json";
mcp = {
linear = {
type = "remote";
url = "https://mcp.linear.app/mcp";
enabled = true;
};
github = {
type = "remote";
url = "https://api.githubcopilot.com/mcp/";
enabled = true;
};
};
};
xdg.userDirs = { xdg.userDirs = {
enable = true; enable = true;
setSessionVariables = true; setSessionVariables = true;