mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-12-10 07:59:43 +00:00
feat(opencode): add mcp servers
This commit is contained in:
parent
f715f0994c
commit
6cb9cd60b2
3 changed files with 43 additions and 5 deletions
|
|
@ -1,3 +1,41 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
programs.opencode.enable = true;
|
||||
sops.secrets = {
|
||||
"openrouter_api_key" = {};
|
||||
"github_token" = {};
|
||||
"context7_api_key" = {};
|
||||
};
|
||||
|
||||
programs.opencode = {
|
||||
enable = true;
|
||||
settings = {
|
||||
theme = "opencode";
|
||||
provider = {
|
||||
openrouter = {
|
||||
options = {
|
||||
apiKey = "{file:${config.sops.secrets."openrouter_api_key".path}}";
|
||||
};
|
||||
};
|
||||
};
|
||||
mcp = {
|
||||
github = {
|
||||
enabled = true;
|
||||
type = "remote";
|
||||
url = "https://api.githubcopilot.com/mcp/";
|
||||
headers = {
|
||||
Authorization = "Bearer {file:${config.sops.secrets."github_token".path}}";
|
||||
};
|
||||
};
|
||||
context7 = {
|
||||
enabled = true;
|
||||
type = "remote";
|
||||
url = "https://mcp.context7.com/mcp";
|
||||
headers = {
|
||||
"CONTEXT7_API_KEY" = "{file:${config.sops.secrets."context7_api_key".path}}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue