File indexing completed on 2026-09-22 08:05:47
0001
0002
0003
0004
0005 from spack_repo.builtin.build_systems.generic import Package
0006
0007 from spack.package import *
0008
0009
0010 class EicMcp(Package):
0011 """Starts the installed EIC MCP servers over streamable HTTP and writes client configs."""
0012
0013 homepage = "https://github.com/eic/eic-mcp"
0014 url = "https://github.com/eic/eic-mcp/archive/refs/tags/v0.2.0.tar.gz"
0015 git = "https://github.com/eic/eic-mcp.git"
0016
0017 maintainers("wdconinc")
0018
0019 tags = ["eic"]
0020
0021 license("MIT", checked_by="aprozo")
0022
0023 version("main", branch="main")
0024 version("0.2.0", sha256="057fd1dcb8a1de166fc7d2647a648cef8a618ed740b983a4c9800f8bef7c35e7")
0025 version("0.1.0", commit="4a5c610458dc1df94439aecce1b749f2ba11ad60")
0026
0027
0028 depends_on("uproot-mcp-server", type="run")
0029 depends_on("rucio-eic-mcp-server", type="run")
0030 depends_on("xrootd-mcp-server", type="run")
0031 depends_on("uproot-mcp-server@0.2:", type="run", when="@0.2:")
0032 depends_on("rucio-eic-mcp-server@0.2:", type="run", when="@0.2:")
0033 depends_on("xrootd-mcp-server@0.2:", type="run", when="@0.2:")
0034
0035 depends_on("zenodo-mcp-server", type="run")
0036
0037 def install(self, spec, prefix):
0038 mkdirp(prefix.bin)
0039 install(join_path("bin", "eic-mcp"), join_path(prefix.bin, "eic-mcp"))
0040 set_executable(join_path(prefix.bin, "eic-mcp"))