Add Glama metadata for MCP server (#3076)

This commit is contained in:
zhifu gao
2026-06-30 15:20:45 +08:00
committed by GitHub
parent 40539a5bfe
commit 0430ec2c2f
3 changed files with 35 additions and 0 deletions
+2
View File
@@ -25,6 +25,8 @@ docker run --rm -i \
When submitting this server to MCP directories such as Glama, use this folder as
the Docker build context so the container entrypoint runs `funasr_mcp.py`.
The `glama.json` file in this directory declares the MCP server command and
metadata for directory scanners.
### 3. Configure your AI tool
+19
View File
@@ -0,0 +1,19 @@
{
"$schema": "https://glama.ai/api/mcp/v1/schemas/glama.json",
"name": "funasr",
"display_name": "FunASR MCP Server",
"description": "Local speech recognition MCP server powered by FunASR and SenseVoice. It exposes a transcribe_audio tool for privacy-friendly audio transcription from local files.",
"repository": "https://github.com/modelscope/FunASR",
"license": "MIT",
"runtime": "python",
"tags": ["speech-to-text", "asr", "audio", "funasr", "sensevoice", "local", "mcp"],
"mcpServers": {
"funasr": {
"command": "python",
"args": ["/app/funasr_mcp.py"],
"env": {
"FUNASR_DEVICE": "cpu"
}
}
}
}
+14
View File
@@ -1,3 +1,4 @@
import json
from pathlib import Path
@@ -12,3 +13,16 @@ def test_mcp_server_example_has_glama_ready_dockerfile():
assert "funasr" in dockerfile_text
assert "COPY funasr_mcp.py /app/funasr_mcp.py" in dockerfile_text
assert 'CMD ["python", "/app/funasr_mcp.py"]' in dockerfile_text
def test_mcp_server_example_has_glama_metadata():
example_dir = Path(__file__).resolve().parents[1] / "examples" / "mcp_server"
metadata_path = example_dir / "glama.json"
metadata = json.loads(metadata_path.read_text())
assert metadata["repository"] == "https://github.com/modelscope/FunASR"
assert metadata["runtime"] == "python"
assert metadata["license"] == "MIT"
assert metadata["mcpServers"]["funasr"]["command"] == "python"
assert metadata["mcpServers"]["funasr"]["args"] == ["/app/funasr_mcp.py"]