@getcmd/spm-dependencies-mcp
An MCP server for searching and exploring SPM dependencies in your Xcode and SPM projects.
The code of your SPM dependencies is located in hidden folders, often in other directories (DerivedData etc). Coding agents cannot easily access it, were they to need it. This MCP solves this gap.
Configuration
{
"mcpServers": {
"spm-dependencies": {
"command": "npx",
"args": ["-y", "@getcmd/spm-dependencies-mcp"]
}
}
}
Tools
list_dependencieslists the dependencies used by a project/package, which version they resolve to, and where to find them on disksearchsearch over dependencies with ripgrep. Arbitrary parameters can be forwarded to ripgrep.list-fileslist within dependenciesreadsearch a file within the dependencies with sed. Arbitrary parameters can be forwarded to sed.
CLI Usage
The tools made available through the MCP server can be directly access in a CLI:
$ npx -y @getcmd/spm-dependencies-mcp --help
Search Swift Package Manager dependencies
Usage: spm-dependencies-mcp [COMMAND]
Commands:
list-dependencies List all dependencies for a Swift project
search Search through dependencies using ripgrep
list-files List files in a dependency
read Read a file from a dependency using sed
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version