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
51 lines
1.3 KiB
Nix
51 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
}:
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "mcp-proxy";
|
|
version = "0.8.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sparfenyuk";
|
|
repo = "mcp-proxy";
|
|
tag = "v${version}";
|
|
hash = "sha256-3hNpUOWbyOUjLcvfcMzj4+xHyUl7k1ZSy8muWHvSEvM=";
|
|
};
|
|
|
|
pyproject = true;
|
|
|
|
build-system = [ python3Packages.setuptools ];
|
|
|
|
dependencies = with python3Packages; [
|
|
uvicorn
|
|
mcp
|
|
];
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
];
|
|
|
|
disabledTests = [
|
|
# AssertionError: expected call not found.
|
|
# Expected: mock(PromptReference(type='ref/prompt', name='name'), CompletionArgument(name='name', value='value'))
|
|
# Actual: mock(PromptReference(type='ref/prompt', name='name'), CompletionArgument(name='name', value='value'), None)
|
|
"test_call_tool[server-AsyncMock]"
|
|
"test_call_tool[proxy-AsyncMock]"
|
|
"test_complete[server-AsyncMock]"
|
|
"test_complete[proxy-AsyncMock]"
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = {
|
|
description = "MCP server which proxies other MCP servers from stdio to SSE or from SSE to stdio";
|
|
homepage = "https://github.com/sparfenyuk/mcp-proxy";
|
|
mainProgram = "mcp-proxy";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ keyruu ];
|
|
};
|
|
}
|