We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/araxiaonline/mysql-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
del.sh•943 B
#!/bin/bash
# Delete a MySQL connection from the MCP server
#
# Usage: ./del.sh <name>
#
# Example:
# ./del.sh prod
CONTAINER_NAME="${MCP_CONTAINER:-mysql-mcp}"
usage() {
echo "Usage: $0 <name>"
echo ""
echo "Arguments:"
echo " name Name of the connection to remove"
echo ""
echo "Example:"
echo " $0 prod"
exit 1
}
if [ $# -lt 1 ]; then
usage
fi
NAME="$1"
# Check if container is running
if ! docker ps --format '{{.Names}}' | grep -q "^${CONTAINER_NAME}$"; then
echo "Error: Container '${CONTAINER_NAME}' is not running."
exit 1
fi
docker exec -i "${CONTAINER_NAME}" python -c "
import asyncio
import json
import sys
sys.path.insert(0, '/app/src')
from server import call_tool
async def main():
result = await call_tool('remove_connection', {'name': '$NAME'})
for content in result:
if hasattr(content, 'text'):
print(content.text)
asyncio.run(main())
"