mirror of
https://github.com/modelscope/FunASR.git
synced 2026-10-12 02:19:18 +00:00
Add root Glama metadata for MCP discovery (#3077)
This commit is contained in:
+19
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user