Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
80 lines
2.0 KiB
Nix
80 lines
2.0 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
makeBinaryWrapper,
|
|
azure-cli,
|
|
kubectl,
|
|
stdenv,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "aks-mcp-server";
|
|
version = "0.0.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Azure";
|
|
repo = "aks-mcp";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-LhFFmzL9jTrUqYlHNMWVZBuiZFB0oFLA409byFWFIl0=";
|
|
};
|
|
|
|
vendorHash = "sha256-tglqpX/SbqcqMXkByrzuadczXLPvPFXvslNkh1rSgWU=";
|
|
|
|
subPackages = [ "cmd/aks-mcp" ];
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
makeBinaryWrapper
|
|
];
|
|
|
|
# Disable CGO and set environment variables
|
|
env.CGO_ENABLED = "0";
|
|
|
|
tags = [ "withoutebpf" ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/Azure/aks-mcp/internal/version.GitVersion=${finalAttrs.version}"
|
|
"-X github.com/Azure/aks-mcp/internal/version.GitCommit=${finalAttrs.src.rev}"
|
|
"-X github.com/Azure/aks-mcp/internal/version.GitTreeState=clean"
|
|
"-X github.com/Azure/aks-mcp/internal/version.BuildDate=1970-01-01T00:00:00Z"
|
|
];
|
|
|
|
checkFlags = [
|
|
"-skip=TestAzure"
|
|
"-skip=TestExecutor"
|
|
"-skip=TestClient"
|
|
];
|
|
|
|
postInstall = ''
|
|
|
|
|
|
wrapProgram $out/bin/aks-mcp \
|
|
--set-default AKS_MCP_COLLECT_TELEMETRY false \
|
|
--prefix PATH : ${
|
|
lib.makeBinPath [
|
|
azure-cli
|
|
kubectl
|
|
]
|
|
}
|
|
'';
|
|
|
|
meta = {
|
|
description = "Model Context Protocol server for Azure Kubernetes Service";
|
|
longDescription = ''
|
|
The AKS-MCP server enables AI assistants to interact with Azure Kubernetes
|
|
Service clusters through the Model Context Protocol. It translates natural
|
|
language requests into AKS operations and provides cluster information,
|
|
network details, and resource management capabilities.
|
|
'';
|
|
homepage = "https://github.com/Azure/aks-mcp";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ priyaananthasankar ];
|
|
platforms = lib.platforms.unix; # Now supports both Linux and macOS with withoutebpf
|
|
mainProgram = "aks-mcp-server";
|
|
};
|
|
})
|