MCP setup
ps2build includes an MCP server, so an AI coding assistant can look up what packages are actually installed, resolve libs: the same way a real build would, and run a real build - instead of guessing.
Configure your assistant
ps2build needs to already be on your PATH (the installer does this for you). Point your assistant at:
json
{
"mcpServers": {
"ps2build": {
"command": "ps2build",
"args": ["mcp"]
}
}
}Claude Code
bash
claude mcp add ps2build -- ps2build mcpHTTP mode
ps2build mcp serves on stdio by default (a spawned local subprocess - the config above). For a client that can't spawn a local subprocess, --listen switches to streamable HTTP instead:
bash
ps2build mcp --listen localhost:8931Point your assistant at http://localhost:8931/ as a streamable-HTTP MCP server. No authentication is added - only bind an address you trust every local process/network peer to reach.
What it can do
Read-only:
list_packages/describe_package/search_packages- what's actually installed, by tierresolve_libs- what alibs:list resolves to (headers, link order, missing names) - the exact same resolution a real build doesget_schema/explain- theps2.yamlformatvalidate_target- checks a target without running a full build
Not read-only:
build_project- runs a real build, returns parsed errors/warnings instead of raw build outputinstall_project- builds, then installs the result into$PS2DEV/packages