Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

Add root Glama metadata for MCP discovery (#3077)

zhifu gaob5c15f1c996b
diff --git a/glama.json b/glama.json
new file mode 100644
index 000000000..5b37387d0
--- /dev/null
+++ b/glama.json
@@ -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"
+ }
+ }
+ }
+}
diff --git a/tests/test_mcp_server_example.py b/tests/test_mcp_server_example.py
index 07d36c128..7401d077d 100644
--- a/tests/test_mcp_server_example.py
+++ b/tests/test_mcp_server_example.py
@@ -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"
+ ]