Add Stitch MCP configuration using environment variables
This commit is contained in:
@@ -238,19 +238,21 @@ dconf.settings."org/gnome/desktop/interface" = {
|
|||||||
programs.opencode = {
|
programs.opencode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
mcpServers = {
|
mcp = {
|
||||||
stitch = {
|
stitch = {
|
||||||
command = "npx";
|
# Use "remote" type to leverage the Stitch API directly
|
||||||
args = [ "-y" "@google/stitch-mcp-server" ];
|
type = "remote";
|
||||||
env = {
|
url = "https://stitch.googleapis.com/mcp";
|
||||||
# This pulls the key from your shell environment
|
# Use false if you are using an API Key instead of OAuth
|
||||||
# instead of hardcoding it in the Nix file
|
oauth = false;
|
||||||
STITCH_API_KEY = builtins.getEnv "STITCH_API_KEY";
|
headers = {
|
||||||
|
# Nix grabs this from your local shell during 'switch --impure'
|
||||||
|
"X-Goog-Api-Key" = builtins.getEnv "STITCH_API_KEY";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# Shell (zsh + oh-my-zsh + powerlevel10k)
|
# Shell (zsh + oh-my-zsh + powerlevel10k)
|
||||||
|
|||||||
Reference in New Issue
Block a user