Add Stitch MCP configuration using environment variables

This commit is contained in:
2026-04-27 12:03:45 +10:00
parent 1e2851f261
commit 5697342a58

View File

@@ -235,6 +235,23 @@ dconf.settings."org/gnome/desktop/interface" = {
};
programs.opencode = {
enable = true;
settings = {
mcpServers = {
stitch = {
command = "npx";
args = [ "-y" "@google/stitch-mcp-server" ];
env = {
# This pulls the key from your shell environment
# instead of hardcoding it in the Nix file
STITCH_API_KEY = builtins.getEnv "STITCH_API_KEY";
};
};
};
};
};
# ---
# Shell (zsh + oh-my-zsh + powerlevel10k)
# ---