chore: update mcp config
This commit is contained in:
@@ -13,29 +13,12 @@
|
||||
command = "sh";
|
||||
args = ["-c" "REF_API_KEY=$(cat /run/agenix/ref-key) exec bunx ref-tools-mcp@latest"];
|
||||
};
|
||||
Anytype = {
|
||||
command = "sh";
|
||||
args = ["-c" "OPENAPI_MCP_HEADERS=$(cat /run/agenix/anytype-key) exec bunx @anyproto/anytype-mcp"];
|
||||
disabled = true;
|
||||
};
|
||||
Basecamp = {
|
||||
command = "/home/m3tam3re/p/AI/Basecamp-MCP-Server/venv/bin/python";
|
||||
args = ["/home/m3tam3re/p/AI/Basecamp-MCP-Server/basecamp_fastmcp.py"];
|
||||
env = {
|
||||
PYTHONPATH = "/home/m3tam3re/p/PYTHON/Basecamp-MCP-Server";
|
||||
VIRTUAL_ENV = "/home/m3tam3re/p/PYTHON/Basecamp-MCP-Server/venv";
|
||||
BASECAMP_ACCOUNT_ID = "5996442";
|
||||
};
|
||||
disabled = true;
|
||||
};
|
||||
Exa = {
|
||||
command = "sh";
|
||||
args = ["-c" "EXA_API_KEY=$(cat /run/agenix/exa-key) exec bunx exa-mcp-server@latest tools=web_search_exa"];
|
||||
};
|
||||
Outline = {
|
||||
command = "sh";
|
||||
args = ["-c" "OUTLINE_API_KEY=$(cat /run/agenix/outline-key) OUTLINE_API_URL=https://wiki.az-gruppe.com/api OUTLINE_DISABLE_DELETE=true exec uv tool run mcp-outline"];
|
||||
disabled = true;
|
||||
url = "https://wiki.az-gruppe.com/mcp";
|
||||
};
|
||||
ContextMode = {
|
||||
command = "sh";
|
||||
|
||||
@@ -1,48 +1,20 @@
|
||||
{
|
||||
inputs,
|
||||
system,
|
||||
...
|
||||
}: let
|
||||
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
# Skills — composed from custom + external sources
|
||||
xdg.configFile."opencode/skills".source = inputs.agents.lib.mkOpencodeSkills {
|
||||
inherit pkgs;
|
||||
customSkills = "${inputs.agents}/skills";
|
||||
{inputs, ...}: {
|
||||
coding.opencode = {
|
||||
enable = true;
|
||||
agentsInput = inputs.agents;
|
||||
|
||||
externalSkills = [
|
||||
{
|
||||
src = inputs.skills-anthropic;
|
||||
selectSkills = ["docx" "frontend-design" "mcp-builder" "pdf" "mcp-builder"];
|
||||
}
|
||||
{
|
||||
src = inputs.skills-basecamp;
|
||||
}
|
||||
{
|
||||
src = inputs.skills-kestra;
|
||||
selectSkills = ["pdf" "docx" "frontend-design"];
|
||||
}
|
||||
{src = inputs.skills-vercel;}
|
||||
{src = inputs.skills-basecamp;}
|
||||
{src = inputs.skills-kestra;}
|
||||
];
|
||||
};
|
||||
|
||||
# Other config — symlinked directly
|
||||
xdg.configFile."opencode/context".source = "${inputs.agents}/context";
|
||||
xdg.configFile."opencode/commands".source = "${inputs.agents}/commands";
|
||||
xdg.configFile."opencode/prompts".source = "${inputs.agents}/prompts";
|
||||
|
||||
programs.opencode = {
|
||||
enable = true;
|
||||
enableMcpIntegration = true;
|
||||
settings = {
|
||||
theme = "opencode";
|
||||
plugin = ["oh-my-opencode" "opencode-antigravity-auth@beta"];
|
||||
agent =
|
||||
builtins.fromJSON
|
||||
(builtins.readFile "${inputs.agents}/agents/agents.json");
|
||||
formatter = {
|
||||
alejandra = {
|
||||
command = ["alejandra" "-q" "-"];
|
||||
extensions = [".nix"];
|
||||
};
|
||||
};
|
||||
# AZ-Gruppe LiteLLM endpoint + available models
|
||||
extraSettings = {
|
||||
provider = {
|
||||
litellm = {
|
||||
npm = "@ai-sdk/openai-compatible";
|
||||
@@ -52,74 +24,83 @@ in {
|
||||
"gpt-5.2" = {
|
||||
name = "GPT-5.2";
|
||||
limit = {
|
||||
context = 200000;
|
||||
output = 16384;
|
||||
context = 400000;
|
||||
output = 128000;
|
||||
};
|
||||
modalities = {
|
||||
input = ["text" "image"];
|
||||
output = ["text"];
|
||||
};
|
||||
"gpt-5.3-codex" = {
|
||||
name = "GPT-5.3 Codex";
|
||||
limit = {
|
||||
context = 400000;
|
||||
output = 128000;
|
||||
};
|
||||
};
|
||||
"claude-haiku-4-5" = {
|
||||
name = "Claude Haiku 4.5";
|
||||
options = {
|
||||
thinking = {
|
||||
type = "enabled";
|
||||
budget_tokens = 16000;
|
||||
};
|
||||
};
|
||||
limit = {
|
||||
context = 200000;
|
||||
output = 64000;
|
||||
};
|
||||
};
|
||||
"claude-sonnet-4-6" = {
|
||||
name = "Claude Sonnet 4.6";
|
||||
options = {
|
||||
thinking = {
|
||||
type = "enabled";
|
||||
budget_tokens = 16000;
|
||||
};
|
||||
};
|
||||
limit = {
|
||||
context = 200000;
|
||||
output = 16000;
|
||||
};
|
||||
modalities = {
|
||||
input = ["text" "image"];
|
||||
output = ["text"];
|
||||
output = 64000;
|
||||
};
|
||||
};
|
||||
"claude-opus-4-6" = {
|
||||
name = "Claude Opus 4.6";
|
||||
options = {
|
||||
thinking = {
|
||||
type = "enabled";
|
||||
budget_tokens = 16000;
|
||||
};
|
||||
};
|
||||
limit = {
|
||||
context = 200000;
|
||||
output = 32000;
|
||||
};
|
||||
modalities = {
|
||||
input = ["text" "image"];
|
||||
output = ["text"];
|
||||
output = 128000;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.file.".config/opencode/oh-my-opencode.json".text = builtins.toJSON {
|
||||
"$schema" = "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json";
|
||||
# google_auth removed - use opencode-antigravity-auth plugin instead (already in plugin array)
|
||||
agents = {
|
||||
sisyphus = {model = "zai-coding-plan/glm-5";};
|
||||
oracle = {model = "zai-coding-plan/glm-5";};
|
||||
librarian = {model = "zai-coding-plan/glm-5";};
|
||||
explore = {model = "zai-coding-plan/glm-4.5-air";};
|
||||
multimodal-looker = {model = "zai-coding-plan/glm-4.6v";};
|
||||
prometheus = {model = "zai-coding-plan/glm-5";};
|
||||
metis = {model = "zai-coding-plan/glm-5";};
|
||||
momus = {model = "zai-coding-plan/glm-5";};
|
||||
atlas = {model = "zai-coding-plan/glm-5";};
|
||||
};
|
||||
categories = {
|
||||
visual-engineering = {model = "zai-coding-plan/glm-5";};
|
||||
ultrabrain = {model = "zai-coding-plan/glm-5";};
|
||||
artistry = {model = "zai-coding-plan/glm-5";};
|
||||
quick = {model = "zai-coding-plan/glm-5";};
|
||||
unspecified-low = {model = "zai-coding-plan/glm-5";};
|
||||
unspecified-high = {model = "zai-coding-plan/glm-5";};
|
||||
writing = {model = "zai-coding-plan/glm-5";};
|
||||
};
|
||||
disabled_mcps = ["context7" "websearch"];
|
||||
disabled_hooks = ["comment-checker"];
|
||||
git_master = {
|
||||
commit_footer = false;
|
||||
include_co_authored_by = false;
|
||||
};
|
||||
experimental = {
|
||||
truncate_all_tool_outputs = true;
|
||||
aggressive_truncation = false;
|
||||
ohMyOpencodeSettings = {
|
||||
agents = {
|
||||
sisyphus.model = "litellm/claude-opus-4-6";
|
||||
oracle.model = "litellm/claude-sonnet-4-6";
|
||||
librarian.model = "litellm/claude-sonnet-4-6";
|
||||
explore.model = "litellm/claude-haiku-4-5";
|
||||
multimodal-looker.model = "litellm/gpt-5.3-codex";
|
||||
prometheus.model = "litellm/claude-opus-4-6";
|
||||
metis.model = "litellm/claude-opus-4-6";
|
||||
momus.model = "litellm/claude-opus-4-6";
|
||||
atlas.model = "litellm/claude-sonnet-4-6";
|
||||
};
|
||||
categories = {
|
||||
visual-engineering.model = "zai-coding-plan/glm-5.1";
|
||||
ultrabrain.model = "litellm/claude-opus-4-6";
|
||||
deep.model = "litellm/claude-sonnet-4-6";
|
||||
artistry.model = "zai-coding-plan/glm-5.1";
|
||||
quick.model = "litellm/claude-haiku-4-5";
|
||||
unspecified-low.model = "litellm/claude-sonnet-4-6";
|
||||
unspecified-high.model = "litellm/claude-opus-4-6";
|
||||
writing.model = "zai-coding-plan/glm-5.1";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user