You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Big bet: SteamPipe build workflow - generate/lint VDFs, preview upload via steamcmd, gated SetAppBuildLive #60
This is a bigger bet that could turn the server from "Steam data lookup" into the place a small studio ships builds from. SteamPipe is one of the most error-prone parts of shipping on Steam: hand-written app_build and depot_build VDF files, depot mappings, file exclusions, steamcmd login with Steam Guard, and then setting the build live on the right branch in the dashboard. Every indie dev stumbles over it, and it's tedious work that an agent handles well.
No MCP server in this space does this today, as far as I can find. It would be a strong differentiator and a good fit for the companion Cursor plugin's Steamworks skills.
Proposed scope
steam_generateBuildConfig (pure, no network): from { appid, depots: [{ depotid, contentRoot, platform, excludes }], branch?, description? }, emit app_build_<appid>.vdf and depot_build_<depotid>.vdf. Validate the paths, flag common mistakes (contentRoot outside the project, missing executable, debug symbols included), and show a file-mapping preview.
steam_validateBuildConfig: lint existing VDFs (unknown keys, absolute paths, a SetLive pointing at default without explicit confirmation).
steam_runSteamPipeUpload (gated mutation): shell out to a user-installed steamcmd +run_app_build. It goes behind the shared confirm gate and an out-of-band opt-in env var, the same model as STEAM_PARTNER_ADMIN=1. Default to a preview-only run ("Preview" "1" in the VDF) and never set a build live from here.
steam_setAppBuildLive (gated mutation, ISteamApps/SetAppBuildLive): kept separate and opt-in, refuses default unless explicitly allowed.
An MCP prompt, ship-a-build, that walks through generate, then preview, then upload, then set live on a beta branch.
Risks / decisions
Shipping to default is irreversible for players. Live operations must use the strictest gating in the project.
steamcmd credentials must never pass through tool arguments. Rely on cached steamcmd login only.
Start with steps 1-2 (no risk, immediately useful) and ship 3-4 behind a flag later.
Done when
A developer can describe their build layout in plain language, get valid VDFs, and run a SteamPipe preview upload from their editor, with live-branch changes requiring explicit operator opt-in.
Requirements from a real consumer: Open-Game-1 (Combat Simulator, UE 5.8)
Open-Game-1 will ship to Steam with: a gated upload that auto-sets the build live on a development beta branch, and a manual promotion to default done by a human in Steamworks. For now it does this with a local script; it should move onto steps 3-4 of this issue once they exist. Lessons from two shipped games (Slap-Boxing-Simulator, Idle-Game) that the tools should encode:
Upload (steam_runSteamPipeUpload)
Treat steamcmd's exit code as unreliable. Scan the output for ERROR! lines and fail if no BuildID can be parsed, even when it exits 0.
Return the BuildID, branch, depot manifest IDs and duration as structured output so a caller can append them to a build history file (for example docs/steam/BUILDS.md).
Allow setlive only for named beta branches. Refuse default outright: steamcmd rejects setlive default for some apps anyway, and promotion should stay a human action in Steamworks.
A wrong branch name (for example dev instead of development) produces a misleading "Failed to commit" error. Look up the branch with getAppBetas first and fail with a clear message.
Optional pre-upload gates the caller can turn on: clean git tree, HEAD pushed, version not already in the history file, staging folder freshly recreated.
Config generation and linting (steps 1-2)
VDF paths take single backslashes on Windows. Doubled backslashes broke an upload.
Root key is DepotBuildConfig. Set contentroot only in the app build file.
Default excludes: steam_appid.txt, *.log, *.pdb. Add an Unreal preset that also excludes Saved/, Intermediate/, *.debug and crash reporter symbols, with a content root pointing at the packaged Windows/ output of BuildCookRun.
Generated VDFs should contain no App ID or Depot ID inline when the target repo is public. Read them from env vars (STEAM_APPID and similar) at run time.
Credentials
Agreed: cached steamcmd login only. Also document STEAM_BUILD_ACCOUNT (account name only, never a password) as the env var the tool reads.
Testing
Ship a fake steamcmd for tests that can emit success, ERROR! with exit 0, and missing BuildID. Slap-Boxing's tests/test_deploy_gates.sh is prior art.
Implementation plan (for approval before building)
This plan combines the issue's scope, the Open-Game-1 requirements above, and the steamcmd policy in the Game-Systems steam-store-specs spec. Nothing gets built until this is approved. Each phase ships on its own.
Phase 1: VDF generation and lint (local, keyless, new build toolset, on by default)
Output: the text of app_build_<appid>.vdf and one depot_build_<depotid>.vdf per depot, plus a file-mapping preview: the first 50 files that would ship and a count. The tool returns text and does not write files unless outputDir is given. With outputDir, it writes only inside that folder, through the same path checks the asset tools use (safePath.ts).
IDs: with appidEnv / depotidEnv, the VDF holds a ${STEAM_APPID}-style placeholder and a note to render it at deploy time, so a public repo never commits IDs (spec: "IDs ... rendered into VDFs from templates at deploy time; never committed").
Rules encoded:
root key DepotBuildConfig in depot files;
contentroot only in the app build file;
single backslashes on Windows paths;
default excludes steam_appid.txt, *.log, *.pdb;
the unreal preset adds Saved/, Intermediate/, *.debug, and crash reporter symbols, with the content root at the BuildCookRun Windows/ output;
"Preview" "1" unless preview: false;
setlive is empty unless branch names a beta branch.
Warnings: content root outside the project, no executable at the root, debug symbols present, an excludes list that removes everything, branch = default (refused).
steam_validateBuildConfig (LOCAL_ONLY)
Input: path to an app_build_*.vdf (depot files referenced from it are read too).
Checks:
parse errors and unknown keys;
doubled backslashes;
absolute paths outside the content root;
contentroot in a depot file;
IDs inline when the caller says the repo is public;
setlive "default" (error);
Preview missing or 0 (warning).
Output: findings with codes, in the same shape as the asset validator (errors[], warnings[], each with code and message).
Prompt ship-a-build: generate, validate, then stop with the exact steamcmd command for a human to run (Phase 2 replaces that last step).
Tests: golden VDFs for the default and Unreal presets, a Windows path case, every lint code with one fixture each, and the public-repo ID check.
Phase 2: gated preview upload (opt-in, off by default)
steam_runSteamPipeUpload (LIVE_WRITE, in a new deploy toolset that is never in the default set)
Opt-in out of band: STEAM_MCP_ENABLE_DEPLOY=1 in the server env (the model cannot set it), plus the shared confirm gate (dry_run / confirm). Refused in HTTP mode.
Credentials: cached steamcmd login only. Reads STEAM_BUILD_ACCOUNT (account name, never a password). No credential ever passes through tool arguments.
Agent policy from the spec: the live run refuses when an agent marker is set (for example CLAUDECODE) unless the operator also sets STEAM_MCP_ALLOW_AGENT_DEPLOY=1. Decision needed: keep this stricter rule, which means a human runs the real upload from a terminal, or rely on the confirm gate alone.
Before upload:
look up the branch with steam_getAppBetas and fail clearly on a wrong name;
refuse default outright;
optional gates the caller turns on: clean git tree, HEAD pushed, version not already in the build ledger, staging folder freshly recreated.
Run: steamcmd +login <account> +run_app_build <vdf> +quit. The exit code is treated as unreliable: the tool scans for ERROR! lines and fails if no BuildID can be parsed.
Output (structured): BuildID, branch, depot manifest IDs, duration, and a line to append to a build ledger (for example docs/steam/BUILDS.md). The tool appends it itself only if a ledger path is given.
Tests: a fake steamcmd script (in the test fixtures) that can print success, ERROR! with exit 0, missing BuildID, and a wrong-branch "Failed to commit". Each gate also gets a test that fails it alone.
Phase 3: set a build live on a beta branch (opt-in)
Same opt-in, confirm gate, and refusal of default. Decision needed: allow default behind a second env var, or never (the issue and the spec both say promotion to default stays a human action in Steamworks, and this plan follows that unless you say otherwise).
Dry run shows the current build on that branch (from steam_getAppBuilds) and the build that would replace it.
Open decisions for the maintainer
Agent refusal on live uploads (Phase 2): strict (recommended by the spec) or confirm gate only?
default branch: never from this server (recommended), or behind a second opt-in?
Toolset names: build for Phase 1 (on by default) and deploy for Phases 2-3 (always opt-in)?
Should Phase 1 write files at all, or only return text for the agent to save?
Estimated size: Phase 1 M, Phase 2 M to L (most of it is gates and tests), Phase 3 S.
Done in two commits, following the plan above with the recommended decisions: strict agent refusal, the default branch never, build on by default and deploy always opt-in, and Phase 1 writing files only with output_dir.
2c561c6: Phase 1, build toolset (local, keyless, on by default)
steam_generateBuildConfig: app_build and depot_build VDFs plus a per-depot preview of the files that ship. Encodes the rules from the Open-Game-1 comment: DepotBuildConfig root, ContentRoot only in the app file, single backslashes on Windows, default exclusions plus an unreal preset, Preview "1" by default, SetLive only for a named beta branch (default/public refused), and ${NAME} placeholders for IDs. Warnings: debug symbols, no exe, root outside the project, exclusions that remove everything, and a non-platform root under the Unreal preset.
steam_validateBuildConfig: lint with a stable code per finding (PARSE_ERROR, DOUBLED_BACKSLASH, ABSOLUTE_PATH_OUTSIDE_ROOT, SETLIVE_DEFAULT, INLINE_ID with public_repo, PREVIEW_OFF, and others).
ship-a-build prompt.
One deviation from the plan's input shape: content_root is top-level, and each depot takes a local_path under it. That's what keeps ContentRoot in the app file only.
Loads only when STEAM_MCP_TOOLSETS names it and STEAM_MCP_ENABLE_DEPLOY=1. Never over HTTP, and STEAM_MCP_READ_ONLY removes it. Live runs are refused while an agent marker (CLAUDECODE and a few others) is set, unless STEAM_MCP_ALLOW_AGENT_DEPLOY=1.
steam_runSteamPipeUpload: lint, then render IDs from the env into a temp copy, check the branch through GetAppBetas, run the optional gates (clean git, HEAD pushed, version not in the ledger, fresh staging), then run steamcmd with the cached login of STEAM_BUILD_ACCOUNT. Fails on ERROR! or a missing BuildID even on exit 0. Returns BuildID, depot manifests, duration, and a ledger line.
steam_setAppBuildLive: ISteamApps/SetAppBuildLive v2, beta branches only. The dry run shows the current build on the branch.
Tests run a fake steamcmd through success, ERROR! with exit 0, a missing BuildID, a wrong branch, and a login prompt.
Not verified against live Steam or a real steamcmd: depot manifest parsing is best effort against steamcmd's wording. Full suite: 866 tests, coverage, typecheck, build, and site drift all pass.
Activity
TMHSDigital commentedon Nov 22, 2026
Requirements from a real consumer: Open-Game-1 (Combat Simulator, UE 5.8)
Open-Game-1 will ship to Steam with: a gated upload that auto-sets the build live on a
developmentbeta branch, and a manual promotion todefaultdone by a human in Steamworks. For now it does this with a local script; it should move onto steps 3-4 of this issue once they exist. Lessons from two shipped games (Slap-Boxing-Simulator, Idle-Game) that the tools should encode:Upload (
steam_runSteamPipeUpload)ERROR!lines and fail if noBuildIDcan be parsed, even when it exits 0.docs/steam/BUILDS.md).setliveonly for named beta branches. Refusedefaultoutright: steamcmd rejectssetlive defaultfor some apps anyway, and promotion should stay a human action in Steamworks.devinstead ofdevelopment) produces a misleading "Failed to commit" error. Look up the branch withgetAppBetasfirst and fail with a clear message.Config generation and linting (steps 1-2)
DepotBuildConfig. Setcontentrootonly in the app build file.steam_appid.txt,*.log,*.pdb. Add an Unreal preset that also excludesSaved/,Intermediate/,*.debugand crash reporter symbols, with a content root pointing at the packagedWindows/output of BuildCookRun.STEAM_APPIDand similar) at run time.Credentials
STEAM_BUILD_ACCOUNT(account name only, never a password) as the env var the tool reads.Testing
ERROR!with exit 0, and missing BuildID. Slap-Boxing'stests/test_deploy_gates.shis prior art.TMHSDigital commentedon Nov 23, 2026
Implementation plan (for approval before building)
This plan combines the issue's scope, the Open-Game-1 requirements above, and the steamcmd policy in the Game-Systems steam-store-specs spec. Nothing gets built until this is approved. Each phase ships on its own.
Phase 1: VDF generation and lint (local, keyless, new
buildtoolset, on by default)steam_generateBuildConfig(annotationLOCAL_ONLY){ app: { appidEnv?: string, appid?: string }, depots: [{ depotidEnv?, depotid?, contentRoot, platform?, excludes?: string[] }], branch?: string, description?: string, preset?: "default" | "unreal", outputDir?: string, preview?: boolean (default true) }.app_build_<appid>.vdfand onedepot_build_<depotid>.vdfper depot, plus a file-mapping preview: the first 50 files that would ship and a count. The tool returns text and does not write files unlessoutputDiris given. WithoutputDir, it writes only inside that folder, through the same path checks the asset tools use (safePath.ts).appidEnv/depotidEnv, the VDF holds a${STEAM_APPID}-style placeholder and a note to render it at deploy time, so a public repo never commits IDs (spec: "IDs ... rendered into VDFs from templates at deploy time; never committed").DepotBuildConfigin depot files;contentrootonly in the app build file;steam_appid.txt,*.log,*.pdb;unrealpreset addsSaved/,Intermediate/,*.debug, and crash reporter symbols, with the content root at the BuildCookRunWindows/output;"Preview" "1"unlesspreview: false;setliveis empty unlessbranchnames a beta branch.branch=default(refused).steam_validateBuildConfig(LOCAL_ONLY)app_build_*.vdf(depot files referenced from it are read too).contentrootin a depot file;setlive "default"(error);Previewmissing or0(warning).errors[],warnings[], each withcodeandmessage).Prompt
ship-a-build: generate, validate, then stop with the exact steamcmd command for a human to run (Phase 2 replaces that last step).Tests: golden VDFs for the default and Unreal presets, a Windows path case, every lint code with one fixture each, and the public-repo ID check.
Phase 2: gated preview upload (opt-in, off by default)
steam_runSteamPipeUpload(LIVE_WRITE, in a newdeploytoolset that is never in the default set)STEAM_MCP_ENABLE_DEPLOY=1in the server env (the model cannot set it), plus the shared confirm gate (dry_run/confirm). Refused in HTTP mode.STEAM_BUILD_ACCOUNT(account name, never a password). No credential ever passes through tool arguments.CLAUDECODE) unless the operator also setsSTEAM_MCP_ALLOW_AGENT_DEPLOY=1. Decision needed: keep this stricter rule, which means a human runs the real upload from a terminal, or rely on the confirm gate alone.steam_getAppBetasand fail clearly on a wrong name;defaultoutright;steamcmd +login <account> +run_app_build <vdf> +quit. The exit code is treated as unreliable: the tool scans forERROR!lines and fails if no BuildID can be parsed.docs/steam/BUILDS.md). The tool appends it itself only if a ledger path is given.ERROR!with exit 0, missing BuildID, and a wrong-branch "Failed to commit". Each gate also gets a test that fails it alone.Phase 3: set a build live on a beta branch (opt-in)
steam_setAppBuildLive(LIVE_WRITE,deploytoolset,ISteamApps/SetAppBuildLive, publisher key)default. Decision needed: allowdefaultbehind a second env var, or never (the issue and the spec both say promotion todefaultstays a human action in Steamworks, and this plan follows that unless you say otherwise).steam_getAppBuilds) and the build that would replace it.Open decisions for the maintainer
defaultbranch: never from this server (recommended), or behind a second opt-in?buildfor Phase 1 (on by default) anddeployfor Phases 2-3 (always opt-in)?Estimated size: Phase 1 M, Phase 2 M to L (most of it is gates and tests), Phase 3 S.
Add SteamPipe build config generation and lint (#60)
TMHSDigital commentedon Nov 29, 2026
Done in two commits, following the plan above with the recommended decisions: strict agent refusal, the default branch never,
buildon by default anddeployalways opt-in, and Phase 1 writing files only withoutput_dir.2c561c6: Phase 1,
buildtoolset (local, keyless, on by default)steam_generateBuildConfig: app_build and depot_build VDFs plus a per-depot preview of the files that ship. Encodes the rules from the Open-Game-1 comment:DepotBuildConfigroot,ContentRootonly in the app file, single backslashes on Windows, default exclusions plus anunrealpreset,Preview "1"by default,SetLiveonly for a named beta branch (default/publicrefused), and${NAME}placeholders for IDs. Warnings: debug symbols, no exe, root outside the project, exclusions that remove everything, and a non-platform root under the Unreal preset.steam_validateBuildConfig: lint with a stable code per finding (PARSE_ERROR, DOUBLED_BACKSLASH, ABSOLUTE_PATH_OUTSIDE_ROOT, SETLIVE_DEFAULT, INLINE_ID withpublic_repo, PREVIEW_OFF, and others).ship-a-buildprompt.content_rootis top-level, and each depot takes alocal_pathunder it. That's what keepsContentRootin the app file only.51a6d40: Phases 2-3,
deploytoolset (opt-in)STEAM_MCP_TOOLSETSnames it andSTEAM_MCP_ENABLE_DEPLOY=1. Never over HTTP, andSTEAM_MCP_READ_ONLYremoves it. Live runs are refused while an agent marker (CLAUDECODEand a few others) is set, unlessSTEAM_MCP_ALLOW_AGENT_DEPLOY=1.steam_runSteamPipeUpload: lint, then render IDs from the env into a temp copy, check the branch through GetAppBetas, run the optional gates (clean git, HEAD pushed, version not in the ledger, fresh staging), then run steamcmd with the cached login ofSTEAM_BUILD_ACCOUNT. Fails onERROR!or a missing BuildID even on exit 0. Returns BuildID, depot manifests, duration, and a ledger line.steam_setAppBuildLive:ISteamApps/SetAppBuildLivev2, beta branches only. The dry run shows the current build on the branch.ERROR!with exit 0, a missing BuildID, a wrong branch, and a login prompt.Not verified against live Steam or a real steamcmd: depot manifest parsing is best effort against steamcmd's wording. Full suite: 866 tests, coverage, typecheck, build, and site drift all pass.