Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Install MCP Publisher
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

- name: Authenticate to MCP Registry
run: ./mcp-publisher login github-oidc

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ config.yaml

# Build artifacts
latest.txt
server.json
completions/

# Claude
Expand Down
9 changes: 8 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ changelog:
- "^specs:"
# TODO: Other files that should be ignored

# PackageCloud publisher for Linux packages
# Publishers for external registries
publishers:
# Upload all Linux packages (deb, rpm) to PackageCloud
- name: packagecloud
Expand All @@ -206,6 +206,13 @@ publishers:
env:
- PACKAGECLOUD_TOKEN={{ .Env.PACKAGECLOUD_TOKEN }}

# Publish server.json to MCP Registry
- name: mcp-registry
disable: '{{ ne .Prerelease "" }}' # Skip this step for prereleases
ids:
- docker # Only publish docker images
cmd: sh -c 'sed "s/\$VERSION/{{ .Version }}/g" server-template.json > server.json && ./mcp-publisher publish'

# Release configuration
release:
github:
Expand Down
67 changes: 67 additions & 0 deletions server-template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
"name": "io.github.timescale/tiger-cli",
"title": "Tiger MCP",
"description": "Provides programmatic access to Tiger Cloud services, databases, and documentation.",
"version": "$VERSION",
"homepage": "https://github.com/timescale/tiger-cli",
"repository": {
"url": "https://github.com/timescale/tiger-cli",
"source": "github"
},
"packages": [
{
"registryType": "oci",
"identifier": "ghcr.io/timescale/tiger-cli:$VERSION",
"transport": {
"type": "stdio"
},
"runtimeArguments": [
{
"type": "named",
"description": "Mount the config directory into the volume",
"name": "--mount",
"value": "type=bind,src={source_path},dst=/home/tiger/.config/tiger",
"variables": {
"source_path": {
"description": "Source path on host",
"format": "filepath",
"isRequired": true,
"default": "${HOME}/.config/tiger"
}
}
},
{
"type": "named",
"description": "Mount the .pgpass file into the volume",
"name": "--mount",
"value": "type=bind,src={source_path},dst=/home/tiger/.pgpass",
"variables": {
"source_path": {
"description": "Source path on host",
"format": "filepath",
"isRequired": true,
"default": "${HOME}/.pgpass"
}
}
}
],
"environmentVariables": [
{
"name": "TIGER_PUBLIC_KEY",
"description": "Tiger Cloud API public key for authentication",
"format": "string",
"isRequired": true,
"isSecret": false
},
{
"name": "TIGER_SECRET_KEY",
"description": "Tiger Cloud API secret key for authentication",
"format": "string",
"isRequired": true,
"isSecret": true
}
]
Comment on lines +49 to +64
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to verify that MCP clients actually pass these into the Docker container (e.g. via the -e argument). Otherwise, might need to remove these and add -e arguments to runtimeArguments above.

}
]
}