Fix broken context7 mcp

This commit is contained in:
alejandro-angulo 2025-08-02 21:51:47 -07:00
parent c9e07fd6ee
commit 8268528dd2
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6

View file

@ -2,10 +2,19 @@
config,
lib,
namespace,
pkgs,
...
}:
let
cfg = config.${namespace}.programs.opencode;
context7 = pkgs.writeShellApplication {
name = "context7-mcp";
runtimeInputs = [ pkgs.nodejs_24 ];
text = ''
npx -y @upstash/context7-mcp
'';
};
in
{
options.${namespace}.programs.opencode = {
@ -19,8 +28,10 @@ in
theme = "catppuccin";
mcp = {
context7 = {
type = "remote";
url = "https://mcp.context7.com/mcp";
type = "local";
command = [
"${context7}/bin/context7-mcp"
];
enabled = true;
};
};