generated from UI5/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 10
ci: Enable publish to mcp registry #40
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
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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,50 @@ | ||
| name: Publish to MCP Registry | ||
|
|
||
| env: | ||
| # Releases: https://github.com/modelcontextprotocol/registry/releases | ||
| DEFAULT_MCP_PUBLISHER_VERSION: 'v1.3.10' | ||
|
|
||
| on: | ||
| # Allow this workflow to be called from other workflows | ||
| workflow_call: | ||
| # Allow manual triggering | ||
| workflow_dispatch: | ||
| inputs: | ||
| mcp_publisher_version: | ||
| description: 'MCP Publisher version to use' | ||
| required: false | ||
| type: string | ||
| default: '${{ env.DEFAULT_MCP_PUBLISHER_VERSION }}' | ||
| dry_run: | ||
| description: 'Run in dry-run mode (install and login only, no publishing)' | ||
| required: false | ||
| type: boolean | ||
| default: true | ||
| # Trigger dry-run on changes to this workflow file | ||
| pull_request: | ||
| paths: | ||
| - '.github/workflows/publish-mcp-registry.yml' | ||
| branches: | ||
| - main | ||
|
|
||
| permissions: | ||
| id-token: write # Required for login via github-oidc | ||
| contents: read | ||
|
|
||
| jobs: | ||
| publish-mcp-registry: | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v5 | ||
| - name: Install MCP Publisher | ||
| run: | | ||
| MCP_PUBLISHER_VERSION="${{ inputs.mcp_publisher_version || env.DEFAULT_MCP_PUBLISHER_VERSION }}" | ||
| MCP_PUBLISHER_OS_ARCH="$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')" | ||
| MCP_PUBLISHER_DOWNLOAD_URL="https://github.com/modelcontextprotocol/registry/releases/download/${MCP_PUBLISHER_VERSION}/mcp-publisher_${MCP_PUBLISHER_OS_ARCH}.tar.gz" | ||
| curl -L "${MCP_PUBLISHER_DOWNLOAD_URL}" | tar xz mcp-publisher | ||
| - name: Login to MCP Registry | ||
| run: ./mcp-publisher login github-oidc | ||
| - name: Publish to MCP Registry | ||
| if: ${{ inputs.dry_run != true && github.event_name != 'pull_request' }} | ||
| run: ./mcp-publisher publish |
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
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 |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| { | ||
| "name": "@ui5/mcp-server", | ||
| "version": "0.1.3", | ||
| "description": "A MCP server for UI5", | ||
| "description": "MCP server for UI5 application development", | ||
| "author": { | ||
| "name": "SAP SE", | ||
| "email": "[email protected]", | ||
|
|
@@ -25,6 +25,7 @@ | |
| "bin": { | ||
| "ui5mcp": "bin/ui5mcp.js" | ||
| }, | ||
| "mcpName": "io.github.UI5/mcp-server", | ||
| "type": "module", | ||
| "scripts": { | ||
| "start": "tsx src/cli.ts", | ||
|
|
||
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,63 @@ | ||
| { | ||
| "$schema": "https://static.modelcontextprotocol.io/schemas/2025-10-17/server.schema.json", | ||
| "name": "io.github.UI5/mcp-server", | ||
| "description": "MCP server for UI5 application development", | ||
| "repository": { | ||
| "url": "https://github.com/UI5/mcp-server", | ||
| "source": "github" | ||
| }, | ||
| "version": "0.1.3", | ||
| "packages": [ | ||
| { | ||
| "registryType": "npm", | ||
| "registryBaseUrl": "https://registry.npmjs.org", | ||
| "identifier": "@ui5/mcp-server", | ||
| "version": "0.1.3", | ||
| "transport": { | ||
| "type": "stdio" | ||
| }, | ||
| "environmentVariables": [ | ||
| { | ||
| "default": "localhost, services.odata.org", | ||
| "description": "A comma-separated list of domains that are allowed to be used in the 'oDataV4Url' parameter of the 'create_ui5_app' tool, for example: 'localhost, example.com, sub.example.com'. Set to an empty string to allow any domains. For wildcard subdomains, prefix the domain with a dot: '.example.com'. This will match 'www.example.com' but not 'example.com'.", | ||
| "isRequired": false, | ||
| "format": "string", | ||
| "isSecret": false, | ||
| "name": "UI5_MCP_SERVER_ALLOWED_ODATA_DOMAINS" | ||
| }, | ||
| { | ||
| "default": "false", | ||
| "description": "Set to any value to disable structured content in the MCP server responses.", | ||
| "isRequired": false, | ||
| "format": "boolean", | ||
| "isSecret": false, | ||
| "name": "UI5_MCP_SERVER_RESPONSE_NO_STRUCTURED_CONTENT" | ||
| }, | ||
| { | ||
| "default": "false", | ||
| "description": "Set to any value to disable resources in the MCP server responses, see https://modelcontextprotocol.io/specification/2025-06-18/server/resource. This is useful for clients that do not support resources, see https://modelcontextprotocol.io/clients, such as Cursor or the Gemini CLI.", | ||
| "isRequired": false, | ||
| "format": "string", | ||
| "isSecret": false, | ||
| "name": "UI5_MCP_SERVER_RESPONSE_NO_RESOURCES" | ||
| }, | ||
| { | ||
| "default": "info", | ||
| "description": "Internal log level (https://ui5.github.io/cli/stable/pages/Troubleshooting/#changing-the-log-level): 'silent', 'error', 'warn', 'info', 'perf', 'verbose' or 'silly'", | ||
| "isRequired": false, | ||
| "format": "string", | ||
| "isSecret": false, | ||
| "name": "UI5_LOG_LVL" | ||
| }, | ||
| { | ||
| "default": "The '.ui5' directory in the user's home directory", | ||
| "description": "Directory where the MCP server stores its data, such as cached API references.", | ||
| "isRequired": false, | ||
| "format": "string", | ||
| "isSecret": false, | ||
| "name": "UI5_DATA_DIR" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
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.