Skip to content

Commit 2a508c4

Browse files
committed
Add MCP Registry support and bump to v2.0.1
- Add mcp-name validation comment to README (required by PyPI verification) - Add server.json for MCP Registry publishing - Update publish workflow to also publish to MCP Registry via OIDC - Bump to v2.0.1
1 parent 97bebbb commit 2a508c4

4 files changed

Lines changed: 58 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish to PyPI
1+
name: Publish to PyPI and MCP Registry
22

33
on:
44
release:
@@ -9,6 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
permissions:
1111
id-token: write
12+
contents: read
1213
steps:
1314
- uses: actions/checkout@v4
1415

@@ -24,3 +25,18 @@ jobs:
2425

2526
- name: Publish to PyPI
2627
uses: pypa/gh-action-pypi-publish@release/v1
28+
29+
- name: Install mcp-publisher
30+
run: |
31+
curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_linux_amd64.tar.gz" | tar xz mcp-publisher
32+
33+
- name: Authenticate to MCP Registry
34+
run: ./mcp-publisher login github-oidc
35+
36+
- name: Set version in server.json
37+
run: |
38+
VERSION=${GITHUB_REF_NAME#v}
39+
jq --arg v "$VERSION" '(.version = $v) | (.packages[0].version = $v)' server.json > server.tmp && mv server.tmp server.json
40+
41+
- name: Publish to MCP Registry
42+
run: ./mcp-publisher publish

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# unity-api-mcp
22

3+
<!-- mcp-name: io.github.Codeturion/unity-api-mcp -->
4+
35
[![PyPI Version](https://img.shields.io/pypi/v/unity-api-mcp.svg)](https://pypi.org/project/unity-api-mcp/)
46
[![PyPI Downloads](https://img.shields.io/pypi/dm/unity-api-mcp.svg)](https://pypi.org/project/unity-api-mcp/)
57
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "unity-api-mcp"
7-
version = "2.0.0"
7+
version = "2.0.1"
88
description = "MCP server providing ground-truth Unity API documentation (2022/2023/6) -- prevents AI hallucination of signatures, namespaces, and deprecated APIs"
99
readme = "README.md"
1010
license = {file = "LICENSE"}

server.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3+
"name": "io.github.Codeturion/unity-api-mcp",
4+
"title": "Unity API Documentation",
5+
"description": "Accurate Unity API docs (2022/2023/6) for AI agents. Prevents hallucinated signatures.",
6+
"version": "2.0.1",
7+
"repository": {
8+
"url": "https://github.com/Codeturion/unity-api-mcp",
9+
"source": "github"
10+
},
11+
"packages": [
12+
{
13+
"registryType": "pypi",
14+
"identifier": "unity-api-mcp",
15+
"version": "2.0.1",
16+
"runtimeHint": "uvx",
17+
"transport": {
18+
"type": "stdio"
19+
},
20+
"environmentVariables": [
21+
{
22+
"name": "UNITY_VERSION",
23+
"description": "Unity version to serve: 2022, 2023, or 6 (default: auto-detect or 6)",
24+
"isRequired": false,
25+
"format": "string",
26+
"isSecret": false
27+
},
28+
{
29+
"name": "UNITY_PROJECT_PATH",
30+
"description": "Path to Unity project for auto-detecting version from ProjectSettings/ProjectVersion.txt",
31+
"isRequired": false,
32+
"format": "string",
33+
"isSecret": false
34+
}
35+
]
36+
}
37+
]
38+
}

0 commit comments

Comments
 (0)