Skip to content

Commit 375b980

Browse files
Publish to official MCP registry
1 parent 75a8dec commit 375b980

File tree

4 files changed

+83
-1
lines changed

4 files changed

+83
-1
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
permissions:
99
contents: write
10+
id-token: write # Required for MCP Registry OIDC authentication
1011

1112
jobs:
1213
goreleaser:
@@ -25,6 +26,12 @@ jobs:
2526
- name: Install package_cloud gem
2627
run: sudo gem install package_cloud --no-doc
2728

29+
- name: Install mcp-publisher
30+
run: curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
31+
32+
- name: Authenticate to MCP Registry
33+
run: ./mcp-publisher login github-oidc
34+
2835
- name: Run GoReleaser
2936
uses: goreleaser/goreleaser-action@v6
3037
with:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ config.yaml
4949

5050
# Build artifacts
5151
latest.txt
52+
server.json
5253
completions/
5354

5455
# Claude

.goreleaser.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ changelog:
189189
- "^specs:"
190190
# TODO: Other files that should be ignored
191191

192-
# PackageCloud publisher for Linux packages
192+
# Publishers for external registries
193193
publishers:
194194
# Upload all Linux packages (deb, rpm) to PackageCloud
195195
- name: packagecloud
@@ -206,6 +206,13 @@ publishers:
206206
env:
207207
- PACKAGECLOUD_TOKEN={{ .Env.PACKAGECLOUD_TOKEN }}
208208

209+
# Publish server.json to MCP Registry
210+
- name: mcp-registry
211+
disable: '{{ ne .Prerelease "" }}' # Skip this step for prereleases
212+
ids:
213+
- docker # Only publish docker images
214+
cmd: sh -c 'sed "s/\$VERSION/{{ .Version }}/g" server-template.json > server.json && ./mcp-publisher publish'
215+
209216
# Release configuration
210217
release:
211218
github:

server-template.json

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-10-17/server.schema.json",
3+
"name": "io.github.timescale/tiger-cli",
4+
"title": "Tiger MCP",
5+
"description": "Provides programmatic access to Tiger Cloud services, databases, and documentation.",
6+
"version": "$VERSION",
7+
"homepage": "https://github.com/timescale/tiger-cli",
8+
"repository": {
9+
"url": "https://github.com/timescale/tiger-cli",
10+
"source": "github"
11+
},
12+
"packages": [
13+
{
14+
"registryType": "oci",
15+
"identifier": "ghcr.io/timescale/tiger-cli:$VERSION",
16+
"transport": {
17+
"type": "stdio"
18+
},
19+
"runtimeArguments": [
20+
{
21+
"type": "named",
22+
"description": "Mount the config directory into the volume",
23+
"name": "--mount",
24+
"value": "type=bind,src={source_path},dst=/home/tiger/.config/tiger",
25+
"variables": {
26+
"source_path": {
27+
"description": "Source path on host",
28+
"format": "filepath",
29+
"isRequired": true,
30+
"default": "${HOME}/.config/tiger"
31+
}
32+
}
33+
},
34+
{
35+
"type": "named",
36+
"description": "Mount the .pgpass file into the volume",
37+
"name": "--mount",
38+
"value": "type=bind,src={source_path},dst=/home/tiger/.pgpass",
39+
"variables": {
40+
"source_path": {
41+
"description": "Source path on host",
42+
"format": "filepath",
43+
"isRequired": true,
44+
"default": "${HOME}/.pgpass"
45+
}
46+
}
47+
}
48+
],
49+
"environmentVariables": [
50+
{
51+
"name": "TIGER_PUBLIC_KEY",
52+
"description": "Tiger Cloud API public key for authentication",
53+
"format": "string",
54+
"isRequired": true,
55+
"isSecret": false
56+
},
57+
{
58+
"name": "TIGER_SECRET_KEY",
59+
"description": "Tiger Cloud API secret key for authentication",
60+
"format": "string",
61+
"isRequired": true,
62+
"isSecret": true
63+
}
64+
]
65+
}
66+
]
67+
}

0 commit comments

Comments
 (0)