Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.
Python asraudiochineseemotion-recognitionfunasrmcp-servermultilingual-asropenai-compatible-apiparaformerpunctuationpytorchreal-time-asrspeaker-diarizationspeech-recognitionspeech-to-textstreaming-asrtranscriptionvllmvoice-activity-detectionwhisper-alternative
Harden MCP registry publication (#3389)
zhifu gao147a132cf745
diff --git a/.github/workflows/publish-mcp-server.yml b/.github/workflows/publish-mcp-server.ymlindex 6b8350b2a..9e2d33680 100644--- a/.github/workflows/publish-mcp-server.yml+++ b/.github/workflows/publish-mcp-server.yml@@ -139,6 +139,7 @@ jobs:cache-to: type=gha,mode=max,scope=funasr-mcp- name: Make the GHCR package public+ continue-on-error: trueenv:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}run: |@@ -146,6 +147,21 @@ jobs:"/orgs/${GITHUB_REPOSITORY_OWNER}/packages/container/funasr-mcp" \-f visibility=public+ - name: Verify the versioned image is publicly pullable+ env:+ IMAGE_VERSION: ${{ steps.metadata.outputs.version }}+ run: |+ token="$(curl --fail --show-error --silent --get \+ --data-urlencode "service=ghcr.io" \+ --data-urlencode "scope=repository:modelscope/funasr-mcp:pull" \+ https://ghcr.io/token | jq -r '.token')"+ test -n "$token"+ curl --fail --show-error --silent \+ -H "Authorization: Bearer $token" \+ -H "Accept: application/vnd.oci.image.index.v1+json, application/vnd.docker.distribution.manifest.list.v2+json" \+ "https://ghcr.io/v2/modelscope/funasr-mcp/manifests/${IMAGE_VERSION}" \+ >/dev/null+- name: Install verified MCP publisherrun: |archive="$RUNNER_TEMP/mcp-publisher.tar.gz"diff --git a/examples/mcp_server/server.json b/examples/mcp_server/server.jsonindex c487127bc..6ec515185 100644--- a/examples/mcp_server/server.json+++ b/examples/mcp_server/server.json@@ -3,7 +3,7 @@"name": "io.github.modelscope/funasr-mcp","title": "FunASR","description": "Transcribe local audio with FunASR and SenseVoice using private, on-device inference.",- "version": "0.1.0",+ "version": "0.1.1","websiteUrl": "https://github.com/modelscope/FunASR/tree/main/examples/mcp_server","repository": {"url": "https://github.com/modelscope/FunASR",@@ -14,7 +14,7 @@"packages": [{"registryType": "oci",- "identifier": "ghcr.io/modelscope/funasr-mcp:0.1.0",+ "identifier": "ghcr.io/modelscope/funasr-mcp:0.1.1","runtimeHint": "docker","runtimeArguments": [{diff --git a/examples/mcp_server/test_registry_metadata.py b/examples/mcp_server/test_registry_metadata.pyindex b795cde44..1500ecb2c 100644--- a/examples/mcp_server/test_registry_metadata.py+++ b/examples/mcp_server/test_registry_metadata.py@@ -97,6 +97,10 @@ class MCPRegistryMetadataTest(unittest.TestCase):self.assertIn("docker/build-push-action@v7", workflow)self.assertIn("docker/setup-buildx-action@v4", workflow)self.assertIn("docker/login-action@v4", workflow)+ self.assertIn("continue-on-error: true", workflow)+ self.assertIn("Verify the versioned image is publicly pullable", workflow)+ self.assertIn("scope=repository:modelscope/funasr-mcp:pull", workflow)+ self.assertIn("https://ghcr.io/v2/modelscope/funasr-mcp/manifests/${IMAGE_VERSION}", workflow)self.assertNotIn("actions/checkout@v4", workflow)self.assertNotIn("actions/setup-python@v5", workflow)self.assertNotIn("docker/build-push-action@v6", workflow)