We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ghchen99/mcp-musescore'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
connection.py•703 B
"""Connection and utility tools for MuseScore MCP."""
from ..client import MuseScoreClient
def setup_connection_tools(mcp, client: MuseScoreClient):
"""Setup connection and utility tools."""
@mcp.tool()
async def connect_to_musescore():
"""Connect to the MuseScore WebSocket API."""
result = await client.connect()
return {"success": result}
@mcp.tool()
async def ping_musescore():
"""Ping the MuseScore WebSocket API to check connection."""
return await client.send_command("ping")
@mcp.tool()
async def get_score():
"""Get information about the current score."""
return await client.send_command("getScore")