Skip to content

Commit 2a0506c

Browse files
CodeKeanuclaude
andcommitted
fix: use correct filetype for Workshop collections
Was using filetype=2 (Artwork) instead of filetype=1 (Collections). Per Steamworks API docs, EPublishedFileInfoMatchingFileType values: - 0 = Items (regular mods) - 1 = Collections - 2 = Art - 3 = Videos 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 755c69a commit 2a0506c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/steam_mcp/endpoints/steam_workshop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ async def search_workshop_collections(
463463
params: dict[str, Any] = {
464464
"appid": app_id,
465465
"query_type": query_type,
466-
"filetype": 2, # Collections only
466+
"filetype": 1, # Collections (1=Collections, 2=Art, 0=Items)
467467
"numperpage": min(max_results, 50),
468468
"return_metadata": True,
469469
"return_tags": True,

tests/test_steam_workshop.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ async def test_search_collections_with_query(self, workshop_service, mock_client
242242

243243
call_args = mock_client.get.call_args
244244
assert call_args[1]["params"]["search_text"] == "weapon skins"
245-
assert call_args[1]["params"]["filetype"] == 2 # Collections only
245+
assert call_args[1]["params"]["filetype"] == 1 # Collections only
246246

247247
@pytest.mark.asyncio
248248
async def test_search_collections_with_tags(self, workshop_service, mock_client):
@@ -258,7 +258,7 @@ async def test_search_collections_with_tags(self, workshop_service, mock_client)
258258
call_args = mock_client.get.call_args
259259
assert call_args[1]["params"]["requiredtags[0]"] == "Maps"
260260
assert call_args[1]["params"]["requiredtags[1]"] == "Competitive"
261-
assert call_args[1]["params"]["filetype"] == 2
261+
assert call_args[1]["params"]["filetype"] == 1 # Collections only
262262

263263
@pytest.mark.asyncio
264264
async def test_search_collections_empty_results(self, workshop_service, mock_client):

0 commit comments

Comments
 (0)