feat: add mcp-gateway package
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
5
packages/mcp-gateway/default.nix
Normal file
5
packages/mcp-gateway/default.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
pkgs.callPackage ./package.nix { }
|
||||||
36
packages/mcp-gateway/package.nix
Normal file
36
packages/mcp-gateway/package.nix
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
rustPlatform,
|
||||||
|
fetchFromGitHub,
|
||||||
|
pkg-config,
|
||||||
|
openssl,
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "mcp-gateway";
|
||||||
|
version = "2.11.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "MikkoParkkola";
|
||||||
|
repo = "mcp-gateway";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-7IALz7hOnCeKtiEm8b3M7v5oy4hw173viyhNeqQIhTI=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoHash = "sha256-t72gblzTwZDGkrbK8Otose1yg32JxMwe/7aQk8oNH+Q=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
openssl
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Universal Model Context Protocol gateway that sits between AI client and MCP tools/servers";
|
||||||
|
homepage = "https://github.com/MikkoParkkola/mcp-gateway";
|
||||||
|
changelog = "https://github.com/MikkoParkkola/mcp-gateway/releases/tag/v${version}";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
sourceProvenance = with lib.sourceTypes; [ fromSource ];
|
||||||
|
mainProgram = "mcp-gateway";
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user