pp-steam-web
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSteam Web - Printing Press CLI
Steam Web - Printing Press CLI
Prerequisites: Install the CLI
前提条件:安装CLI
This skill drives the binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
steam-web-pp-cli- Install via the Printing Press installer:
bash
npx -y @mvanhorn/printing-press install steam-web --cli-only - Verify:
steam-web-pp-cli --version - Ensure (or
$GOPATH/bin) is on$HOME/go/bin.$PATH
If the install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.23+):
npxbash
go install github.com/mvanhorn/printing-press-library/library/media-and-entertainment/steam-web/cmd/steam-web-pp-cli@latestIf reports "command not found" after install, the install step did not put the binary on . Do not proceed with skill commands until verification succeeds.
--version$PATH本技能驱动二进制文件。在调用本技能的任何命令之前,必须先验证CLI是否已安装。如果未安装,请先执行以下步骤安装:
steam-web-pp-cli- 通过Printing Press安装程序安装:
bash
npx -y @mvanhorn/printing-press install steam-web --cli-only - 验证:
steam-web-pp-cli --version - 确保(或
$GOPATH/bin)已添加到$HOME/go/bin环境变量中。$PATH
如果安装失败(无Node环境、离线等),可改用Go直接安装(需要Go 1.23及以上版本):
npxbash
go install github.com/mvanhorn/printing-press-library/library/media-and-entertainment/steam-web/cmd/steam-web-pp-cli@latest如果安装后执行提示"command not found",说明安装步骤未将二进制文件添加到中。在验证成功前,请不要继续执行技能命令。
--version$PATHWhen to Use This CLI
何时使用本CLI
Reach for this when the user wants:
- look up a player's profile, level, or badges (,
profile,level)badges - list a player's owned games with playtime ()
games - show recently-played games ()
recent - pull a player's achievements or stats for a specific game (,
achievements)stats - check a player's VAC or game ban status ()
bans - list a player's friends ()
friends - see how many players are currently in a game ()
players - fetch a game's news feed ()
news - resolve a vanity URL (steamcommunity.com/id/foo) to a SteamID ()
resolve - dump a game's achievement + stat schema ()
schema - hit any of the 170+ Steam Web API endpoints by interface name ()
api
Skip it when the user wants to buy games, manage Steam Workshop mods, or interact with the Steam store beyond what the Web API exposes.
当用户需要以下功能时使用本工具:
- 查询玩家资料、等级或徽章(、
profile、level)badges - 列出玩家已拥有的游戏及游戏时长()
games - 显示近期游玩的游戏()
recent - 获取玩家在某款游戏中的成就或统计数据(、
achievements)stats - 检查玩家的VAC或游戏封禁状态()
bans - 列出玩家的好友列表()
friends - 查询某款游戏的当前在线玩家数量()
players - 获取某款游戏的新闻动态()
news - 将自定义URL(steamcommunity.com/id/foo)解析为SteamID()
resolve - 导出某款游戏的成就+统计架构()
schema - 通过接口名称调用170+个Steam Web API端点()
api
当用户想要购买游戏、管理Steam创意工坊模组,或进行Steam Web API未涵盖的Steam商店交互时,请不要使用本工具。
Argument Parsing
参数解析
Parse :
$ARGUMENTS- Empty, , or
help-> show--helpsteam-web-pp-cli --help - Starts with -> ends with
install-> MCP installation; otherwise -> CLI installationmcp - Anything else -> Direct Use (map to the best command and run it)
解析:
$ARGUMENTS- 为空、或
help-> 显示--helpsteam-web-pp-cli --help - 以开头 -> 结尾为
install-> MCP安装;否则 -> CLI安装mcp - 其他内容 -> 直接使用(映射到最合适的命令并执行)
MCP Server Installation
MCP服务器安装
The CLI ships an MCP server at :
steam-web-pp-mcpbash
go install github.com/mvanhorn/printing-press-library/library/media-and-entertainment/steam-web/cmd/steam-web-pp-mcp@latest
claude mcp add -e STEAM_WEB_API_KEY=... steam-web-pp-mcp -- steam-web-pp-mcpCLI附带了一个MCP服务器:
steam-web-pp-mcpbash
go install github.com/mvanhorn/printing-press-library/library/media-and-entertainment/steam-web/cmd/steam-web-pp-mcp@latest
claude mcp add -e STEAM_WEB_API_KEY=... steam-web-pp-mcp -- steam-web-pp-mcpDirect Use
直接使用
- Check installed: . If missing, offer CLI installation.
which steam-web-pp-cli - A SteamID (17-digit) or vanity URL is needed for player commands. If the user gives a vanity URL, run first to get the SteamID.
resolve <vanity> - Discover commands: ; drill into
steam-web-pp-cli --help.steam-web-pp-cli <cmd> --help - Execute with for structured output:
--agentbashsteam-web-pp-cli <command> [args] --agent
- 检查是否已安装:。如果未安装,提供CLI安装指引。
which steam-web-pp-cli - 执行玩家相关命令需要SteamID(17位数字)或自定义URL。如果用户提供的是自定义URL,请先执行获取SteamID。
resolve <vanity> - 查看命令列表:;查看具体命令详情:
steam-web-pp-cli --help。steam-web-pp-cli <cmd> --help - 添加参数执行以获取结构化输出:
--agentbashsteam-web-pp-cli <command> [args] --agent
Notable Commands
重要命令
| Command | What it does |
|---|---|
| Player profile summary (name, country, avatar, visibility) |
| Owned games with total playtime |
| Recently played games (last 2 weeks) |
| Player's achievements for a game |
| Player's stats for a game |
| Friend list with relationship timestamps |
| Steam level |
| All badges earned |
| VAC and game-ban status |
| Current-player count for a game |
| News articles for a game |
| Stat + achievement schema for a game |
| Vanity URL -> SteamID |
| Call any of 170+ Web API endpoints directly |
Run any command with for full flag documentation.
--help| 命令 | 功能 |
|---|---|
| 玩家资料摘要(名称、国家、头像、可见性) |
| 已拥有游戏及总游戏时长 |
| 近期游玩的游戏(过去2周) |
| 玩家在某款游戏中的成就 |
| 玩家在某款游戏中的统计数据 |
| 好友列表及关系建立时间戳 |
| Steam等级 |
| 已获得的所有徽章 |
| VAC和游戏封禁状态 |
| 某款游戏的当前玩家数量 |
| 某款游戏的新闻文章 |
| 某款游戏的统计+成就架构 |
| 自定义URL -> SteamID |
| 直接调用170+个Web API端点 |
执行任何命令时添加可查看完整的参数文档。
--helpAgent Mode
Agent模式
Add to any command. Expands to: .
--agent--json --compact --no-input --no-color --yes- Pipeable — JSON on stdout, errors on stderr
- Filterable — keeps a subset of fields, with dotted-path support (see below)
--select - Previewable — shows the request without sending
--dry-run - Cacheable — GET responses cached for 5 minutes, bypass with
--no-cache - Non-interactive — never prompts, every input is a flag
在任何命令后添加参数。该参数等价于:。
--agent--json --compact --no-input --no-color --yes- 可管道传输 — 标准输出为JSON,错误信息输出到标准错误
- 可过滤 — 参数保留字段子集,支持点路径(见下文)
--select - 可预览 — 参数显示请求内容但不发送
--dry-run - 可缓存 — GET请求的响应会缓存5分钟,可使用绕过缓存
--no-cache - 非交互式 — 从不提示,所有输入均通过参数传递
Filtering output
输出过滤
--selectbash
steam-web-pp-cli <command> --agent --select id,name
steam-web-pp-cli <command> --agent --select items.id,items.owner.nameUse this to narrow huge payloads to the fields you actually need — critical for deeply nested API responses.
--selectbash
steam-web-pp-cli <command> --agent --select id,name
steam-web-pp-cli <command> --agent --select items.id,items.owner.name使用该参数可将庞大的响应数据缩小到实际需要的字段——这对于深度嵌套的API响应至关重要。
Response envelope
响应信封
Data-layer commands wrap output in . Parse for data and to know whether it's or local. The summary is printed to stderr only when stdout is a TTY; piped/agent consumers see pure JSON on stdout.
{"meta": {...}, "results": <data>}.results.meta.sourceliveN results (live)数据层命令会将输出包裹在中。解析获取数据,通过判断数据是来自(实时)还是本地。当标准输出为TTY时,摘要仅会打印到标准错误;管道/agent消费者会在标准输出看到纯JSON。
{"meta": {...}, "results": <data>}.results.meta.sourceliveN results (live)Exit Codes
退出码
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Usage error (wrong arguments) |
| 3 | Resource not found (player / game) |
| 4 | Authentication required (STEAM_WEB_API_KEY missing or invalid) |
| 5 | API error (Steam upstream; includes private-profile errors) |
| 7 | Rate limited |
| 代码 | 含义 |
|---|---|
| 0 | 成功 |
| 2 | 使用错误(参数错误) |
| 3 | 资源未找到(玩家/游戏) |
| 4 | 需要认证(缺少或无效的STEAM_WEB_API_KEY) |
| 5 | API错误(Steam上游错误;包括私人资料错误) |
| 7 | 请求受限(速率限制) |