From 5d1791914edf72f1a3a0603c78ea4ee2b36ecaa0 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Mon, 14 Sep 2026 23:19:04 +0200 Subject: [PATCH] Home/Nixinator: Configure context7, zotero and obsidian MCP servers --- home/christoph/nixinator/default.nix | 30 +++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/home/christoph/nixinator/default.nix b/home/christoph/nixinator/default.nix index 1247a29..cb531b2 100644 --- a/home/christoph/nixinator/default.nix +++ b/home/christoph/nixinator/default.nix @@ -142,21 +142,37 @@ mcp = { enable = true; servers = { - deepwiki = { - # https://mcpservers.org/servers/devin/deepwiki - url = "https://mcp.deepwiki.com/mcp"; + context7 = { + command = "npx"; + args = ["-y" "@upstash/context7-mcp"]; + env = { + CONTEXT7_API_KEY.file = nixosConfig.sops.secrets.context7-api-key.path; + }; }; + # deepwiki = { + # # https://mcpservers.org/servers/devin/deepwiki + # url = "https://mcp.deepwiki.com/mcp"; + # }; # github = { # # https://mcpservers.org/servers/github-mcp-server # url = "https://api.githubcopilot.com/mcp/"; # headers = { - # Authorization = "Bearer ${input:github_mcp_pat}"; # TODO: How to get the token from sops-nix into here? + # Authorization = "Bearer ${input:github_mcp_pat}"; # }; # }; nixos = { command = "uvx"; args = ["mcp-nixos"]; }; + obsidian = { + command = "uvx"; + args = ["mcp-obsidian"]; + env = { + OBSIDIAN_API_KEY.file = nixosConfig.sops.secrets.obsidian-rest-api-key.path; + OBSIDIAN_HOST = "127.0.0.1"; + OBSIDIAN_PORT = "27124"; + }; + }; svelte = { # claude mcp add -t stdio -s [scope] svelte -- npx -y @sveltejs/mcp command = "npx"; @@ -168,6 +184,10 @@ command = "npx"; args = ["-y" "shadcn@latest" "mcp"]; }; + zotero = { + command = "uvx"; + args = ["zotero-mcp-server"]; + }; }; }; @@ -316,7 +336,7 @@ "question" = "allow"; }; plugin = [ - "opencode-claude-auth@latest" # https://github.com/griffinmartin/opencode-claude-auth + # "opencode-claude-auth@latest" # https://github.com/griffinmartin/opencode-claude-auth "@tarquinen/opencode-dcp@latest" # better compacting # "opencode-lmstudio@0.3.1" # "@slkiser/opencode-quota"