Add root Glama metadata for MCP discovery (#3077)

This commit is contained in:
zhifu gao
2026-06-30 15:30:29 +08:00
committed by GitHub
parent 0430ec2c2f
commit b5c15f1c99
2 changed files with 32 additions and 0 deletions
+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": ["examples/mcp_server/funasr_mcp.py"],
"env": {
"FUNASR_DEVICE": "cpu"
}
}
}
}
+13
View File
@@ -26,3 +26,16 @@ def test_mcp_server_example_has_glama_metadata():
assert metadata["license"] == "MIT"
assert metadata["mcpServers"]["funasr"]["command"] == "python"
assert metadata["mcpServers"]["funasr"]["args"] == ["/app/funasr_mcp.py"]
def test_repository_root_has_glama_metadata_for_mcp_directory_scanners():
repo_root = Path(__file__).resolve().parents[1]
metadata = json.loads((repo_root / "glama.json").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"] == [
"examples/mcp_server/funasr_mcp.py"
]