Fix broken context7 mcp
This commit is contained in:
parent
c9e07fd6ee
commit
8268528dd2
1 changed files with 13 additions and 2 deletions
|
@ -2,10 +2,19 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
namespace,
|
namespace,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.${namespace}.programs.opencode;
|
cfg = config.${namespace}.programs.opencode;
|
||||||
|
|
||||||
|
context7 = pkgs.writeShellApplication {
|
||||||
|
name = "context7-mcp";
|
||||||
|
runtimeInputs = [ pkgs.nodejs_24 ];
|
||||||
|
text = ''
|
||||||
|
npx -y @upstash/context7-mcp
|
||||||
|
'';
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.${namespace}.programs.opencode = {
|
options.${namespace}.programs.opencode = {
|
||||||
|
@ -19,8 +28,10 @@ in
|
||||||
theme = "catppuccin";
|
theme = "catppuccin";
|
||||||
mcp = {
|
mcp = {
|
||||||
context7 = {
|
context7 = {
|
||||||
type = "remote";
|
type = "local";
|
||||||
url = "https://mcp.context7.com/mcp";
|
command = [
|
||||||
|
"${context7}/bin/context7-mcp"
|
||||||
|
];
|
||||||
enabled = true;
|
enabled = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue