Repository navigation
Add the MCP Registry listing for si.sigit/sigit #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| name: MCP Registry Release | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| description: "Override the version in server.json (e.g. 0.2.0); leave blank to publish as-is" | ||
| required: false | ||
|
|
||
| # A remote server proves namespace ownership through domain (DNS) verification, | ||
| # not GitHub OIDC: the registry checks a v=MCPv1 TXT record on sigit.si against | ||
| # a request signed with the matching Ed25519 private key. See the MCP Registry | ||
| # doc in the sigit-si repo for the one-time key/DNS setup. | ||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| publish: | ||
| name: Publish server.json to the MCP Registry | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Optionally override the version in server.json | ||
| shell: bash | ||
| run: | | ||
| version="${{ github.event.inputs.version }}" | ||
| if [ -n "${version}" ]; then | ||
| jq --arg v "${version}" '.version = $v' server.json > server.tmp | ||
| mv server.tmp server.json | ||
| fi | ||
| cat server.json | ||
|
|
||
| - name: Check the remote URL matches the namespace domain | ||
| shell: bash | ||
| run: | | ||
| # The registry rejects a remote server whose URL isn't under the | ||
| # namespace's domain. si.sigit -> sigit.si, so every listed remote | ||
| # must live on sigit.si (or a subdomain). | ||
| server_name="$(jq -r '.name' server.json)" | ||
| domain="$(echo "${server_name%%/*}" | awk -F. '{ for (i=NF; i>=1; i--) printf "%s%s", $i, (i>1 ? "." : "") }')" | ||
| echo "Server: ${server_name} Domain: ${domain}" | ||
|
|
||
| bad="$(jq -r --arg d "${domain}" ' | ||
| .remotes // [] | ||
| | map(.url | sub("^[a-z]+://"; "") | sub("/.*$"; "")) | ||
| | map(select(. != $d and (endswith("." + $d) | not))) | ||
|
setoelkahfi marked this conversation as resolved.
|
||
| | .[]' server.json)" | ||
| if [ -n "${bad}" ]; then | ||
| echo "Remote URL host(s) not under ${domain}: ${bad}" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Install mcp-publisher | ||
| shell: bash | ||
| 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 the MCP Registry | ||
| shell: bash | ||
| env: | ||
| MCP_REGISTRY_DNS_PRIVATE_KEY: ${{ secrets.MCP_REGISTRY_DNS_PRIVATE_KEY }} | ||
| run: | | ||
| if [ -z "${MCP_REGISTRY_DNS_PRIVATE_KEY}" ]; then | ||
| echo "MCP_REGISTRY_DNS_PRIVATE_KEY secret is not set. See the MCP Registry doc in the sigit-si repo." >&2 | ||
| exit 1 | ||
| fi | ||
| ./mcp-publisher login dns --domain=sigit.si --private-key="${MCP_REGISTRY_DNS_PRIVATE_KEY}" | ||
|
|
||
| - name: Publish | ||
| shell: bash | ||
| run: ./mcp-publisher publish | ||
|
|
||
| - name: Verify the server is listed | ||
| shell: bash | ||
| run: | | ||
| server_name="$(jq -r '.name' server.json)" | ||
| curl -fsSL "https://registry.modelcontextprotocol.io/v0.1/servers?search=${server_name}" | jq . | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| { | ||
| "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json", | ||
| "name": "si.sigit/sigit", | ||
| "title": "siGit", | ||
| "description": "MCP server for siGit (sigit.si): browse repos, search code, manage PRs/issues, web search.", | ||
| "version": "1.2.5", | ||
| "websiteUrl": "https://sigit.si", | ||
| "repository": { | ||
| "url": "https://github.com/getsigit/si", | ||
| "source": "github" | ||
| }, | ||
| "remotes": [ | ||
| { | ||
| "type": "streamable-http", | ||
| "url": "https://sigit.si/api/v1/mcp" | ||
| } | ||
| ], | ||
| "_meta": { | ||
| "io.modelcontextprotocol.registry/publisher-provided": { | ||
| "categories": ["developer-tools", "version-control", "ai-agents"], | ||
| "keywords": [ | ||
| "git", | ||
| "git hosting", | ||
| "mcp server", | ||
| "model context protocol", | ||
| "code search", | ||
| "pull requests", | ||
| "issues", | ||
| "repositories", | ||
| "web search", | ||
| "coding agent", | ||
| "ai coding agent", | ||
| "ai agent tools", | ||
| "developer tools", | ||
| "software development" | ||
| ] | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.