Skip to content

Commit ca12f75

Browse files
committed
fix: add smithery.yaml for stdio publishing, fix publish command
Smithery was trying to scan servers via HTTP because `mcp publish <url>` treats them as external servers. Stdio servers need a smithery.yaml with startCommand config and must be published from the project directory without a URL argument.
1 parent 421f36d commit ca12f75

File tree

17 files changed

+133
-3
lines changed

17 files changed

+133
-3
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,18 +236,20 @@ jobs:
236236
SMITHERY_API_KEY: ${{ secrets.SMITHERY_TOKEN }}
237237
run: |
238238
FAILURES=0
239+
PUBLISHED=0
239240
for server_dir in clio-kit-mcp-servers/*/; do
240-
if [ ! -f "$server_dir/server.json" ]; then continue; fi
241+
if [ ! -f "$server_dir/smithery.yaml" ]; then continue; fi
241242
server_name=$(basename "$server_dir")
242243
echo "Publishing $server_name to Smithery..."
243-
if smithery mcp publish "https://github.com/${{ github.repository }}" \
244-
-n "iowarp/${server_name}-mcp"; then
244+
if (cd "$server_dir" && smithery mcp publish -n "iowarp/${server_name}-mcp"); then
245245
echo "Published $server_name to Smithery"
246+
PUBLISHED=$((PUBLISHED + 1))
246247
else
247248
echo "::error::Failed to publish $server_name to Smithery"
248249
FAILURES=$((FAILURES + 1))
249250
fi
250251
done
252+
echo "Smithery: $PUBLISHED published, $FAILURES failed"
251253
if [ $FAILURES -gt 0 ]; then
252254
echo "::error::$FAILURES server(s) failed to publish to Smithery"
253255
exit 1
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Smithery configuration: https://smithery.ai/docs/config#smitheryyaml
2+
startCommand:
3+
type: stdio
4+
configSchema:
5+
type: object
6+
properties: {}
7+
commandFunction: |-
8+
config => ({ command: 'uvx', args: ['clio-kit', 'adios'] })
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Smithery configuration: https://smithery.ai/docs/config#smitheryyaml
2+
startCommand:
3+
type: stdio
4+
configSchema:
5+
type: object
6+
properties: {}
7+
commandFunction: |-
8+
config => ({ command: 'uvx', args: ['clio-kit', 'arxiv'] })
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Smithery configuration: https://smithery.ai/docs/config#smitheryyaml
2+
startCommand:
3+
type: stdio
4+
configSchema:
5+
type: object
6+
properties: {}
7+
commandFunction: |-
8+
config => ({ command: 'uvx', args: ['clio-kit', 'chronolog'] })
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Smithery configuration: https://smithery.ai/docs/config#smitheryyaml
2+
startCommand:
3+
type: stdio
4+
configSchema:
5+
type: object
6+
properties: {}
7+
commandFunction: |-
8+
config => ({ command: 'uvx', args: ['clio-kit', 'compression'] })
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Smithery configuration: https://smithery.ai/docs/config#smitheryyaml
2+
startCommand:
3+
type: stdio
4+
configSchema:
5+
type: object
6+
properties: {}
7+
commandFunction: |-
8+
config => ({ command: 'uvx', args: ['clio-kit', 'darshan'] })
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Smithery configuration: https://smithery.ai/docs/config#smitheryyaml
2+
startCommand:
3+
type: stdio
4+
configSchema:
5+
type: object
6+
properties: {}
7+
commandFunction: |-
8+
config => ({ command: 'uvx', args: ['clio-kit', 'hdf5'] })
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Smithery configuration: https://smithery.ai/docs/config#smitheryyaml
2+
startCommand:
3+
type: stdio
4+
configSchema:
5+
type: object
6+
properties: {}
7+
commandFunction: |-
8+
config => ({ command: 'uvx', args: ['clio-kit', 'jarvis'] })
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Smithery configuration: https://smithery.ai/docs/config#smitheryyaml
2+
startCommand:
3+
type: stdio
4+
configSchema:
5+
type: object
6+
properties: {}
7+
commandFunction: |-
8+
config => ({ command: 'uvx', args: ['clio-kit', 'lmod'] })
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Smithery configuration: https://smithery.ai/docs/config#smitheryyaml
2+
startCommand:
3+
type: stdio
4+
configSchema:
5+
type: object
6+
properties: {}
7+
commandFunction: |-
8+
config => ({ command: 'uvx', args: ['clio-kit', 'ndp'] })

0 commit comments

Comments
 (0)