@cequenceai/mcp-cli
Version:
Cequence MCP CLI - Command-line tool for setting up Cequence MCP servers with AI clients
75 lines (63 loc) • 2.49 kB
Markdown
# Descope Authentication Fix Demo
## Problem Statement
- **Issue**: Descope authentication was causing frequent re-authentication prompts due to refresh token problems
- **Impact**: Poor user experience with constant authentication interruptions
- **Root Cause**: Descope sometimes has issues with OAuth refresh token flows
## Solution Implemented
- **Approach**: Added `--no-refresh` flag to disable problematic refresh tokens
- **Package**: Custom `/mcp-remote.0.3` with enhanced OAuth control
- **Integration**: Updated `/mcp-cli.0.8` to use custom package
## Testing Demonstration
### Test 1: Verify Flag Recognition
```bash
# Test help documentation
npx /mcp-remote.0.3 --help
# Expected: Usage shows --no-refresh flag
# Test flag parsing
npx /mcp-remote.0.3 https://test.example.com --no-refresh --debug
# Expected: "Token refresh disabled - will not request refresh_token grant type"
```
### Test 2: CLI Integration
```bash
# Generate Claude configuration with standard CLI
npx /mcp-cli.0.8 claude --url "https://your-server.com/mcp" --name "Test Server"
# Expected: Configuration uses @cequenceai/mcp-remote package
```
### Test 3: Manual Configuration Testing
Users experiencing Descope issues can manually add `--no-refresh`:
**Before (problematic):**
```json
{
"mcpServers": {
"server": {
"command": "npx",
"args": ["-y", "@cequenceai/mcp-remote", "https://server.com/mcp"]
}
}
}
```
**After (fixed):**
```json
{
"mcpServers": {
"server": {
"command": "npx",
"args": ["-y", "@cequenceai/mcp-remote", "https://server.com/mcp", "--no-refresh"]
}
}
}
```
## Business Value
- ✅ **Immediate Fix**: Solves Descope authentication issues for affected users
- ✅ **User Control**: Users can easily enable/disable refresh tokens as needed
- ✅ **Backward Compatible**: No breaking changes to existing configurations
- ✅ **Future-Proof**: Can be applied to any OAuth provider with similar issues
## Deployment Status
- ✅ **Published**: `/mcp-remote.0.3` available on npm
- ✅ **CLI Updated**: `/mcp-cli.0.8` uses custom package
- ✅ **Portal Integration**: UI configurations updated
- ✅ **Tested**: Flag recognition and functionality verified
## Next Steps
1. Document the fix in user-facing documentation
2. Communicate solution to users experiencing Descope issues
3. Monitor for reduced authentication-related support tickets