Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
buildGoModule,
fetchFromGitHub,
lib,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
pname = "terraform-mcp-server";
version = "0.3.1";
src = fetchFromGitHub {
owner = "hashicorp";
repo = "terraform-mcp-server";
tag = "v${finalAttrs.version}";
hash = "sha256-Ck2bwlonkcnZ6DoiVIupjefBRGKLROzfUY+PjkW1yE4=";
};
vendorHash = "sha256-bWh2ttw6q5+iOSskqxRG4UisoROlx87PTrvXfYYuzng=";
ldflags = [
"-X main.version=${finalAttrs.version}"
"-X main.commit=${finalAttrs.src.rev}"
];
subPackages = [ "cmd/terraform-mcp-server" ];
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
versionCheckProgramArg = "--version";
meta = {
description = "Terraform Model Context Protocol (MCP) Server";
longDescription = ''
The Terraform MCP Server is a Go implementation of the Model Context
Protocol (MCP) server that provides seamless integration with Terraform
Registry APIs, enabling advanced automation and interaction capabilities
for developers and tools.
This server allows LLMs to interact with Terraform modules, providers,
and other Terraform Registry features through structured API interactions.
'';
homepage = "https://github.com/hashicorp/terraform-mcp-server";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [
connerohnesorge
pilz
];
mainProgram = "terraform-mcp-server";
};
})