Skip to content

Commit 96d2415

Browse files
committed
fix: use --transport stdio for Smithery publish
The URL-based publish is correct for PyPI-distributed stdio servers. Without --transport flag, Smithery defaults to HTTP and tries to scan the server via HTTP connection, which fails for stdio servers.
1 parent ca12f75 commit 96d2415

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ jobs:
241241
if [ ! -f "$server_dir/smithery.yaml" ]; then continue; fi
242242
server_name=$(basename "$server_dir")
243243
echo "Publishing $server_name to Smithery..."
244-
if (cd "$server_dir" && smithery mcp publish -n "iowarp/${server_name}-mcp"); then
244+
if smithery mcp publish "https://github.com/${{ github.repository }}" \
245+
-n "iowarp/${server_name}-mcp" --transport stdio; then
245246
echo "Published $server_name to Smithery"
246247
PUBLISHED=$((PUBLISHED + 1))
247248
else

0 commit comments

Comments
 (0)