We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/krishna-paulraj/x-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
next-steps-after-oauth.mdβ’2.48 KiB
# Next Steps After Receiving OAuth Credentials
## π Congratulations!
You've successfully received your OAuth 2.0 Client ID and Client Secret from Twitter. Here's what to do next:
## π Immediate Actions
### 1. Store OAuth Credentials Securely
```env
# Add these to your .env file (for future use)
TWITTER_CLIENT_ID=your_oauth_client_id_here
TWITTER_CLIENT_SECRET=your_oauth_client_secret_here
```
### 2. Get API Keys for MCP Server
Your MCP server needs **different credentials** - the API keys:
1. **Go to "Keys and tokens"** in your Twitter app dashboard
2. **Copy the API Key and API Secret**
3. **Generate Access Token and Access Token Secret**
4. **Add them to your `.env` file**:
```env
# These are what your MCP server actually uses
X_API_KEY=your_api_key_here
X_API_SECRET=your_api_secret_here
X_ACCESS_TOKEN=your_access_token_here
X_ACCESS_TOKEN_SECRET=your_access_token_secret_here
```
## π Current Status
| Credential | Status | Action Needed |
|------------|--------|---------------|
| OAuth Client ID | β Received | Store securely |
| OAuth Client Secret | β Received | Store securely |
| API Key | β³ Pending | Get from "Keys and tokens" |
| API Secret | β³ Pending | Get from "Keys and tokens" |
| Access Token | β³ Pending | Generate in "Keys and tokens" |
| Access Token Secret | β³ Pending | Generate in "Keys and tokens" |
## π Quick Setup Commands
Once you have your API keys:
```bash
# 1. Copy environment template
cp env.example .env
# 2. Edit .env with your credentials
# (Add your API keys to the file)
# 3. Test authentication
npm run test-auth
# 4. Build and start the server
npm run build
npm start
```
## π Security Reminders
- β **OAuth Client Secret**: Keep this secret - never share it
- β **API Credentials**: Store in `.env` file (already in `.gitignore`)
- β **Never commit credentials** to version control
- β **Rotate credentials** regularly for security
## π Helpful Resources
- **Authentication Guide**: `docs/authentication-guide.md`
- **App Setup Guide**: `docs/app-setup-guide.md`
- **OAuth Credentials Guide**: `docs/oauth-credentials-guide.md`
- **Test Script**: `scripts/test-auth.js`
## π― What's Next
1. **Get API keys** from "Keys and tokens"
2. **Configure `.env` file** with API credentials
3. **Test authentication** with `npm run test-auth`
4. **Start using your X MCP server** to post tweets!
---
**Remember**: OAuth credentials are for future OAuth flows, but your MCP server needs the API keys from "Keys and tokens" to function.