Skip to content

Commit b719979

Browse files
committed
ci: Enable publish to mcp registry
1 parent 5867769 commit b719979

File tree

4 files changed

+76
-1
lines changed

4 files changed

+76
-1
lines changed

.github/workflows/release-please.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,10 @@ jobs:
5858
run: |
5959
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> ./.npmrc
6060
npm publish --provenance --access public
61+
- name: Install MCP Publisher
62+
run: |
63+
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
64+
- name: Login to MCP Registry
65+
run: ./mcp-publisher login github-oidc
66+
- name: Publish to MCP Registry
67+
run: ./mcp-publisher publish

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"bin": {
2626
"ui5mcp": "bin/ui5mcp.js"
2727
},
28+
"mcpName": "io.github.UI5/mcp-server",
2829
"type": "module",
2930
"scripts": {
3031
"start": "tsx src/cli.ts",

release-please-config.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@
6363
"hidden": true
6464
}
6565
]
66-
}
66+
},
67+
"extra-files": [
68+
"server.json"
69+
]
6770
}
6871
}

server.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-07-09/server.schema.json",
3+
"name": "io.github.UI5/mcp-server",
4+
"description": "A MCP server for UI5",
5+
"status": "active",
6+
"repository": {
7+
"url": "https://github.com/UI5/mcp-server",
8+
"source": "github"
9+
},
10+
"version": "0.1.1",
11+
"packages": [
12+
{
13+
"registry_type": "npm",
14+
"registry_base_url": "https://registry.npmjs.org",
15+
"identifier": "@ui5/mcp-server",
16+
"version": "0.1.1",
17+
"transport": {
18+
"type": "stdio"
19+
},
20+
"environment_variables": [
21+
{
22+
"default": "localhost, services.odata.org",
23+
"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'.",
24+
"is_required": false,
25+
"format": "string",
26+
"is_secret": false,
27+
"name": "UI5_MCP_SERVER_ALLOWED_ODATA_DOMAINS"
28+
},
29+
{
30+
"default": "false",
31+
"description": "Set to any value to disable structured content in the MCP server responses.",
32+
"is_required": false,
33+
"format": "boolean",
34+
"is_secret": false,
35+
"name": "UI5_MCP_SERVER_RESPONSE_NO_STRUCTURED_CONTENT"
36+
},
37+
{
38+
"default": "false",
39+
"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.",
40+
"is_required": false,
41+
"format": "string",
42+
"is_secret": false,
43+
"name": "UI5_MCP_SERVER_RESPONSE_NO_RESOURCES"
44+
},
45+
{
46+
"default": "info",
47+
"description": "Internal log level, see https://sap.github.io/ui5-tooling/stable/pages/Troubleshooting/#changing-the-log-level): 'silent', 'error', 'warn', 'info', 'perf', 'verbose' or 'silly'",
48+
"is_required": false,
49+
"format": "string",
50+
"is_secret": false,
51+
"name": "UI5_LOG_LVL"
52+
},
53+
{
54+
"default": "The '.ui5' directory in the user's home directory",
55+
"description": "Directory where the MCP server stores its data, such as cached API references.",
56+
"is_required": false,
57+
"format": "string",
58+
"is_secret": false,
59+
"name": "UI5_DATA_DIR"
60+
}
61+
]
62+
}
63+
]
64+
}

0 commit comments

Comments
 (0)