We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sai-Manvith/Updation_MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test_user_profile.sh•1.56 KiB
#!/bin/bash
# Test User Profile Tool
TOKEN="11836|UAc9YiEKc9zO9MvNHKQqY9WwdkxW7qQyw3mqyNK5"
BASE_URL="http://localhost:8002"
echo "🧪 Testing User Profile Tool"
echo "=============================="
echo ""
# Test 1: What is my role?
echo "1️⃣ Test: What is my role?"
curl -s -X POST "$BASE_URL/chat" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"message": "What is my role?"}' | python3 -m json.tool | head -n 20
echo ""
echo ""
# Test 2: What permissions do I have?
echo "2️⃣ Test: What permissions do I have?"
curl -s -X POST "$BASE_URL/chat" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"message": "What permissions do I have?"}' | python3 -m json.tool | head -n 20
echo ""
echo ""
# Test 3: What can I do?
echo "3️⃣ Test: What can I do?"
curl -s -X POST "$BASE_URL/chat" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"message": "What can I do in the system?"}' | python3 -m json.tool | head -n 20
echo ""
echo ""
# Test 4: What modules can I access?
echo "4️⃣ Test: What modules can I access?"
curl -s -X POST "$BASE_URL/chat" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"message": "What modules can I access?"}' | python3 -m json.tool | head -n 20
echo ""
echo ""
echo "✅ Tests complete!"
echo ""
echo "Check that:"
echo " - AI mentions your role name"
echo " - AI lists modules (Users, Contracts, etc.)"
echo " - AI explains capabilities"
echo " - NO internal IDs or timestamps shown"