1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
jsonref,
langchain,
langgraph,
llama-index,
mcp,
pytest-asyncio,
pytestCheckHook,
python-dotenv,
smolagents,
}:
buildPythonPackage rec {
pname = "mcpadapt";
version = "0.0.19";
pyproject = true;
src = fetchFromGitHub {
owner = "grll";
repo = "mcpadapt";
tag = "v${version}";
hash = "sha256-CQK9Nv12E3jBcHI/RwJOaD2E6DbTWwVvTZ31kpsNGXg=";
};
build-system = [ hatchling ];
dependencies = [
jsonref
mcp
python-dotenv
];
optional-dependencies = {
langchain = [
langchain
# langchain-anthropic
langgraph
];
llamaindex = [ llama-index ];
};
pythonImportsCheck = [ "mcpadapt" ];
# Circular dependency smolagents
doCheck = false;
meta = {
description = "MCP servers tool";
homepage = "https://github.com/grll/mcpadapt";
changelog = "https://github.com/grll/mcpadapt/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|