test_with_curl.txt•632 B
# Test Commands:
# 1. Test the auth endpoint (should work now):
curl -X POST "https://mcp-server-production-110a.up.railway.app/auth/generate-token" \
-H "Content-Type: application/json" \
-d '{}'
# 2. Test the new public endpoint:
curl -X POST "https://mcp-server-production-110a.up.railway.app/generate-token" \
-H "Content-Type: application/json" \
-d '{}'
# Expected Response (200 OK):
{
"access_token": "1001:xxxxxx:xxxxxxx",
"token_type": "bearer",
"expires_in": 3600,
"generated_for": "external_service",
"created_at": "2025-11-04T19:12:xx.xxx"
}
# If you get 422 error, then Railway still has old code running.