File indexing completed on 2026-04-25 07:39:34
0001
0002
0003
0004
0005 from spack_repo.builtin.build_systems.generic import Package
0006
0007 from spack.package import *
0008
0009
0010 class XrootdMcpServer(Package):
0011 """An MCP server that allows for querying XRootD servers by LLM agents."""
0012
0013 homepage = "https://eic.github.io/xrootd-mcp-server/"
0014 url = "https://github.com/eic/xrootd-mcp-server/archive/refs/tags/v0.1.0.tar.gz"
0015 git = "https://github.com/eic/xrootd-mcp-server.git"
0016
0017 maintainers("wdconinc")
0018
0019 license("MIT", checked_by="wdconinc")
0020
0021 version("main", branch="main")
0022 version("0.1.0", sha256="320b2974e7e04815e76e5649ea9bf0722f6bdf04435c6ea0402e09555d3e6fb1")
0023
0024 depends_on("node-js@22:", type=("build", "run"))
0025 depends_on("npm@10:", type="build")
0026 depends_on("xrootd", type=("build", "run"))
0027
0028 def install(self, spec, prefix):
0029 npm = which("npm", required=True)
0030 npm("install", "--global", f"--prefix={prefix}", ".")